BeAuthComponent Class Reference

User/group/authorization component: More...

List of all members.

Public Member Functions

 initialize (&$controller)
 Set current user, if already logged in and/or valid.
 login ($userid, $password, $policy=null, $auth_group_name=array())
 User authentication.
 loginPolicy ($userid, $u, $policy, $auth_group_name=array())
 Check policy using $policy array or config if null.
 changePassword ($userid, $password)
 logout ()
 User logout: remove session data for the user.
 isLogged ()
 isUserGroupAuthorized ($groups=array())
 createUser ($userData, $groups=NULL)
 Create new user.
 checkConfirmPassword ($password, $confirmedPassword)
 updateUser ($userData, $groups=NULL)
 removeGroup ($groupName)
 saveGroup ($groupData)
 removeUser ($userId)
 connectedUser ()
 unserializesession ($data)
 getUserSession ()

Public Attributes

 $controller
 $Session = null
 $user = null
 $allow = null
 $isValid = true
 $changePasswd = false
 $sessionKey = "BEAuthUser"
 $allowKey = "BEAuthAllow"
const SESSION_INFO_KEY = "BESession"
 $authResult = 'OK'


Detailed Description

User/group/authorization component:

Modified By: Last Modified: $LastChangedDate

Definition at line 33 of file be_auth.php.


Member Function Documentation

BeAuthComponent.initialize ( &$  controller  ) 

Set current user, if already logged in and/or valid.

Parameters:
object $controller

Definition at line 51 of file be_auth.php.

BeAuthComponent.login ( userid,
password,
policy = null,
auth_group_name = array() 
)

User authentication.

Parameters:
string $userid
string $password
Returns:
boolean

Definition at line 89 of file be_auth.php.

References loginPolicy().

BeAuthComponent.loginPolicy ( userid,
u,
policy,
auth_group_name = array() 
)

Check policy using $policy array or config if null.

Returns:
boolean

Definition at line 128 of file be_auth.php.

References logout().

Referenced by login().

BeAuthComponent.logout (  ) 

User logout: remove session data for the user.

Returns:
boolean

Definition at line 223 of file be_auth.php.

Referenced by loginPolicy().

BeAuthComponent.createUser ( userData,
groups = NULL 
)

Create new user.

Parameters:
unknown_type $userData

Definition at line 285 of file be_auth.php.


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 15:45:35 2010  BEditaBEdita 3.0.1 betula