1 | <?php namespace Anomaly\Streams\Platform\Stream\Form; |
||
14 | class StreamFormBuilder extends FormBuilder |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * The stream prefix. |
||
19 | * |
||
20 | * @var null|string |
||
21 | */ |
||
22 | protected $prefix = null; |
||
23 | |||
24 | /** |
||
25 | * The stream namespace. |
||
26 | * |
||
27 | * @var null|string |
||
28 | */ |
||
29 | protected $namespace = null; |
||
30 | |||
31 | /** |
||
32 | * The form model. |
||
33 | * |
||
34 | * @var StreamModel |
||
35 | */ |
||
36 | protected $model = StreamModel::class; |
||
37 | |||
38 | /** |
||
39 | * The form fields. |
||
40 | * |
||
41 | * @var StreamFormFields |
||
42 | */ |
||
43 | protected $fields = StreamFormFields::class; |
||
44 | |||
45 | /** |
||
46 | * Fired when making the form. |
||
47 | */ |
||
48 | public function onMake() |
||
54 | |||
55 | /** |
||
56 | * Fired just before saving. |
||
57 | */ |
||
58 | public function onSaving() |
||
74 | |||
75 | /** |
||
76 | * Get the prefix. |
||
77 | * |
||
78 | * @return null|string |
||
79 | */ |
||
80 | public function getPrefix() |
||
84 | |||
85 | /** |
||
86 | * Set the prefix. |
||
87 | * |
||
88 | * @param $prefix |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function setPrefix($prefix) |
||
97 | |||
98 | /** |
||
99 | * Get the namespace. |
||
100 | * |
||
101 | * @return null|string |
||
102 | */ |
||
103 | public function getNamespace() |
||
107 | |||
108 | /** |
||
109 | * Set the namespace. |
||
110 | * |
||
111 | * @param $namespace |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function setNamespace($namespace) |
||
120 | |||
121 | } |
||
122 |