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