@@ -60,10 +60,10 @@ discard block |
||
| 60 | 60 | * If the storage group has a different base_dn to the adLDAP configuration, set it using $base_dn |
| 61 | 61 | * @param string $emailAddress The primary email address to add to this user |
| 62 | 62 | * @param string $mailNickname The mail nick name. If mail nickname is blank, the username will be used |
| 63 | - * @param bool $mdbUseDefaults Indicates whether the store should use the default quota, rather than the per-mailbox quota. |
|
| 63 | + * @param bool $useDefaults Indicates whether the store should use the default quota, rather than the per-mailbox quota. |
|
| 64 | 64 | * @param string $baseDn Specify an alternative base_dn for the Exchange storage group |
| 65 | 65 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 66 | - * @return bool |
|
| 66 | + * @return string|boolean |
|
| 67 | 67 | */ |
| 68 | 68 | public function createMailbox($username, $storageGroup, $emailAddress, $mailNickname=NULL, $useDefaults=TRUE, $baseDn=NULL, $isGUID=false) { |
| 69 | 69 | if ($username === NULL){ return "Missing compulsory field [username]"; } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param string $surname Surname |
| 109 | 109 | * @param string $givenName Given name |
| 110 | 110 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 111 | - * @return bool |
|
| 111 | + * @return string|boolean |
|
| 112 | 112 | */ |
| 113 | 113 | public function addX400($username, $country, $admd, $pdmd, $org, $surname, $givenName, $isGUID=false) { |
| 114 | 114 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * @param string $emailAddress The email address to add to this user |
| 146 | 146 | * @param bool $default Make this email address the default address, this is a bit more intensive as we have to demote any existing default addresses |
| 147 | 147 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 148 | - * @return bool |
|
| 148 | + * @return string|boolean |
|
| 149 | 149 | */ |
| 150 | 150 | public function addAddress($username, $emailAddress, $default = FALSE, $isGUID = false) { |
| 151 | 151 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * @param string $username The username of the user to add the Exchange account to |
| 211 | 211 | * @param string $emailAddress The email address to add to this user |
| 212 | 212 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 213 | - * @return bool |
|
| 213 | + * @return string|boolean |
|
| 214 | 214 | */ |
| 215 | 215 | public function deleteAddress($username, $emailAddress, $isGUID=false) { |
| 216 | 216 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * @param string $distinguishedName The contact to mail enable |
| 289 | 289 | * @param string $emailAddress The email address to allow emails to be sent through |
| 290 | 290 | * @param string $mailNickname The mailnickname for the contact in Exchange. If NULL this will be set to the display name |
| 291 | - * @return bool |
|
| 291 | + * @return string|boolean |
|
| 292 | 292 | */ |
| 293 | 293 | public function contactMailEnable($distinguishedName, $emailAddress, $mailNickname = NULL) { |
| 294 | 294 | if ($distinguishedName === NULL) { return "Missing compulsory field [distinguishedName]"; } |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * Create an organizational unit |
| 146 | 146 | * |
| 147 | 147 | * @param array $attributes Default attributes of the ou |
| 148 | - * @return bool |
|
| 148 | + * @return string|boolean |
|
| 149 | 149 | */ |
| 150 | 150 | public function create($attributes) { |
| 151 | 151 | if (!is_array($attributes)) { return "Attributes must be an array"; } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * Create a group |
| 155 | 155 | * |
| 156 | 156 | * @param array $attributes Default attributes of the group |
| 157 | - * @return bool |
|
| 157 | + * @return string|boolean |
|
| 158 | 158 | */ |
| 159 | 159 | public function create($attributes) { |
| 160 | 160 | if (!is_array($attributes)) { return "Attributes must be an array"; } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @param string $group The group to delete (please be careful here!) |
| 190 | 190 | * |
| 191 | - * @return array |
|
| 191 | + * @return string|boolean |
|
| 192 | 192 | */ |
| 193 | 193 | public function delete($group) { |
| 194 | 194 | if (!$this->adldap->getLdapBind()) { return false; } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * If you specify a password here, this can only be performed over SSL |
| 72 | 72 | * |
| 73 | 73 | * @param array $attributes The attributes to set to the user account |
| 74 | - * @return bool |
|
| 74 | + * @return string|boolean |
|
| 75 | 75 | */ |
| 76 | 76 | public function create($attributes) { |
| 77 | 77 | // Check for compulsory fields |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Account control options |
| 126 | 126 | * |
| 127 | - * @param array $options The options to convert to int |
|
| 127 | + * @param string[] $options The options to convert to int |
|
| 128 | 128 | * @return int |
| 129 | 129 | */ |
| 130 | 130 | protected function accountControl($options) { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * |
| 163 | 163 | * @param string $username The username to delete (please be careful here!) |
| 164 | 164 | * @param bool $isGUID Is the username a GUID or a samAccountName |
| 165 | - * @return array |
|
| 165 | + * @return boolean |
|
| 166 | 166 | */ |
| 167 | 167 | public function delete($username, $isGUID = false) { |
| 168 | 168 | $userinfo = $this->info($username, array("*"), $isGUID); |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | * @param string $username The username to query |
| 376 | 376 | * @param array $attributes The attributes to modify. Note if you set the enabled attribute you must not specify any other attributes |
| 377 | 377 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 378 | - * @return bool |
|
| 378 | + * @return string|boolean |
|
| 379 | 379 | */ |
| 380 | 380 | public function modify($username, $attributes, $isGUID = false) { |
| 381 | 381 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | * |
| 422 | 422 | * @param string $username The username to disable |
| 423 | 423 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 424 | - * @return bool |
|
| 424 | + * @return string|boolean |
|
| 425 | 425 | */ |
| 426 | 426 | public function disable($username, $isGUID = false) { |
| 427 | 427 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | * |
| 438 | 438 | * @param string $username The username to enable |
| 439 | 439 | * @param bool $isGUID Is the username passed a GUID or a samAccountName |
| 440 | - * @return bool |
|
| 440 | + * @return string|boolean |
|
| 441 | 441 | */ |
| 442 | 442 | public function enable($username, $isGUID = false) { |
| 443 | 443 | if ($username === NULL) { return "Missing compulsory field [username]"; } |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | * @param string $username The username to move (please be careful here!) |
| 621 | 621 | * @param array $container The container or containers to move the user to (please be careful here!). |
| 622 | 622 | * accepts containers in 1. parent 2. child order |
| 623 | - * @return array |
|
| 623 | + * @return string|boolean |
|
| 624 | 624 | */ |
| 625 | 625 | public function move($username, $container) { |
| 626 | 626 | if (!$this->adldap->getLdapBind()) { return false; } |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | * Round a Windows timestamp down to seconds and remove the seconds between 1601-01-01 and 1970-01-01 |
| 254 | 254 | * |
| 255 | 255 | * @param long $windowsTime |
| 256 | - * @return long $unixTime |
|
| 256 | + * @return double $unixTime |
|
| 257 | 257 | */ |
| 258 | 258 | public static function convertWindowsTimeToUnixTime($windowsTime) { |
| 259 | 259 | $unixTime = round($windowsTime / 10000000) - 11644473600; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @param string $left The left argument |
| 30 | 30 | * @param string $right The right argument |
| 31 | 31 | * |
| 32 | - * @return A base-10 string of the sum of the two arguments |
|
| 32 | + * @return string base-10 string of the sum of the two arguments |
|
| 33 | 33 | */ |
| 34 | 34 | public function add($left, $right) { |
| 35 | 35 | return bcadd($left, $right, 0); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param string $left The left argument |
| 42 | 42 | * @param string $right The right argument |
| 43 | 43 | * |
| 44 | - * @return A base-10 string of the difference of the two arguments |
|
| 44 | + * @return string base-10 string of the difference of the two arguments |
|
| 45 | 45 | */ |
| 46 | 46 | public function subtract($left, $right) { |
| 47 | 47 | return bcsub($left, $right); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @param string $left The left argument |
| 30 | 30 | * @param string $right The right argument |
| 31 | 31 | * |
| 32 | - * @return A base-10 string of the sum of the two arguments |
|
| 32 | + * @return string base-10 string of the sum of the two arguments |
|
| 33 | 33 | */ |
| 34 | 34 | public function add($left, $right) { |
| 35 | 35 | return gmp_strval(gmp_add($left, $right)); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param string $left The left argument |
| 42 | 42 | * @param string $right The right argument |
| 43 | 43 | * |
| 44 | - * @return A base-10 string of the difference of the two arguments |
|
| 44 | + * @return string base-10 string of the difference of the two arguments |
|
| 45 | 45 | */ |
| 46 | 46 | public function subtract($left, $right) { |
| 47 | 47 | return gmp_strval(gmp_sub($left, $right)); |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | * @param string $left The left argument |
| 118 | 118 | * @param string $right The right argument |
| 119 | 119 | * |
| 120 | - * @return string The binary result |
|
| 120 | + * @return string[] The binary result |
|
| 121 | 121 | */ |
| 122 | 122 | protected function subtractBinary($left, $right) { |
| 123 | 123 | $len = max(strlen($left), strlen($right)); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param mixed $value The value this instance represents |
| 50 | 50 | * @param boolean $strict Not Implemented at this time |
| 51 | 51 | * |
| 52 | - * @return void |
|
| 52 | + * @return Strength |
|
| 53 | 53 | * @throws UnexpectedValueException If the value is not a constant |
| 54 | 54 | */ |
| 55 | 55 | public function __construct($value = null, $strict = false) { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * Cast the current object to a string and return its value |
| 71 | 71 | * |
| 72 | - * @return mixed the current value of the instance |
|
| 72 | + * @return string the current value of the instance |
|
| 73 | 73 | */ |
| 74 | 74 | public function __toString() { |
| 75 | 75 | return (string) $this->value; |