1 | <?php |
||
7 | class User extends Entitizer\Utils\Handler { |
||
8 | |||
9 | use Entitizer\Common\User; |
||
10 | |||
11 | protected $title = 'TITLE_SYSTEM_USERS_EDIT'; |
||
12 | |||
13 | # Handler configuration |
||
14 | |||
15 | protected static $controller = 'Modules\Entitizer\Controller\User'; |
||
16 | |||
17 | protected static $link = '/admin/system/users'; |
||
18 | |||
19 | protected static $naming = 'name', $naming_new = 'USERS_ITEM_NEW'; |
||
20 | |||
21 | protected static $form_class = 'Modules\Entitizer\Form\User'; |
||
22 | |||
23 | protected static $message_success_save = 'USER_SUCCESS_SAVE'; |
||
24 | |||
25 | protected static $message_error_remove = 'USER_ERROR_REMOVE'; |
||
26 | |||
27 | protected static $view = 'Blocks/Entitizer/Users/Main'; |
||
28 | |||
29 | # Add additional data for specific entity |
||
30 | |||
31 | protected function processEntity(Template\Block $contents) { |
||
40 | } |
||
41 | } |
||
42 |
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.