@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | +/** |
|
| 47 | + * @param boolean $message |
|
| 48 | + */ |
|
| 46 | 49 | function validateCanCreateUser($proposedUser, $auth, &$message) |
| 47 | 50 | { |
| 48 | 51 | $user = $auth->getUsersByFilter(new \Data\Filter('mail eq '.$proposedUser->mail)); |
@@ -103,6 +106,9 @@ discard block |
||
| 103 | 106 | return ($uid === 'me' || $uid === $app->user->getUid()); |
| 104 | 107 | } |
| 105 | 108 | |
| 109 | +/** |
|
| 110 | + * @param string $uid |
|
| 111 | + */ |
|
| 106 | 112 | function getUserByUIDReadOnly($app, $uid) |
| 107 | 113 | { |
| 108 | 114 | if(userIsMe($app, $uid)) |
@@ -122,6 +128,9 @@ discard block |
||
| 122 | 128 | return false; |
| 123 | 129 | } |
| 124 | 130 | |
| 131 | +/** |
|
| 132 | + * @param string $uid |
|
| 133 | + */ |
|
| 125 | 134 | function getUserByUID($app, $uid) |
| 126 | 135 | { |
| 127 | 136 | if(userIsMe($app, $uid)) |
@@ -185,6 +194,9 @@ discard block |
||
| 185 | 194 | } |
| 186 | 195 | } |
| 187 | 196 | |
| 197 | +/** |
|
| 198 | + * @param Exception $e |
|
| 199 | + */ |
|
| 188 | 200 | function exceptionCodeToHttpCode($e) |
| 189 | 201 | { |
| 190 | 202 | if($e->getCode() === 3) |
@@ -322,6 +334,10 @@ discard block |
||
| 322 | 334 | echo json_encode(array('success'=>true)); |
| 323 | 335 | } |
| 324 | 336 | |
| 337 | +/** |
|
| 338 | + * @param Data\Filter $filter |
|
| 339 | + * @param boolean $pending |
|
| 340 | + */ |
|
| 325 | 341 | function getAllUsersByFilter($filter, &$pending) |
| 326 | 342 | { |
| 327 | 343 | $auth = AuthProvider::getInstance(); |