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 | protected $editView = 'crud::edit'; |
||
9 | protected $showView = 'crud::show'; |
||
10 | protected $detailsRowView = 'crud::details_row'; |
||
11 | protected $revisionsView = 'crud::revisions'; |
||
12 | protected $revisionsTimelineView = 'crud::inc.revision_timeline'; |
||
13 | protected $reorderView = 'crud::reorder'; |
||
14 | protected $listView = 'crud::list'; |
||
15 | |||
16 | // ------- |
||
17 | // CREATE |
||
18 | // ------- |
||
19 | |||
20 | /** |
||
21 | * Sets the list template. |
||
22 | * @param string $view name of the template file |
||
23 | * @return string $view name of the template file |
||
24 | */ |
||
25 | public function setCreateView($view) |
||
31 | |||
32 | /** |
||
33 | * Gets the create template. |
||
34 | * @return string name of the template file |
||
35 | */ |
||
36 | public function getCreateView() |
||
40 | |||
41 | // ------- |
||
42 | // READ |
||
43 | // ------- |
||
44 | |||
45 | /** |
||
46 | * Sets the list template. |
||
47 | * @param string $view name of the template file |
||
48 | * @return string $view name of the template file |
||
49 | */ |
||
50 | public function setListView($view) |
||
56 | |||
57 | /** |
||
58 | * Gets the list template. |
||
59 | * @return string name of the template file |
||
60 | */ |
||
61 | public function getListView() |
||
65 | |||
66 | /** |
||
67 | * Sets the details row template. |
||
68 | * @param string $view name of the template file |
||
69 | * @return string $view name of the template file |
||
70 | */ |
||
71 | public function setDetailsRowView($view) |
||
77 | |||
78 | /** |
||
79 | * Gets the details row template. |
||
80 | * @return string name of the template file |
||
81 | */ |
||
82 | public function getDetailsRowView() |
||
86 | |||
87 | /** |
||
88 | * Sets the show template. |
||
89 | * @param string $view name of the template file |
||
90 | * @return string $view name of the template file |
||
91 | */ |
||
92 | public function setShowView($view) |
||
98 | |||
99 | /** |
||
100 | * Gets the show template. |
||
101 | * @return string name of the template file |
||
102 | */ |
||
103 | public function getShowView() |
||
107 | |||
108 | // ------- |
||
109 | // UPDATE |
||
110 | // ------- |
||
111 | |||
112 | /** |
||
113 | * Sets the edit template. |
||
114 | * @param string $view name of the template file |
||
115 | * @return string $view name of the template file |
||
116 | */ |
||
117 | public function setEditView($view) |
||
123 | |||
124 | /** |
||
125 | * Gets the edit template. |
||
126 | * @return string name of the template file |
||
127 | */ |
||
128 | public function getEditView() |
||
132 | |||
133 | /** |
||
134 | * Sets the reorder template. |
||
135 | * @param string $view name of the template file |
||
136 | * @return string $view name of the template file |
||
137 | */ |
||
138 | public function setReorderView($view) |
||
144 | |||
145 | /** |
||
146 | * Gets the reorder template. |
||
147 | * @return string name of the template file |
||
148 | */ |
||
149 | public function getReorderView() |
||
153 | |||
154 | /** |
||
155 | * Sets the revision template. |
||
156 | * @param string $view name of the template file |
||
157 | * @return string $view name of the template file |
||
158 | */ |
||
159 | public function setRevisionsView($view) |
||
165 | |||
166 | /** |
||
167 | * Sets the revision template. |
||
168 | * @param string $view name of the template file |
||
169 | * @return string $view name of the template file |
||
170 | */ |
||
171 | public function setRevisionsTimelineView($view) |
||
177 | |||
178 | /** |
||
179 | * Gets the revisions template. |
||
180 | * @return string name of the template file |
||
181 | */ |
||
182 | public function getRevisionsView() |
||
186 | |||
187 | /** |
||
188 | * Gets the revisions template. |
||
189 | * @return string name of the template file |
||
190 | */ |
||
191 | public function getRevisionsTimelineView() |
||
195 | |||
196 | // ------- |
||
197 | // ALIASES |
||
198 | // ------- |
||
199 | |||
200 | public function getPreviewView() |
||
204 | |||
205 | public function setPreviewView($view) |
||
209 | |||
210 | public function getUpdateView() |
||
214 | |||
215 | public function setUpdateView($view) |
||
219 | } |
||
220 |