1 | <?php |
||
23 | class DisplayTable extends Display |
||
24 | { |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $view = 'display.table'; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $parameters = []; |
||
34 | |||
35 | /** |
||
36 | * @var int|null |
||
37 | */ |
||
38 | protected $paginate = 25; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $pageName = 'page'; |
||
44 | |||
45 | /** |
||
46 | * @var Collection |
||
47 | */ |
||
48 | protected $collection; |
||
49 | |||
50 | /** |
||
51 | * @var string|null |
||
52 | */ |
||
53 | protected $newEntryButtonText; |
||
54 | |||
55 | /** |
||
56 | * Display constructor. |
||
57 | */ |
||
58 | public function __construct() |
||
65 | |||
66 | /** |
||
67 | * Initialize display. |
||
68 | */ |
||
69 | public function initialize() |
||
81 | |||
82 | /** |
||
83 | * @return null|string |
||
84 | */ |
||
85 | public function getNewEntryButtonText() |
||
94 | |||
95 | /** |
||
96 | * @param string $newEntryButtonText |
||
97 | * |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setNewEntryButtonText($newEntryButtonText) |
||
106 | |||
107 | /** |
||
108 | * @return array |
||
109 | */ |
||
110 | public function getParameters() |
||
114 | |||
115 | /** |
||
116 | * @param array $parameters |
||
117 | * |
||
118 | * @return $this |
||
119 | */ |
||
120 | public function setParameters($parameters) |
||
126 | |||
127 | /** |
||
128 | * @param string $key |
||
129 | * @param mixed $value |
||
130 | * |
||
131 | * @return $this |
||
132 | */ |
||
133 | public function setParameter($key, $value) |
||
139 | |||
140 | /** |
||
141 | * @param int $perPage |
||
142 | * @param string $pageName |
||
143 | * |
||
144 | * @return $this |
||
145 | */ |
||
146 | public function paginate($perPage = 25, $pageName = 'page') |
||
153 | |||
154 | /** |
||
155 | * @return $this |
||
156 | */ |
||
157 | public function disablePagination() |
||
163 | |||
164 | /** |
||
165 | * @return bool |
||
166 | */ |
||
167 | public function usePagination() |
||
171 | |||
172 | /** |
||
173 | * @return array |
||
174 | */ |
||
175 | public function toArray() |
||
197 | |||
198 | /** |
||
199 | * @return Collection |
||
200 | * @throws \Exception |
||
201 | */ |
||
202 | public function getCollection() |
||
220 | |||
221 | /** |
||
222 | * @param \Illuminate\Database\Eloquent\Builder|Builder $query |
||
223 | */ |
||
224 | protected function modifyQuery(\Illuminate\Database\Eloquent\Builder $query) |
||
230 | } |
||
231 |
This check looks for function calls that miss required arguments.