| @@ 202-210 (lines=9) @@ | ||
| 199 | * |
|
| 200 | * @return Auth\Group|false The Group instance if a group with that name exists, false otherwise |
|
| 201 | */ |
|
| 202 | public function getGroupByName($name, $methodName = false) |
|
| 203 | { |
|
| 204 | if($methodName === false) |
|
| 205 | { |
|
| 206 | return $this->callOnEach('getGroupByName', array($name)); |
|
| 207 | } |
|
| 208 | $auth = $this->getMethodByName($methodName); |
|
| 209 | return $auth->getGroupByName($name); |
|
| 210 | } |
|
| 211 | ||
| 212 | /** |
|
| 213 | * Get an array of Auth\User from a filtered set |
|
| @@ 378-386 (lines=9) @@ | ||
| 375 | * |
|
| 376 | * @return Auth\PendingUser|false The Auth\PendingUser instance or false if no user is matched by the provided hash |
|
| 377 | */ |
|
| 378 | public function getTempUserByHash($hash, $methodName = false) |
|
| 379 | { |
|
| 380 | if($methodName === false) |
|
| 381 | { |
|
| 382 | return $this->callOnEach('getTempUserByHash', array($hash), 'pending'); |
|
| 383 | } |
|
| 384 | $auth = $this->getMethodByName($methodName); |
|
| 385 | return $auth->getTempUserByHash($hash); |
|
| 386 | } |
|
| 387 | ||
| 388 | /** |
|
| 389 | * Create a pending user |
|
| @@ 534-542 (lines=9) @@ | ||
| 531 | * |
|
| 532 | * @return boolean|\Auth\User The User specified by the access code or false otherwise |
|
| 533 | */ |
|
| 534 | public function getUserByAccessCode($key, $methodName = false) |
|
| 535 | { |
|
| 536 | if($methodName === false) |
|
| 537 | { |
|
| 538 | return $this->callOnEach('getUserByAccessCode', array($key), 'current'); |
|
| 539 | } |
|
| 540 | $auth = $this->getMethodByName($methodName); |
|
| 541 | return $auth->getUserByAccessCode($key); |
|
| 542 | } |
|
| 543 | } |
|
| 544 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
|
| 545 | ||