Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function addAnonsToModule($categoryAnons) |
||
16 | { |
||
17 | $row = new FormCheckbox('anons_merge', 'Сгенерировать для анонса заголовок и ссылку на новость'); |
||
18 | $this->rows['anons_merge'] = $rows_plugin[] = $row->setTab('anons', 'Создать анонс'); |
||
19 | |||
20 | $row = new FormTextarea('anons_description', 'Текст для анонса новости в модуле'); |
||
21 | $this->rows['anons_description'] = $rows_plugin[] = $row->setTab('anons', 'Создать анонс')->setTypo(); |
||
22 | |||
23 | $this->settings['anons_category'] = $categoryAnons; |
||
24 | $this->plugins_backend['anons']['rows'] = $rows_plugin; |
||
25 | return $this; |
||
26 | } |
||
27 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: