1 | <?php |
||
29 | class ProjectController extends Controller |
||
30 | { |
||
31 | /** |
||
32 | * Display project issues kanban view. |
||
33 | * |
||
34 | * @param Project $project |
||
35 | * |
||
36 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
37 | */ |
||
38 | public function getKanban(Project $project) |
||
53 | |||
54 | /** |
||
55 | * Display activity for a project. |
||
56 | * |
||
57 | * @param Project $project |
||
58 | * |
||
59 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
60 | */ |
||
61 | public function getIndex(Project $project) |
||
72 | |||
73 | /** |
||
74 | * Display issues for a project. |
||
75 | * |
||
76 | * @param FilterForm $filterForm |
||
77 | * @param Request $request |
||
78 | * @param Project $project |
||
79 | * @param int $status |
||
80 | * |
||
81 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
82 | */ |
||
83 | public function getIssues(FilterForm $filterForm, Request $request, Project $project, $status = Issue::STATUS_OPEN) |
||
91 | |||
92 | /** |
||
93 | * Display open issues. |
||
94 | * |
||
95 | * @param FilterForm $filterForm |
||
96 | * @param Request $request |
||
97 | * @param Project $project |
||
98 | * |
||
99 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
100 | */ |
||
101 | public function getOpenIssues(FilterForm $filterForm, Request $request, Project $project) |
||
113 | |||
114 | /** |
||
115 | * Display closed issues. |
||
116 | * |
||
117 | * @param FilterForm $filterForm |
||
118 | * @param Request $request |
||
119 | * @param Project $project |
||
120 | * |
||
121 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
122 | */ |
||
123 | public function getClosedIssues(FilterForm $filterForm, Request $request, Project $project) |
||
135 | |||
136 | /** |
||
137 | * Display issues assigned to current user for a project. |
||
138 | * |
||
139 | * @param Project $project |
||
140 | * |
||
141 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
142 | */ |
||
143 | public function getAssigned(Project $project) |
||
155 | |||
156 | /** |
||
157 | * Display issues created to current user for a project. |
||
158 | * |
||
159 | * @param Project $project |
||
160 | * |
||
161 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
162 | */ |
||
163 | public function getCreated(Project $project) |
||
175 | |||
176 | /** |
||
177 | * Display notes for a project. |
||
178 | * |
||
179 | * @param Project $project |
||
180 | * @param NoteForm $form |
||
181 | * |
||
182 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
183 | */ |
||
184 | public function getNotes(Project $project, NoteForm $form) |
||
197 | |||
198 | /** |
||
199 | * @param mixed $data |
||
200 | * @param string $active |
||
201 | * @param Project $project |
||
202 | * |
||
203 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
204 | */ |
||
205 | protected function indexView($data, $active, Project $project) |
||
221 | |||
222 | /** |
||
223 | * Edit the project. |
||
224 | * |
||
225 | * @param Project $project |
||
226 | * @param Form $form |
||
227 | * |
||
228 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
229 | */ |
||
230 | public function getEdit(Project $project, Form $form) |
||
238 | |||
239 | /** |
||
240 | * To update project details. |
||
241 | * |
||
242 | * @param Project $project |
||
243 | * @param FormRequest\Project $request |
||
244 | * |
||
245 | * @return \Illuminate\Http\RedirectResponse |
||
246 | */ |
||
247 | public function postEdit(Project $project, FormRequest\Project $request) |
||
262 | |||
263 | /** |
||
264 | * Ajax: returns list of users that are not in the project. |
||
265 | * |
||
266 | * @param Project $project |
||
267 | * |
||
268 | * @return \Symfony\Component\HttpFoundation\Response |
||
269 | */ |
||
270 | public function getInactiveUsers(Project $project) |
||
276 | |||
277 | /** |
||
278 | * Ajax: add user to the project. |
||
279 | * |
||
280 | * @param Project $project |
||
281 | * @param Request $request |
||
282 | * |
||
283 | * @return \Symfony\Component\HttpFoundation\Response |
||
284 | */ |
||
285 | public function postAssign(Project $project, Request $request) |
||
291 | |||
292 | /** |
||
293 | * Ajax: remove user from the project. |
||
294 | * |
||
295 | * @param Project $project |
||
296 | * @param Request $request |
||
297 | * |
||
298 | * @return \Symfony\Component\HttpFoundation\Response |
||
299 | */ |
||
300 | public function postUnassign(Project $project, Request $request) |
||
306 | |||
307 | /** |
||
308 | * To add a new note to the project. |
||
309 | * |
||
310 | * @param Project $project |
||
311 | * @param Note $note |
||
312 | * @param FormRequest\Note $request |
||
313 | * |
||
314 | * @return \Illuminate\Http\RedirectResponse |
||
315 | */ |
||
316 | public function postAddNote(Project $project, Note $note, FormRequest\Note $request) |
||
324 | |||
325 | /** |
||
326 | * Ajax: To update project note. |
||
327 | * |
||
328 | * @param Project $project |
||
329 | * @param Note $note |
||
330 | * @param Request $request |
||
331 | * |
||
332 | * @return \Symfony\Component\HttpFoundation\Response |
||
333 | */ |
||
334 | public function postEditNote(Project $project, Note $note, Request $request) |
||
346 | |||
347 | /** |
||
348 | * Ajax: to delete a project note. |
||
349 | * |
||
350 | * @param Project $project |
||
351 | * @param Note $note |
||
352 | * |
||
353 | * @return \Symfony\Component\HttpFoundation\Response |
||
354 | */ |
||
355 | public function getDeleteNote(Project $project, Note $note) |
||
362 | |||
363 | /** |
||
364 | * Ajax: generate the issues export file. |
||
365 | * |
||
366 | * @param Project $project |
||
367 | * @param Exporter $exporter |
||
368 | * @param Request $request |
||
369 | * |
||
370 | * @return \Symfony\Component\HttpFoundation\Response |
||
371 | */ |
||
372 | public function postExportIssues(Project $project, Exporter $exporter, Request $request) |
||
395 | |||
396 | /** |
||
397 | * Download and then delete an export file. |
||
398 | * |
||
399 | * @param Project $project |
||
400 | * @param string $file |
||
401 | * |
||
402 | * @return \Symfony\Component\HttpFoundation\BinaryFileResponse |
||
403 | */ |
||
404 | public function getDownloadExport(Project $project, $file) |
||
414 | } |
||
415 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: