Source for file Accountable.php
Documentation is available at Accountable.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>Accountable</i> interface for authentication
* Any class that handles user authentication <b>must</b>
* implement this interface. It makes it almost
* trivial to check whether a user is currently
* @subpackage Authentication
* @author Dirk Merkel <dirk@waferthin.com>
const AUTHENTICATION_ERR_MSG =
'There is no user account associated with the current session. Try logging in fist.';
* Did the current user log in?
* This method simply answers the question
* "Did the current user log in?"
* Returns user account info
* This method is used to retrieve the account corresponding
* to a given login. <b>Note:</b> it is not required that
* the user be currently logged in.
* @param string $user user name of the account
Documentation generated on Mon, 26 Jul 2010 22:07:03 +0100 by phpDocumentor 1.4.3