We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
5 | trait Search |
||
6 | { |
||
7 | /* |
||
8 | |-------------------------------------------------------------------------- |
||
9 | | SEARCH |
||
10 | |-------------------------------------------------------------------------- |
||
11 | */ |
||
12 | |||
13 | public $ajax_table = true; |
||
14 | |||
15 | /** |
||
16 | * Add conditions to the CRUD query for a particular search term. |
||
17 | * |
||
18 | * @param [string] $searchTerm Whatever string the user types in the search bar. |
||
|
|||
19 | */ |
||
20 | public function applySearchTerm($searchTerm) |
||
32 | |||
33 | /** |
||
34 | * Apply the search logic for each CRUD column. |
||
35 | */ |
||
36 | public function applySearchLogicForColumn($query, $column, $searchTerm) |
||
76 | |||
77 | /** |
||
78 | * Tell the list view to use AJAX for loading multiple rows. |
||
79 | * |
||
80 | 1 | * @deprecated 3.3.0 All tables are AjaxTables starting with 3.3.0. |
|
81 | */ |
||
82 | 1 | public function enableAjaxTable() |
|
86 | |||
87 | /** |
||
88 | * Check if ajax is enabled for the table view. |
||
89 | * |
||
90 | * @deprecated 3.3.0 Since all tables use ajax, this will soon be removed. |
||
91 | 2 | * @return bool |
|
92 | */ |
||
93 | 2 | public function ajaxTable() |
|
97 | |||
98 | /** |
||
99 | * Get the HTML of the cells in a table row, for a certain DB entry. |
||
100 | * @param Entity $entry A db entry of the current entity; |
||
101 | * @param int The number shown to the user as row number (index); |
||
102 | * @return array Array of HTML cell contents. |
||
103 | */ |
||
104 | public function getRowViews($entry, $rowNumber = false) |
||
133 | |||
134 | /** |
||
135 | * Get the HTML of a cell, using the column types. |
||
136 | * @param array $column |
||
137 | * @param Entity $entry A db entry of the current entity; |
||
138 | * @param int The number shown to the user as row number (index); |
||
139 | * @return HTML |
||
140 | */ |
||
141 | public function getCellView($column, $entry, $rowNumber = false) |
||
145 | |||
146 | /** |
||
147 | * Get the name of the view to load for the cell. |
||
148 | * @param $column |
||
149 | * @return string |
||
150 | */ |
||
151 | private function getCellViewName($column) |
||
171 | |||
172 | /** |
||
173 | * Render the given view. |
||
174 | * @param $view |
||
175 | * @param $column |
||
176 | * @param $entry |
||
177 | * @param int The number shown to the user as row number (index); |
||
178 | * @return mixed |
||
179 | */ |
||
180 | private function renderCellView($view, $column, $entry, $rowNumber = false) |
||
193 | |||
194 | /** |
||
195 | * Created the array to be fed to the data table. |
||
196 | * |
||
197 | * @param $entries Eloquent results. |
||
198 | * @return array |
||
199 | */ |
||
200 | public function getEntriesAsJsonForDatatables($entries, $totalRows, $filteredRows, $startIndex = false) |
||
215 | } |
||
216 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.