Source for file HardcodedAccounts.php
Documentation is available at HardcodedAccounts.php
$this->users =
new Users();
public function login($user, $password)
if (empty($user) ||
empty($password)) {
// both validation methods should work ...
// user static method to validate account
// use magic method validate<username>($password)
$userLoginFunction =
'validate' .
$user;
$secondValidation =
$this->users->$userLoginFunction($password);
return ($firstValidation &&
$secondValidation);
Documentation generated on Mon, 26 Jul 2010 21:52:59 +0100 by phpDocumentor 1.4.3