| @@ 145-153 (lines=9) @@ | ||
| 142 | * | |
| 143 | * @return Auth\Group|false The Group instance if a group with that name exists, false otherwise | |
| 144 | */ | |
| 145 | public function getGroupByName($name, $methodName = false) | |
| 146 |     { | |
| 147 | if($methodName === false) | |
| 148 |         { | |
| 149 |             return $this->callOnEach('getGroupByName', array($name)); | |
| 150 | } | |
| 151 | $auth = $this->getMethodByName($methodName); | |
| 152 | return $auth->getGroupByName($name); | |
| 153 | } | |
| 154 | ||
| 155 | /** | |
| 156 | * Get an array of Auth\User from a filtered set | |
| @@ 309-317 (lines=9) @@ | ||
| 306 | * | |
| 307 | * @return Auth\PendingUser|false The Auth\PendingUser instance or false if no user is matched by the provided hash | |
| 308 | */ | |
| 309 | public function getTempUserByHash($hash, $methodName = false) | |
| 310 |     { | |
| 311 | if($methodName === false) | |
| 312 |         { | |
| 313 |             return $this->callOnEach('getTempUserByHash', array($hash), 'pending'); | |
| 314 | } | |
| 315 | $auth = $this->getMethodByName($methodName); | |
| 316 | return $auth->getTempUserByHash($hash); | |
| 317 | } | |
| 318 | ||
| 319 | /** | |
| 320 | * Create a pending user | |
| @@ 465-473 (lines=9) @@ | ||
| 462 | * | |
| 463 | * @return boolean|\Auth\User The User specified by the access code or false otherwise | |
| 464 | */ | |
| 465 | public function getUserByAccessCode($key, $methodName = false) | |
| 466 |     { | |
| 467 | if($methodName === false) | |
| 468 |         { | |
| 469 |             return $this->callOnEach('getUserByAccessCode', array($key), 'current'); | |
| 470 | } | |
| 471 | $auth = $this->getMethodByName($methodName); | |
| 472 | return $auth->getUserByAccessCode($key); | |
| 473 | } | |
| 474 | } | |
| 475 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ | |
| 476 | ||