1 | <?php |
||
11 | class Column |
||
12 | { |
||
13 | /** |
||
14 | * @var Grid |
||
15 | */ |
||
16 | protected $grid; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $title; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $name; |
||
27 | |||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $sortable = false; |
||
32 | |||
33 | /** |
||
34 | * @var DecoratorInterface[] |
||
35 | */ |
||
36 | protected $decorators = []; |
||
37 | |||
38 | /** |
||
39 | * @var FilterInterface |
||
40 | */ |
||
41 | protected $filter; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $placeholder; |
||
47 | |||
48 | /** |
||
49 | * @param array $options |
||
50 | */ |
||
51 | public function __construct(array $options = []) |
||
55 | |||
56 | /** |
||
57 | * @param Grid $grid |
||
58 | * @return $this |
||
59 | */ |
||
60 | public function setGrid($grid) |
||
66 | |||
67 | /** |
||
68 | * @return Grid |
||
69 | */ |
||
70 | public function getGrid() |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getTitle() |
||
82 | |||
83 | /** |
||
84 | * @param string $title |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setTitle($title) |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getName() |
||
101 | |||
102 | /** |
||
103 | * @param string $name |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setName($name) |
||
112 | |||
113 | /** |
||
114 | * @return boolean |
||
115 | */ |
||
116 | public function isSortable() |
||
120 | |||
121 | /** |
||
122 | * @param boolean $flag |
||
123 | * @return $this |
||
124 | */ |
||
125 | public function setSortable($flag) |
||
131 | |||
132 | /** |
||
133 | * @param \Closure $closure |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function setClickable(\Closure $closure) |
||
142 | |||
143 | /** |
||
144 | * @param \Closure $closure |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function setRender(\Closure $closure) |
||
153 | |||
154 | /** |
||
155 | * @param string $placeholder |
||
156 | * @return $this |
||
157 | */ |
||
158 | public function setPlaceholder($placeholder) |
||
164 | |||
165 | /** |
||
166 | * @param DecoratorInterface $decorator |
||
167 | * @return $this |
||
168 | */ |
||
169 | public function addDecorator(DecoratorInterface $decorator) |
||
175 | |||
176 | /** |
||
177 | * @param DecoratorInterface[] $decorators |
||
178 | * @return $this |
||
179 | */ |
||
180 | public function setDecorators(array $decorators) |
||
186 | |||
187 | /** |
||
188 | * @return DecoratorInterface[] |
||
189 | */ |
||
190 | public function getDecorators() |
||
194 | |||
195 | /** |
||
196 | * @param FilterInterface $filter |
||
197 | * @return $this |
||
198 | */ |
||
199 | public function setFilter(FilterInterface $filter) |
||
206 | |||
207 | /** |
||
208 | * @return FilterInterface |
||
209 | */ |
||
210 | public function getFilter() |
||
214 | |||
215 | /** |
||
216 | * @return bool |
||
217 | */ |
||
218 | public function isFilterable() |
||
222 | |||
223 | /** |
||
224 | * @param array $options |
||
225 | */ |
||
226 | protected function setDefaultOptions(array $options) |
||
256 | |||
257 | /** |
||
258 | * @param string $name |
||
259 | * @return mixed |
||
260 | */ |
||
261 | public function __get($name) |
||
273 | } |
||
274 |