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 Read |
||
| 6 | { |
||
| 7 | /* |
||
| 8 | |-------------------------------------------------------------------------- |
||
| 9 | | READ |
||
| 10 | |-------------------------------------------------------------------------- |
||
| 11 | */ |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Find and retrieve an entry in the database or fail. |
||
| 15 | * |
||
| 16 | * @param [int] The id of the row in the db to fetch. |
||
| 17 | * |
||
| 18 | * @return [Eloquent Collection] The row in the db. |
||
|
|
|||
| 19 | */ |
||
| 20 | public function getEntry($id) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Make the query JOIN all relationships used in the columns, too, |
||
| 29 | * so there will be less database queries overall. |
||
| 30 | */ |
||
| 31 | public function autoEagerLoadRelationshipColumns() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get all entries from the database. |
||
| 42 | * |
||
| 43 | * @return [Collection of your model] |
||
| 44 | */ |
||
| 45 | public function getEntries() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the fields for the create or update forms. |
||
| 61 | * |
||
| 62 | * @param [form] create / update / both - defaults to 'both' |
||
| 63 | * @param [integer] the ID of the entity to be edited in the Update form |
||
| 64 | * |
||
| 65 | * @return [array] all the fields that need to be shown and their information |
||
| 66 | */ |
||
| 67 | public function getFields($form, $id = false) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Check if the create/update form has upload fields. |
||
| 86 | * Upload fields are the ones that have "upload" => true defined on them. |
||
| 87 | * @param [form] create / update / both - defaults to 'both' |
||
| 88 | * @param [id] id of the entity - defaults to false |
||
| 89 | * @return bool |
||
| 90 | */ |
||
| 91 | public function hasUploadFields($form, $id = false) |
||
| 100 | |||
| 101 | /** |
||
| 102 | * Enable the DETAILS ROW functionality:. |
||
| 103 | * |
||
| 104 | * In the table view, show a plus sign next to each entry. |
||
| 105 | * When clicking that plus sign, an AJAX call will bring whatever content you want from the EntityCrudController::showDetailsRow($id) and show it to the user. |
||
| 106 | */ |
||
| 107 | public function enableDetailsRow() |
||
| 111 | |||
| 112 | /** |
||
| 113 | * Disable the DETAILS ROW functionality:. |
||
| 114 | */ |
||
| 115 | public function disableDetailsRow() |
||
| 119 | |||
| 120 | /** |
||
| 121 | * Set the number of rows that should be show on the table page (list view). |
||
| 122 | */ |
||
| 123 | public function setDefaultPageLength($value) |
||
| 127 | |||
| 128 | /** |
||
| 129 | * Get the number of rows that should be show on the table page (list view). |
||
| 130 | */ |
||
| 131 | public function getDefaultPageLength() |
||
| 145 | |||
| 146 | /* |
||
| 147 | |-------------------------------------------------------------------------- |
||
| 148 | | AJAX TABLE |
||
| 149 | |-------------------------------------------------------------------------- |
||
| 150 | */ |
||
| 151 | |||
| 152 | /** |
||
| 153 | * Tell the list view to use AJAX for loading multiple rows. |
||
| 154 | */ |
||
| 155 | public function enableAjaxTable() |
||
| 159 | |||
| 160 | /** |
||
| 161 | * Check if ajax is enabled for the table view. |
||
| 162 | * @return bool |
||
| 163 | */ |
||
| 164 | public function ajaxTable() |
||
| 168 | |||
| 169 | /** |
||
| 170 | * Get the HTML of the cells in a table row, for a certain DB entry. |
||
| 171 | * @param Entity $entry A db entry of the current entity; |
||
| 172 | * @return array Array of HTML cell contents. |
||
| 173 | */ |
||
| 174 | public function getRowViews($entry) |
||
| 183 | |||
| 184 | /** |
||
| 185 | * Get the HTML of a cell, using the column types. |
||
| 186 | * @param array $column |
||
| 187 | * @param Entity $entry A db entry of the current entity; |
||
| 188 | * @return HTML |
||
| 189 | */ |
||
| 190 | public function getCellView($column, $entry) |
||
| 206 | |||
| 207 | /* |
||
| 208 | |-------------------------------------------------------------------------- |
||
| 209 | | EXPORT BUTTONS |
||
| 210 | |-------------------------------------------------------------------------- |
||
| 211 | */ |
||
| 212 | |||
| 213 | /** |
||
| 214 | * Tell the list view to show the DataTables export buttons. |
||
| 215 | */ |
||
| 216 | public function enableExportButtons() |
||
| 220 | |||
| 221 | /** |
||
| 222 | * Check if export buttons are enabled for the table view. |
||
| 223 | * @return bool |
||
| 224 | */ |
||
| 225 | public function exportButtons() |
||
| 229 | } |
||
| 230 |
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.