1 | <?php |
||
14 | class User extends Entitizer\Utils\Handler { |
||
15 | |||
16 | use Entitizer\Common\User; |
||
17 | |||
18 | protected $_title = 'TITLE_SYSTEM_USERS_EDIT'; |
||
19 | |||
20 | # Handler configuration |
||
21 | |||
22 | protected static $naming = 'name', $naming_new = 'USERS_ITEM_NEW'; |
||
23 | |||
24 | protected static $view = 'Blocks/Entitizer/Users/Main'; |
||
25 | |||
26 | protected static $form_class = 'Modules\Entitizer\Form\User'; |
||
27 | |||
28 | protected static $controller_class = 'Modules\Entitizer\Controller\User'; |
||
29 | |||
30 | protected static $message_success_save = 'USER_SUCCESS_SAVE'; |
||
31 | |||
32 | protected static $message_error_remove = 'USER_ERROR_REMOVE'; |
||
33 | |||
34 | protected static $link = '/admin/system/users'; |
||
35 | |||
36 | /** |
||
37 | * Add additional data for a specific entity |
||
38 | */ |
||
39 | |||
40 | protected function processEntity(Template\Block $contents) { |
||
49 | } |
||
50 | } |
||
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.