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