1 | <?php |
||
24 | class SetUpForm extends Model |
||
25 | { |
||
26 | public $name; |
||
27 | public $nickname = ''; |
||
28 | public $gravatar_type = 0; |
||
29 | public $gravatar = ''; |
||
30 | public $timezone = 'UTC'; |
||
31 | public $description = ''; |
||
32 | /** |
||
33 | * @var Organization |
||
34 | */ |
||
35 | private $_parent; |
||
36 | /** |
||
37 | * @var User |
||
38 | */ |
||
39 | private $_user; |
||
40 | |||
41 | /** |
||
42 | * Finds user. |
||
43 | * |
||
44 | * @return User|null |
||
45 | */ |
||
46 | public function getUser() |
||
53 | |||
54 | /** |
||
55 | * Set user. |
||
56 | * @param User $user |
||
57 | */ |
||
58 | public function setUser($user) |
||
67 | |||
68 | /** |
||
69 | * Get parent organization or department. |
||
70 | * @return Organization |
||
71 | */ |
||
72 | public function getParent() |
||
79 | |||
80 | /** |
||
81 | * Set parent organization or department. |
||
82 | * If you want to set up organization, please set it null. |
||
83 | * @param Organization|string|integer $parent |
||
84 | * @return boolean |
||
85 | */ |
||
86 | public function setParent($parent) |
||
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | public function attributeLabels() |
||
114 | |||
115 | /** |
||
116 | * @inheritdoc |
||
117 | */ |
||
118 | public function rules() |
||
130 | |||
131 | /** |
||
132 | * Set up organization. |
||
133 | * You need to make sure that the user who want to set up the organization |
||
134 | * who has the `orgCreator` permission. |
||
135 | * @return boolean |
||
136 | */ |
||
137 | public function setUpOrganization() |
||
141 | |||
142 | /** |
||
143 | * Set up department. |
||
144 | * You need to make sure that the user who want to set up the department who |
||
145 | * is the creator or administrator of parent one. |
||
146 | * @return boolean |
||
147 | */ |
||
148 | public function setUpDepartment() |
||
152 | } |
||
153 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.