1 | <?php |
||
20 | class DataTablesColumn implements DataTablesColumnInterface { |
||
21 | |||
22 | /** |
||
23 | * Cell type. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $cellType; |
||
28 | |||
29 | /** |
||
30 | * Class name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $classname; |
||
35 | |||
36 | /** |
||
37 | * Content padding. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $contentPadding; |
||
42 | |||
43 | /** |
||
44 | * Data. |
||
45 | * |
||
46 | * @var integer|string |
||
47 | */ |
||
48 | private $data; |
||
49 | |||
50 | /** |
||
51 | * Default content. |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | private $defaultContent; |
||
56 | |||
57 | /** |
||
58 | * mapping. |
||
59 | * |
||
60 | * @var DataTablesMappingInterface |
||
61 | */ |
||
62 | private $mapping; |
||
63 | |||
64 | /** |
||
65 | * Name. |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | private $name; |
||
70 | |||
71 | /** |
||
72 | * Order data. |
||
73 | * |
||
74 | * @var integer|array |
||
75 | */ |
||
76 | private $orderData; |
||
77 | |||
78 | /** |
||
79 | * Order data type. |
||
80 | * |
||
81 | * @var string |
||
82 | */ |
||
83 | private $orderDataType; |
||
84 | |||
85 | /** |
||
86 | * Order sequence. |
||
87 | * |
||
88 | * @var string |
||
89 | */ |
||
90 | private $orderSequence; |
||
91 | |||
92 | /** |
||
93 | * Orderable. |
||
94 | * |
||
95 | * @var bool |
||
96 | */ |
||
97 | private $orderable; |
||
98 | |||
99 | /** |
||
100 | * Search. |
||
101 | * |
||
102 | * @var DataTablesSearchInterface |
||
103 | */ |
||
104 | private $search; |
||
105 | |||
106 | /** |
||
107 | * Searchable. |
||
108 | * |
||
109 | * @var bool |
||
110 | */ |
||
111 | private $searchable; |
||
112 | |||
113 | /** |
||
114 | * Title. |
||
115 | * |
||
116 | * @var string |
||
117 | */ |
||
118 | private $title; |
||
119 | |||
120 | /** |
||
121 | * Type. |
||
122 | * |
||
123 | * @var string |
||
124 | */ |
||
125 | private $type; |
||
126 | |||
127 | /** |
||
128 | * Visible. |
||
129 | * |
||
130 | * @var bool |
||
131 | */ |
||
132 | private $visible; |
||
133 | |||
134 | /** |
||
135 | * Width. |
||
136 | * |
||
137 | * @var string |
||
138 | */ |
||
139 | private $width; |
||
140 | |||
141 | /** |
||
142 | * Constructor. |
||
143 | */ |
||
144 | public function __construct() { |
||
151 | |||
152 | /** |
||
153 | * {@inheritdoc} |
||
154 | */ |
||
155 | public function getCellType() { |
||
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | public function getClassname() { |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function getContentPadding() { |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function getData() { |
||
179 | |||
180 | /** |
||
181 | * {@inheritdoc} |
||
182 | */ |
||
183 | public function getDefaultContent() { |
||
186 | |||
187 | /** |
||
188 | * {@inheritdoc} |
||
189 | */ |
||
190 | public function getMapping() { |
||
193 | |||
194 | /** |
||
195 | * {@inheritdoc} |
||
196 | */ |
||
197 | public function getName() { |
||
200 | |||
201 | /** |
||
202 | * {@inheritdoc} |
||
203 | */ |
||
204 | public function getOrderData() { |
||
207 | |||
208 | /** |
||
209 | * {@inheritdoc} |
||
210 | */ |
||
211 | public function getOrderDataType() { |
||
214 | |||
215 | /** |
||
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | public function getOrderSequence() { |
||
221 | |||
222 | /** |
||
223 | * {@inheritdoc} |
||
224 | */ |
||
225 | public function getOrderable() { |
||
228 | |||
229 | /** |
||
230 | * {@inheritdoc} |
||
231 | */ |
||
232 | public function getSearch() { |
||
235 | |||
236 | /** |
||
237 | * {@inheritdoc} |
||
238 | */ |
||
239 | public function getSearchable() { |
||
242 | |||
243 | /** |
||
244 | * {@inheritdoc} |
||
245 | */ |
||
246 | public function getTitle() { |
||
249 | |||
250 | /** |
||
251 | * {@inheritdoc} |
||
252 | */ |
||
253 | public function getType() { |
||
256 | |||
257 | /** |
||
258 | * {@inheritdoc} |
||
259 | */ |
||
260 | public function getVisible() { |
||
263 | |||
264 | /** |
||
265 | * {@inheritdoc} |
||
266 | */ |
||
267 | public function getWidth() { |
||
270 | |||
271 | /** |
||
272 | * Set the cell type. |
||
273 | * |
||
274 | * @param string $cellType The cell type. |
||
275 | * @return DataTablesColumnInterface Returns this column. |
||
276 | */ |
||
277 | public function setCellType($cellType) { |
||
284 | |||
285 | /** |
||
286 | * Set the class name. |
||
287 | * |
||
288 | * @param string $classname The class name. |
||
289 | * @return DataTablesColumnInterface Returns this column. |
||
290 | */ |
||
291 | public function setClassname($classname) { |
||
295 | |||
296 | /** |
||
297 | * Set the content padding. |
||
298 | * |
||
299 | * @param string $contentPadding The content padding. |
||
300 | * @return DataTablesColumnInterface Returns this column. |
||
301 | */ |
||
302 | public function setContentPadding($contentPadding) { |
||
306 | |||
307 | /** |
||
308 | * Set the data. |
||
309 | * |
||
310 | * @param integer|string $data The data. |
||
311 | * @return DataTablesColumnInterface Returns this column. |
||
312 | */ |
||
313 | public function setData($data) { |
||
317 | |||
318 | /** |
||
319 | * Set the default content. |
||
320 | * |
||
321 | * @param string $defaultContent The default content. |
||
322 | * @return DataTablesColumnInterface Returns this column. |
||
323 | */ |
||
324 | public function setDefaultContent($defaultContent) { |
||
328 | |||
329 | /** |
||
330 | * Set the mapping. |
||
331 | * |
||
332 | * @param DataTablesMappingInterface $mapping The mapping. |
||
333 | * @return DataTablesColumnInterface Returns this column. |
||
334 | */ |
||
335 | protected function setMapping(DataTablesMappingInterface $mapping) { |
||
339 | |||
340 | /** |
||
341 | * Set the name. |
||
342 | * |
||
343 | * @param string $name The name. |
||
344 | * @return DataTablesColumnInterface Returns this column. |
||
345 | */ |
||
346 | public function setName($name) { |
||
350 | |||
351 | /** |
||
352 | * Set the order data. |
||
353 | * |
||
354 | * @param integer|array $orderData The order data. |
||
355 | * @return DataTablesColumnInterface Returns this column. |
||
356 | */ |
||
357 | public function setOrderData($orderData) { |
||
361 | |||
362 | /** |
||
363 | * Set the order data type. |
||
364 | * |
||
365 | * @param string $orderDataType The order data type. |
||
366 | * @return DataTablesColumnInterface Returns this column. |
||
367 | */ |
||
368 | public function setOrderDataType($orderDataType) { |
||
372 | |||
373 | /** |
||
374 | * Set the order sequence. |
||
375 | * |
||
376 | * @param string $orderSequence The order sequence. |
||
377 | * @return DataTablesColumnInterface Returns this column. |
||
378 | */ |
||
379 | public function setOrderSequence($orderSequence) { |
||
386 | |||
387 | /** |
||
388 | * Set the orderable. |
||
389 | * |
||
390 | * @param bool $orderable The orderable. |
||
391 | * @return DataTablesColumnInterface Returns this column. |
||
392 | */ |
||
393 | public function setOrderable($orderable) { |
||
397 | |||
398 | /** |
||
399 | * Set the search. |
||
400 | * |
||
401 | * @param DataTablesSearchInterface $search The search. |
||
402 | * @return DataTablesColumnInterface Returns this column. |
||
403 | */ |
||
404 | public function setSearch(DataTablesSearchInterface $search) { |
||
408 | |||
409 | /** |
||
410 | * Set the searchable. |
||
411 | * |
||
412 | * @param bool $searchable The searchable. |
||
413 | * @return DataTablesColumnInterface Returns this column. |
||
414 | */ |
||
415 | public function setSearchable($searchable) { |
||
419 | |||
420 | /** |
||
421 | * Set the title. |
||
422 | * |
||
423 | * @param string $title The title. |
||
424 | * @return DataTablesColumnInterface Returns this column. |
||
425 | */ |
||
426 | public function setTitle($title) { |
||
430 | |||
431 | /** |
||
432 | * Set the type. |
||
433 | * |
||
434 | * @param string $type The type. |
||
435 | * @return DataTablesColumnInterface Returns this column. |
||
436 | */ |
||
437 | public function setType($type) { |
||
444 | |||
445 | /** |
||
446 | * Set the visible. |
||
447 | * |
||
448 | * @param bool $visible The visible. |
||
449 | * @return DataTablesColumnInterface Returns this column. |
||
450 | */ |
||
451 | public function setVisible($visible) { |
||
455 | |||
456 | /** |
||
457 | * Set the width. |
||
458 | * |
||
459 | * @param string $width The width. |
||
460 | * @return DataTablesColumnInterface Returns this column. |
||
461 | */ |
||
462 | public function setWidth($width) { |
||
466 | } |
||
467 |