1 | <?php |
||
7 | class Menuitems extends Entitizer\Utils\Listview { |
||
8 | |||
9 | use Entitizer\Common\Menuitem; |
||
10 | |||
11 | # Listview configuration |
||
12 | |||
13 | protected static $lister = 'Modules\Entitizer\Lister\Menuitems'; |
||
14 | |||
15 | protected static $link = '/admin/content/menuitems'; |
||
16 | |||
17 | protected static $naming = 'text'; |
||
18 | |||
19 | protected static $display = CONFIG_ADMIN_MENUITEMS_DISPLAY; |
||
20 | |||
21 | protected static $view_main = 'Blocks\Entitizer\Menuitems\Listview\Main'; |
||
22 | |||
23 | protected static $view_item = 'Blocks\Entitizer\Menuitems\Listview\Item'; |
||
24 | |||
25 | protected static $view_ajax_main = 'Blocks\Entitizer\Menuitems\Ajax\Main'; |
||
26 | |||
27 | protected static $view_ajax_item = 'Blocks\Entitizer\Menuitems\Ajax\Item'; |
||
28 | |||
29 | # Add additional data for specific entity |
||
30 | |||
31 | protected function processEntity(Template\Asset\Block $contents) { |
||
39 | |||
40 | # Add item additional data |
||
41 | |||
42 | protected function processItem(Template\Asset\Block $view, Entitizer\Entity\Menuitem $menuitem, int $children = 0) { |
||
54 | } |
||
55 | } |
||
56 |
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.