1 | <?php |
||
14 | class SettingsPresenter extends BasePresenter |
||
15 | { |
||
16 | protected function startup() |
||
20 | |||
21 | protected function beforeRender() |
||
25 | |||
26 | public function actionDefault($idPage) |
||
29 | |||
30 | public function createComponentSettingsForm() |
||
31 | { |
||
32 | $settings = array(); |
||
33 | |||
34 | $settings[] = $this->settings->get('Form Subject', 'InvestformModule', 'text'); |
||
35 | $settings[] = $this->settings->get('Form Email body', 'InvestformModule', 'textarea'); |
||
36 | $settings[] = $this->settings->get('Contract Subject', 'InvestformModule', 'text'); |
||
37 | $settings[] = $this->settings->get('Contract Email body', 'InvestformModule', 'textarea'); |
||
38 | $settings[] = $this->settings->get('Notification subject', 'InvestformModule', 'text'); |
||
39 | $settings[] = $this->settings->get('Notification body', 'InvestformModule', 'textarea'); |
||
40 | $settings[] = $this->settings->get('Businessman password', 'InvestformModule', 'text'); |
||
41 | |||
42 | return $this->createSettingsForm($settings); |
||
43 | } |
||
44 | |||
45 | public function renderDefault($idPage) |
||
51 | } |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.