Source for file Authentication.php
Documentation is available at Authentication.php
* @author Dirk Merkel <dirk@waferthin.com>
* @subpackage Authentication
* @copyright Waferthin Web Works LLC
* @license http://www.gnu.org/copyleft/gpl.html Freely available under GPL
* <i>Authentication</i> handles user account info and login actions
* This is an abstract class that serves as a blueprint
* for classes implementing authentication using
* different account validation schemes.
* @see Authentication_HardcodedAccounts
* @author Dirk Merkel <dirk@waferthin.com>
* @subpackage Authentication
* Reference to Account object of currently
* Returns account object if valid.
* @see Accountable::getAccount()
* @param string $user user account login
* @return Account user account
if ($this->account !==
null) {
return AUTHENTICATION_ERR_MSG;
* Says whether the current user has provided
* valid login credentials.
* @see Accountable::isLoggedIn()
return ($this->account !==
null);
* Abstract method that must be implemented when
* sub-classing this class.
abstract public function login($user, $password);
Documentation generated on Mon, 26 Jul 2010 22:07:03 +0100 by phpDocumentor 1.4.3