1 | <?php |
||
28 | class FormHelper extends CoreFormHelper |
||
29 | { |
||
30 | |||
31 | use PrepareHelpers; |
||
32 | |||
33 | /** |
||
34 | * List of helpers used by this helper. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | public $helpers = [ |
||
39 | 'Url' => ['className' => 'Core.Url'], |
||
40 | 'Html' => ['className' => 'Backend.Html'] |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * Creates file input widget. |
||
45 | * |
||
46 | * @param string $fieldName Name of a field, in the form "modelname.fieldname" |
||
47 | * @param array $options Array of HTML attributes. |
||
48 | * |
||
49 | * @return string A generated file input. |
||
50 | */ |
||
51 | public function file($fieldName, array $options = []) |
||
67 | |||
68 | /** |
||
69 | * Constructor hook method. |
||
70 | * |
||
71 | * @param array $config |
||
72 | * @throws Exception |
||
73 | */ |
||
74 | public function initialize(array $config) |
||
84 | |||
85 | /** |
||
86 | * Form switcher. |
||
87 | * |
||
88 | * @param string $fieldName |
||
89 | * @param array $options |
||
90 | * @return string |
||
91 | */ |
||
92 | public function switcher($fieldName, array $options = []) |
||
117 | } |
||
118 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.