1 | <?php |
||
6 | class ConsoleForm extends Form |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * @var ContentController |
||
10 | */ |
||
11 | protected $controller; |
||
12 | |||
13 | /** |
||
14 | * @param Controller $controller |
||
15 | * @param string $name |
||
16 | */ |
||
17 | public function __construct(Controller $controller, $name) |
||
29 | |||
30 | /** |
||
31 | * @param array $data |
||
32 | * @param ConsoleForm $form |
||
33 | * @param SS_HTTPRequest $request |
||
34 | */ |
||
35 | public function submitForm($data, ConsoleForm $form, SS_HTTPRequest $request) |
||
41 | |||
42 | /** |
||
43 | * @return FieldList |
||
44 | */ |
||
45 | public function getCustomFields() |
||
53 | |||
54 | /** |
||
55 | * @return FieldList |
||
56 | */ |
||
57 | public function getCustomActions() |
||
65 | |||
66 | public function getCustomValidator(FieldList $fields) |
||
74 | |||
75 | /** |
||
76 | * Add required stars to field labels |
||
77 | * |
||
78 | * @param array $required |
||
79 | * @param FieldList $fields |
||
80 | */ |
||
81 | protected function setRequiredFieldsLabels($required, FieldList $fields) |
||
94 | |||
95 | } |
||
96 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.