@@ -120,7 +120,7 @@ |
||
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | 122 | * Set Organization. |
| 123 | - * @param BaseOrganization $organization |
|
| 123 | + * @param Organization $organization |
|
| 124 | 124 | * @return boolean |
| 125 | 125 | */ |
| 126 | 126 | public function setOrganization($organization) |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * @param string $name |
| 162 | 162 | * @param Organization $parent |
| 163 | 163 | * @param string $nickname |
| 164 | - * @param string $gravatar_type |
|
| 164 | + * @param integer $gravatar_type |
|
| 165 | 165 | * @param string $gravatar |
| 166 | 166 | * @param string $timezone |
| 167 | 167 | * @param string $description |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | * @param string $name |
| 178 | 178 | * @param Organization $parent |
| 179 | 179 | * @param string $nickname |
| 180 | - * @param string $gravatar_type |
|
| 180 | + * @param integer $gravatar_type |
|
| 181 | 181 | * @param string $gravatar |
| 182 | 182 | * @param string $timezone |
| 183 | 183 | * @param string $description |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Check access. |
| 51 | - * @param Organization $org |
|
| 51 | + * @param \rhosocial\organization\Organization $org |
|
| 52 | 52 | * @param string|integer $id User ID. If access checking passed, it will be re-assigned with the User model. |
| 53 | 53 | * @param User $user |
| 54 | 54 | * @return boolean |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | { |
| 26 | 26 | /** |
| 27 | 27 | * |
| 28 | - * @param string $orgOnly |
|
| 29 | 28 | * @return string rendering result. |
| 30 | 29 | */ |
| 31 | 30 | public function run() |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Check access. |
| 52 | - * @param $org |
|
| 52 | + * @param \rhosocial\organization\Organization $org |
|
| 53 | 53 | * @param $user |
| 54 | 54 | * @return bool |
| 55 | 55 | * @throws UnauthorizedManageMemberException |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | * Assign SetUpOrganization permission and set upper limit. |
| 111 | 111 | * If the permission has been assigned, it will only change the limit. |
| 112 | 112 | * @param User|string|integer $user |
| 113 | - * @param string|integer $limit |
|
| 114 | - * @return boolean |
|
| 113 | + * @param integer $limit |
|
| 114 | + * @return integer |
|
| 115 | 115 | */ |
| 116 | 116 | public function actionAssignSetUpOrganization($user, $limit = 1) |
| 117 | 117 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Revoke SetUpOrganization permission. |
| 168 | 168 | * @param User|string|integer $user |
| 169 | - * @return boolean |
|
| 169 | + * @return integer |
|
| 170 | 170 | */ |
| 171 | 171 | public function actionRevokeSetUpOrganization($user) |
| 172 | 172 | { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * Remove administrator |
| 290 | 290 | * @param Organization|string|integer $organization |
| 291 | 291 | * @param User|string|integer $user |
| 292 | - * @param boolean $keepMember |
|
| 292 | + * @param string|boolean $keepMember |
|
| 293 | 293 | * @throws Exception |
| 294 | 294 | * @return integer |
| 295 | 295 | */ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Check access. |
| 51 | - * @param $org |
|
| 51 | + * @param \rhosocial\organization\Organization $org |
|
| 52 | 52 | * @param $user |
| 53 | 53 | * @return bool |
| 54 | 54 | * @throws UnauthorizedManageProfileException |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | |
| 372 | 372 | /** |
| 373 | 373 | * Get subordinate limit query. |
| 374 | - * @return null|BaseBlameableQuery |
|
| 374 | + * @return null|\yii\db\ActiveQuery |
|
| 375 | 375 | */ |
| 376 | 376 | public function getSubordinateLimit() |
| 377 | 377 | { |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | |
| 386 | 386 | /** |
| 387 | 387 | * Get member limit query. |
| 388 | - * @return null|BaseBlameableQuery |
|
| 388 | + * @return null|\yii\db\ActiveQuery |
|
| 389 | 389 | */ |
| 390 | 390 | public function getMemberLimit() |
| 391 | 391 | { |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | |
| 400 | 400 | /** |
| 401 | 401 | * @param string|null $item If you want to get all settings, please set it null. |
| 402 | - * @return null |
|
| 402 | + * @return null|\yii\db\ActiveQuery |
|
| 403 | 403 | */ |
| 404 | 404 | public function getSettings($item = null) |
| 405 | 405 | { |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | |
| 781 | 781 | /** |
| 782 | 782 | * Add administrator. |
| 783 | - * @param User|integer|string $user User instance, or its GUID or ID. |
|
| 783 | + * @param User $user User instance, or its GUID or ID. |
|
| 784 | 784 | * @return boolean |
| 785 | 785 | * @throws \Exception |
| 786 | 786 | * @throws IntegrityException |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | |
| 897 | 897 | /** |
| 898 | 898 | * @param bool $value |
| 899 | - * @return bool |
|
| 899 | + * @return boolean|null |
|
| 900 | 900 | */ |
| 901 | 901 | public function setIsExcludeOtherMembers($value = true) |
| 902 | 902 | { |
@@ -920,7 +920,7 @@ discard block |
||
| 920 | 920 | |
| 921 | 921 | /** |
| 922 | 922 | * @param bool $value |
| 923 | - * @return bool |
|
| 923 | + * @return boolean|null |
|
| 924 | 924 | */ |
| 925 | 925 | public function setIsDisallowMemberJoinOther($value = true) |
| 926 | 926 | { |
@@ -944,7 +944,7 @@ discard block |
||
| 944 | 944 | |
| 945 | 945 | /** |
| 946 | 946 | * @param bool $value |
| 947 | - * @return bool |
|
| 947 | + * @return boolean|null |
|
| 948 | 948 | */ |
| 949 | 949 | public function setIsOnlyAcceptCurrentOrgMember($value = true) |
| 950 | 950 | { |
@@ -971,7 +971,7 @@ discard block |
||
| 971 | 971 | |
| 972 | 972 | /** |
| 973 | 973 | * @param bool $value |
| 974 | - * @return bool |
|
| 974 | + * @return boolean|null |
|
| 975 | 975 | */ |
| 976 | 976 | public function setIsOnlyAcceptSuperiorOrgMember($value = true) |
| 977 | 977 | { |