@@ 150-158 (lines=9) @@ | ||
147 | * |
|
148 | * @return Auth\Group|false The Group instance if a group with that name exists, false otherwise |
|
149 | */ |
|
150 | public function getGroupByName($name, $methodName = false) |
|
151 | { |
|
152 | if($methodName === false) |
|
153 | { |
|
154 | return $this->callOnEach('getGroupByName', array($name)); |
|
155 | } |
|
156 | $auth = $this->getMethodByName($methodName); |
|
157 | return $auth->getGroupByName($name); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * Get an array of Auth\User from a filtered set |
|
@@ 314-322 (lines=9) @@ | ||
311 | * |
|
312 | * @return Auth\PendingUser|false The Auth\PendingUser instance or false if no user is matched by the provided hash |
|
313 | */ |
|
314 | public function getTempUserByHash($hash, $methodName = false) |
|
315 | { |
|
316 | if($methodName === false) |
|
317 | { |
|
318 | return $this->callOnEach('getTempUserByHash', array($hash), 'pending'); |
|
319 | } |
|
320 | $auth = $this->getMethodByName($methodName); |
|
321 | return $auth->getTempUserByHash($hash); |
|
322 | } |
|
323 | ||
324 | /** |
|
325 | * Create a pending user |
|
@@ 470-478 (lines=9) @@ | ||
467 | * |
|
468 | * @return boolean|\Auth\User The User specified by the access code or false otherwise |
|
469 | */ |
|
470 | public function getUserByAccessCode($key, $methodName = false) |
|
471 | { |
|
472 | if($methodName === false) |
|
473 | { |
|
474 | return $this->callOnEach('getUserByAccessCode', array($key), 'current'); |
|
475 | } |
|
476 | $auth = $this->getMethodByName($methodName); |
|
477 | return $auth->getUserByAccessCode($key); |
|
478 | } |
|
479 | } |
|
480 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
|
481 |