|
@@ 305-311 (lines=7) @@
|
| 302 |
|
* @param string $name Name of the operator to be enabled |
| 303 |
|
* @return void |
| 304 |
|
*/ |
| 305 |
|
public function enableSearchOperator($name) |
| 306 |
|
{ |
| 307 |
|
if (isset($this->_config['operators'][":{$name}"])) { |
| 308 |
|
$this->_config['operators'][$name] = $this->_config['operators'][":{$name}"]; |
| 309 |
|
unset($this->_config['operators'][":{$name}"]); |
| 310 |
|
} |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
/** |
| 314 |
|
* Disables an operator. |
|
@@ 319-325 (lines=7) @@
|
| 316 |
|
* @param string $name Name of the operator to be disabled |
| 317 |
|
* @return void |
| 318 |
|
*/ |
| 319 |
|
public function disableSearchOperator($name) |
| 320 |
|
{ |
| 321 |
|
if (isset($this->_config['operators'][$name])) { |
| 322 |
|
$this->_config['operators'][":{$name}"] = $this->_config['operators'][$name]; |
| 323 |
|
unset($this->_config['operators'][$name]); |
| 324 |
|
} |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
/** |
| 328 |
|
* Given a query instance applies the provided token representing a search |