1 | <?php namespace Anomaly\Streams\Platform\Http\Controller; |
||
16 | class FieldsController extends AdminController |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * The stream namespace. |
||
21 | * |
||
22 | * @var null|string |
||
23 | */ |
||
24 | protected $namespace = null; |
||
25 | |||
26 | /** |
||
27 | * Return an index of existing fields. |
||
28 | * |
||
29 | * @param FieldTableBuilder $table |
||
30 | * @return \Symfony\Component\HttpFoundation\Response |
||
31 | */ |
||
32 | public function index(FieldTableBuilder $table) |
||
38 | |||
39 | /** |
||
40 | * Choose a field type for creating a field. |
||
41 | * |
||
42 | * @param FieldTypeCollection $fieldTypes |
||
43 | * @return \Illuminate\View\View |
||
44 | */ |
||
45 | public function choose(FieldTypeCollection $fieldTypes, ModuleCollection $modules) |
||
55 | |||
56 | /** |
||
57 | * Create a new field. |
||
58 | * |
||
59 | * @param FieldFormBuilder $form |
||
60 | * @param FieldTypeCollection $fieldTypes |
||
61 | * @return \Symfony\Component\HttpFoundation\Response |
||
62 | */ |
||
63 | public function create(FieldFormBuilder $form, FieldTypeCollection $fieldTypes) |
||
70 | |||
71 | /** |
||
72 | * Edit an existing field. |
||
73 | * |
||
74 | * @param FieldFormBuilder $form |
||
75 | * @param FieldTypeCollection $fieldTypes |
||
76 | * @return \Symfony\Component\HttpFoundation\Response |
||
77 | */ |
||
78 | public function edit(FieldFormBuilder $form, FieldTypeCollection $fieldTypes) |
||
85 | |||
86 | /** |
||
87 | * Choose a field type for changing an existing field. |
||
88 | * |
||
89 | * @param FieldTypeCollection $fieldTypes |
||
90 | * @return \Illuminate\View\View |
||
91 | */ |
||
92 | public function change(FieldTypeCollection $fieldTypes, ModuleCollection $modules) |
||
106 | |||
107 | /** |
||
108 | * Get the namespace. |
||
109 | * |
||
110 | * @return null|string |
||
111 | */ |
||
112 | public function getNamespace() |
||
116 | } |
||
117 |