Class CMS_auth

Description

Class CMS_auth

Manage standard user authentification

Located in /automne/classes/user/auth.php (line 25)

CMS_grandFather
   |
   --CMS_auth
Class Constant Summary
Variable Summary
 mixed $_messages
 mixed $_params
 mixed $_result
Method Summary
 static boolean autoLoginActive ()
 Zend_Auth_Result authenticate ()
 void __construct ( $params)
 CMS_profile_user, getUser (integer $userId)
 boolean _autoLogin ()
 void _checkSession ( $userId)
Variables
mixed $_messages = array() (line 29)
mixed $_params (line 27)
mixed $_result (line 28)
Methods
static autoLoginActive (line 272)

Test user auto login to see if it is active

  • return: true if autologin is active, false otherwise
  • access: public
static boolean autoLoginActive ()
authenticate (line 62)

Try to authenticate user from :

SSO COOKIE Given parameters SESSION

Zend_Auth_Result authenticate ()
Constructor __construct (line 48)

Set authentification paramaters

void __construct ( $params)
  • $params
getUser (line 213)

Get CMS_profile_user from his Id

  • return: false otherwise
  • access: public
CMS_profile_user, getUser (integer $userId)
  • integer $userId: the user id to get
_autoLogin (line 223)

Test user auto login from cookie values

  • return: true if autologin accepted, false otherwise
  • access: private
boolean _autoLogin ()
_checkSession (line 315)

Checks if current session exists in session table

  • access: private
void _checkSession ( $userId)
  • $userId

Inherited Methods

Inherited From CMS_grandFather

 CMS_grandFather::autoload()
 CMS_grandFather::hasError()
 CMS_grandFather::log()
 CMS_grandFather::PHPErrorHandler()
 CMS_grandFather::raiseError()
 CMS_grandFather::setDebug()
 CMS_grandFather::setLog()
 CMS_grandFather::_raiseError()
 CMS_grandFather::__call()
Class Constants
AUTH_AUTOLOGIN_INVALID_USER = 7 (line 38)
AUTH_AUTOLOGIN_VALID = 6 (line 37)
AUTH_INVALID_CREDENTIALS = 2 (line 33)
AUTH_INVALID_TOKEN = 8 (line 39)
AUTH_INVALID_USER = 3 (line 34)
AUTH_INVALID_USER_SESSION = 5 (line 36)
AUTH_MISSING_CREDENTIALS = 0 (line 31)
AUTH_SSOLOGIN_INVALID_USER = 10 (line 41)
AUTH_SSOLOGIN_VALID = 9 (line 40)
AUTH_VALID_CREDENTIALS = 1 (line 32)
AUTH_VALID_USER_SESSION = 4 (line 35)

Inherited Constants

Inherited from CMS_grandFather

CMS_grandFather::ERROR_LOG
CMS_grandFather::SYSTEM_LABEL

Documentation generated on Wed, 15 Feb 2012 15:28:31 +0100 by phpDocumentor 1.4.3