| @@ 59-70 (lines=12) @@ | ||
| 56 | * | |
| 57 | * @return false|\Email\EmailService The Email service specified or false if it is not found | |
| 58 | */ | |
| 59 | public function getEmailMethod($methodName) | |
| 60 |     { | |
| 61 | $count = count($this->methods); | |
| 62 | for($i = 0; $i < $count; $i++) | |
| 63 |         { | |
| 64 | if(strcasecmp(get_class($this->methods[$i]), $methodName) === 0) | |
| 65 |             { | |
| 66 | return $this->methods[$i]; | |
| 67 | } | |
| 68 | } | |
| 69 | return false; | |
| 70 | } | |
| 71 | ||
| 72 | /** | |
| 73 | * Send the email | |
| @@ 65-76 (lines=12) @@ | ||
| 62 | * | |
| 63 | * @return Auth\Authenticator|false The specified Authenticator class instance or false if it is not loaded | |
| 64 | */ | |
| 65 | public function getAuthenticator($methodName) | |
| 66 |     { | |
| 67 | $count = count($this->methods); | |
| 68 | for($i = 0; $i < $count; $i++) | |
| 69 |         { | |
| 70 | if(strcasecmp(get_class($this->methods[$i]), $methodName) === 0) | |
| 71 |             { | |
| 72 | return $this->methods[$i]; | |
| 73 | } | |
| 74 | } | |
| 75 | return false; | |
| 76 | } | |
| 77 | ||
| 78 | /** | |
| 79 | * Get the Auth\User class instance for the specified login | |