@@ 117-124 (lines=8) @@ | ||
114 | * |
|
115 | * @return void |
|
116 | */ |
|
117 | public function setFilterConfig($filter, $config) |
|
118 | { |
|
119 | if (!$this->hasFilter($filter)) { |
|
120 | throw new Exception("No such filter '$filter' exists."); |
|
121 | } |
|
122 | ||
123 | $this->config[$filter] = $config; |
|
124 | } |
|
125 | ||
126 | ||
127 | ||
@@ 136-145 (lines=10) @@ | ||
133 | * |
|
134 | * @return array the configuration as an array or empty array. |
|
135 | */ |
|
136 | public function getFilterConfig($filter) |
|
137 | { |
|
138 | if (!$this->hasFilter($filter)) { |
|
139 | throw new Exception("No such filter '$filter' exists."); |
|
140 | } |
|
141 | ||
142 | return isset($this->config[$filter]) |
|
143 | ? $this->config[$filter] |
|
144 | : []; |
|
145 | } |
|
146 | ||
147 | ||
148 |