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 Views |
||
| 6 | { |
||
| 7 | protected $createView = 'crud::create'; |
||
| 8 | |||
| 9 | protected $editView = 'crud::edit'; |
||
| 10 | |||
| 11 | protected $showView = 'crud::show'; |
||
| 12 | |||
| 13 | protected $detailsRowView = 'crud::details_row'; |
||
| 14 | |||
| 15 | protected $revisionsView = 'crud::revisions'; |
||
| 16 | |||
| 17 | protected $revisionsTimelineView = 'crud::inc.revision_timeline'; |
||
| 18 | |||
| 19 | protected $reorderView = 'crud::reorder'; |
||
| 20 | |||
| 21 | protected $listView = 'crud::list'; |
||
| 22 | |||
| 23 | protected $createContentClass; |
||
| 24 | |||
| 25 | protected $editContentClass; |
||
| 26 | |||
| 27 | protected $listContentClass; |
||
| 28 | |||
| 29 | // ------- |
||
| 30 | // CREATE |
||
| 31 | // ------- |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Sets the create template. |
||
| 35 | * @param string $view name of the template file |
||
| 36 | * @return string $view name of the template file |
||
| 37 | */ |
||
| 38 | public function setCreateView($view) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Gets the create template. |
||
| 47 | * @return string name of the template file |
||
| 48 | */ |
||
| 49 | public function getCreateView() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Sets the create content class. |
||
| 56 | * @param string $createContentClass content class |
||
| 57 | */ |
||
| 58 | public function setCreateContentClass(string $createContentClass) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Gets the create content class. |
||
| 65 | * @return string content class for create view |
||
| 66 | */ |
||
| 67 | public function getCreateContentClass() |
||
| 71 | |||
| 72 | // ------- |
||
| 73 | // READ |
||
| 74 | // ------- |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Sets the list template. |
||
| 78 | * @param string $view name of the template file |
||
| 79 | * @return string $view name of the template file |
||
| 80 | */ |
||
| 81 | public function setListView($view) |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Gets the list template. |
||
| 90 | * @return string name of the template file |
||
| 91 | */ |
||
| 92 | public function getListView() |
||
| 96 | |||
| 97 | /** |
||
| 98 | * Sets the list content class. |
||
| 99 | * @param string $listContentClass content class |
||
| 100 | */ |
||
| 101 | public function setListContentClass(string $listContentClass) |
||
| 105 | |||
| 106 | /** |
||
| 107 | * Gets the list content class. |
||
| 108 | * @return string content class for list view |
||
| 109 | */ |
||
| 110 | public function getListContentClass() |
||
| 114 | |||
| 115 | /** |
||
| 116 | * Sets the details row template. |
||
| 117 | * @param string $view name of the template file |
||
| 118 | * @return string $view name of the template file |
||
| 119 | */ |
||
| 120 | public function setDetailsRowView($view) |
||
| 126 | |||
| 127 | /** |
||
| 128 | * Gets the details row template. |
||
| 129 | * @return string name of the template file |
||
| 130 | */ |
||
| 131 | public function getDetailsRowView() |
||
| 135 | |||
| 136 | /** |
||
| 137 | * Sets the show template. |
||
| 138 | * @param string $view name of the template file |
||
| 139 | * @return string $view name of the template file |
||
| 140 | */ |
||
| 141 | public function setShowView($view) |
||
| 147 | |||
| 148 | /** |
||
| 149 | * Gets the show template. |
||
| 150 | * @return string name of the template file |
||
| 151 | */ |
||
| 152 | public function getShowView() |
||
| 156 | |||
| 157 | // ------- |
||
| 158 | // UPDATE |
||
| 159 | // ------- |
||
| 160 | |||
| 161 | /** |
||
| 162 | * Sets the edit template. |
||
| 163 | * @param string $view name of the template file |
||
| 164 | * @return string $view name of the template file |
||
| 165 | */ |
||
| 166 | public function setEditView($view) |
||
| 172 | |||
| 173 | /** |
||
| 174 | * Gets the edit template. |
||
| 175 | * @return string name of the template file |
||
| 176 | */ |
||
| 177 | public function getEditView() |
||
| 181 | |||
| 182 | /** |
||
| 183 | * Sets the edit content class. |
||
| 184 | * @param string $editContentClass content class |
||
| 185 | */ |
||
| 186 | public function setEditContentClass(string $editContentClass) |
||
| 190 | |||
| 191 | /** |
||
| 192 | * Gets the edit content class. |
||
| 193 | * @return string content class for edit view |
||
| 194 | */ |
||
| 195 | public function getEditContentClass() |
||
| 199 | |||
| 200 | /** |
||
| 201 | * Sets the reorder template. |
||
| 202 | * @param string $view name of the template file |
||
| 203 | * @return string $view name of the template file |
||
| 204 | */ |
||
| 205 | public function setReorderView($view) |
||
| 211 | |||
| 212 | /** |
||
| 213 | * Gets the reorder template. |
||
| 214 | * @return string name of the template file |
||
| 215 | */ |
||
| 216 | public function getReorderView() |
||
| 220 | |||
| 221 | /** |
||
| 222 | * Sets the revision template. |
||
| 223 | * @param string $view name of the template file |
||
| 224 | * @return string $view name of the template file |
||
| 225 | */ |
||
| 226 | public function setRevisionsView($view) |
||
| 232 | |||
| 233 | /** |
||
| 234 | * Sets the revision template. |
||
| 235 | * @param string $view name of the template file |
||
| 236 | * @return string $view name of the template file |
||
| 237 | */ |
||
| 238 | public function setRevisionsTimelineView($view) |
||
| 244 | |||
| 245 | /** |
||
| 246 | * Gets the revisions template. |
||
| 247 | * @return string name of the template file |
||
| 248 | */ |
||
| 249 | public function getRevisionsView() |
||
| 253 | |||
| 254 | /** |
||
| 255 | * Gets the revisions template. |
||
| 256 | * @return string name of the template file |
||
| 257 | */ |
||
| 258 | public function getRevisionsTimelineView() |
||
| 262 | |||
| 263 | // ------- |
||
| 264 | // ALIASES |
||
| 265 | // ------- |
||
| 266 | |||
| 267 | public function getPreviewView() |
||
| 271 | |||
| 272 | public function setPreviewView($view) |
||
| 276 | |||
| 277 | public function getUpdateView() |
||
| 281 | |||
| 282 | public function setUpdateView($view) |
||
| 286 | } |
||
| 287 |