| 1 | <?php |
||
| 5 | class MultiSelectFilterConfig extends SelectFilterConfig |
||
| 6 | { |
||
| 7 | protected $template = '*.multiselect'; |
||
| 8 | protected $size = 4; |
||
| 9 | |||
| 10 | protected $operator = FilterConfig::OPERATOR_IN; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Sets the size of the select element. |
||
| 14 | * |
||
| 15 | * @param int $size |
||
| 16 | * |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | public function setSize($size) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the size of the select element. |
||
| 28 | * |
||
| 29 | * @return int |
||
| 30 | */ |
||
| 31 | public function getSize() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * This has no effect and should not be used for MultiSelectFilters |
||
| 38 | * (we need to use OPERATOR_IN). |
||
| 39 | * |
||
| 40 | * @param $operator |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function setOperator($operator) |
||
| 48 | } |
||
| 49 | |||
| 50 |