Class

eZLDAPUser

class eZLDAPUser extends eZUser

Constants

PASSWORD_HASH_MD5_PASSWORD

PASSWORD_HASH_MD5_USER

PASSWORD_HASH_MD5_SITE

PASSWORD_HASH_MYSQL

PASSWORD_HASH_PLAINTEXT

PASSWORD_HASH_BCRYPT

PASSWORD_HASH_PHP_DEFAULT

DEFAULT_PASSWORD_HASH

AUTH_STRING_MAX_LENGTH

Max length allowed for a login or a password

AUTHENTICATE_LOGIN

AUTHENTICATE_EMAIL

AUTHENTICATE_ALL

NO_SESSION_REGENERATE

Flag used to prevent session regeneration

Properties

bool $PersistentDataDirty Whether the data is dirty, ie needs to be stored, or not.
$Login
$Email
$PasswordHash
$PasswordHashType
$Groups
$OriginalPassword
$OriginalPasswordConfirm

Methods

__construct(int|array $row = array())

Initializes the object with the $row.

from eZUser
hasManageLocations()

from eZUser
void store(array|null $fieldFilters = null)

Stores the object in the database, uses storeObject() to do the actual job and passes $fieldFilters to it.

from eZUser
originalPassword()

from eZUser
setOriginalPassword($password)

from eZUser
originalPasswordConfirm()

from eZUser
setOriginalPasswordConfirm($password)

from eZUser
hasStoredLogin()

from eZUser
setInformation($id, $login, $email, $password, $passwordConfirm = false)

from eZUser
static array( fetchUnactivated(array|false|null $sort = false, int $limit = 10, int $offset)

Return an array of unactivated eZUser object

from eZUser
id()

from eZUser
static mixed loginUser(string $login, string $password, bool $authenticationMatch = false)

Logs in the user if applied username and password is valid.

from eZUser
sessionCleanup()

from eZUser
loginCurrent()

from eZUser
array( getUserCache()

Get User cache from cache file

from eZUser
purgeUserCache()

Delete User cache from locale var and cache file for current user.

from eZUser
setUserCache(array $userCache)

Set User cache from cache file Needs to be in excact same format as {@link eZUser::getUserCache()}!

from eZUser
static  purgeUserCacheByAnonymousId()

Delete User cache from cache file for Anonymous user(usefull for sessionless users)

from eZUser
static  purgeUserCacheByUserId(int $userId)

Delete User cache pr user

from eZUser
static array getUserCacheByAnonymousId()

Get User cache from cache file for Anonymous user(usefull for sessionless users)

from eZUser
lastVisit()

from eZUser
int loginCount()

Returns the login count for the current user.

from eZUser
failedLoginAttempts()

from eZUser
isLocked()

from eZUser
isEnabled($useCache = true)

from eZUser
isAnonymous()

from eZUser
hasAccessTo($module, $function = false)

from eZUser
array accessArray()

Returns either cached or newly generated accessArray for the user depending on site.ini[RoleSettings]\EnableCaching setting

from eZUser
generateAccessArray()

Generates the accessArray for the user (for $this).

from eZUser
canAssignToObjectSectionList($contentObject)

from eZUser
canAssignSectionToObject($checkSectionID, $contentObject)

from eZUser
canAssignSection($checkSectionID)

from eZUser
canAssignSectionList()

from eZUser
canAssignSectionToClassList($checkSectionID)

from eZUser
hasAccessToView($module, $viewName, $params)

from eZUser
roles()

from eZUser
roleIDList()

from eZUser
limitList($useGroupsCache = true)

from eZUser
limitValueList()

from eZUser
contentObject()

from eZUser
eZUserAccountKey accountKey()

Returns the eZUserAccountKey associated with this user

from eZUser
isLoggedIn()

Returns true if the user is a registered and not anonymous user.

from eZUser
isRegistered()

Returns true if the user is a registered and not anonymous user.

from eZUser
static  isCurrentUserRegistered()

Returns whether the current user is a registered user.

from eZUser
groups($asObject = false)

from eZUser
checkUser($siteBasics, $uri)

from eZUser
preCollectUserInfo()

from eZUser
postCollectUserInfo()

from eZUser
loginURI()

from eZUser
forceLogin()

from eZUser
static  anonymousId()

Gets the id of the anonymous user.

from eZUser
static  contentClassIDs()

from eZUser
canLoginToSiteAccess($access)

from eZUser

Details

in eZUser at line 63
public __construct(int|array $row = array())

Initializes the object with the $row.

It will try to set each field taken from the database row. Calls fill to do the job. If $row is an integer, it will try to fetch it from the database using it as the unique ID.

Parameters

int|array $row

in eZUser at line 205
public hasManageLocations()

in eZUser at line 228
public void store(array|null $fieldFilters = null)

Stores the object in the database, uses storeObject() to do the actual job and passes $fieldFilters to it.

Note: Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Parameters

array|null $fieldFilters

Return Value

void

in eZUser at line 239
public originalPassword()

in eZUser at line 244
public setOriginalPassword($password)

Parameters

$password

in eZUser at line 249
public originalPasswordConfirm()

in eZUser at line 254
public setOriginalPasswordConfirm($password)

Parameters

$password

in eZUser at line 259
public hasStoredLogin()

in eZUser at line 291
public setInformation($id, $login, $email, $password, $passwordConfirm = false)

Parameters

$id
$login
$email
$password
$passwordConfirm

in eZUser at line 346
static public array( fetchUnactivated(array|false|null $sort = false, int $limit = 10, int $offset)

Return an array of unactivated eZUser object

Parameters

array|false|null $sort An associative array of sorting conditions, if set to false ignores settings in $def, if set to null uses settingss in $def.
int $limit
int $offset

Return Value

array( eZUser )

in eZUser at line 670
public id()

in eZUser at line 717
static public mixed loginUser(string $login, string $password, bool $authenticationMatch = false)

Logs in the user if applied username and password is valid.

Parameters

string $login
string $password
bool $authenticationMatch

Return Value

mixed eZUser on success, bool false on failure

in eZUser at line 1041
public sessionCleanup()

in eZUser at line 1065
public loginCurrent()

in eZUser at line 1264
public array( getUserCache()

Get User cache from cache file

Return Value

array( 'info' => array, 'groups' => array, 'roles' => array, 'rolelimitations' => array, 'accessarray' => array)

in eZUser at line 1278
public purgeUserCache()

Delete User cache from locale var and cache file for current user.

in eZUser at line 1291
public setUserCache(array $userCache)

Set User cache from cache file Needs to be in excact same format as {@link eZUser::getUserCache()}!

Parameters

array $userCache

in eZUser at line 1302
static public purgeUserCacheByAnonymousId()

Delete User cache from cache file for Anonymous user(usefull for sessionless users)

See also

eZUser::purgeUserCacheByUserId()

in eZUser at line 1313
static public purgeUserCacheByUserId(int $userId)

Delete User cache pr user

Parameters

int $userId

in eZUser at line 1329
static public array getUserCacheByAnonymousId()

Get User cache from cache file for Anonymous user(usefull for sessionless users)

Return Value

array

See also

eZUser::getUserCacheByUserId()

in eZUser at line 1522
public lastVisit()

in eZUser at line 1543
public int loginCount()

Returns the login count for the current user.

Return Value

int Login count for current user.

in eZUser at line 1621
public failedLoginAttempts()

in eZUser at line 1643
public isLocked()

in eZUser at line 1653
public isEnabled($useCache = true)

Parameters

$useCache

in eZUser at line 1671
public isAnonymous()

in eZUser at line 1898
public hasAccessTo($module, $function = false)

Parameters

$module
$function

in eZUser at line 1946
public array accessArray()

Returns either cached or newly generated accessArray for the user depending on site.ini[RoleSettings]\EnableCaching setting

Return Value

array

in eZUser at line 1971
public generateAccessArray()

Generates the accessArray for the user (for $this).

This function is uncached, and used as basis for user cache callback.

in eZUser at line 2004
public canAssignToObjectSectionList($contentObject)

Parameters

$contentObject

in eZUser at line 2046
public canAssignSectionToObject($checkSectionID, $contentObject)

Parameters

$checkSectionID
$contentObject

in eZUser at line 2105
public canAssignSection($checkSectionID)

Parameters

$checkSectionID

in eZUser at line 2136
public canAssignSectionList()

in eZUser at line 2170
public canAssignSectionToClassList($checkSectionID)

Parameters

$checkSectionID

in eZUser at line 2221
public hasAccessToView($module, $viewName, $params)

Parameters

$module
$viewName
$params

in eZUser at line 2401
public roles()

in eZUser at line 2411
public roleIDList()

in eZUser at line 2427
public limitList($useGroupsCache = true)

Parameters

$useGroupsCache

in eZUser at line 2448
public limitValueList()

in eZUser at line 2466
public contentObject()

in eZUser at line 2480
public eZUserAccountKey accountKey()

Returns the eZUserAccountKey associated with this user

Return Value

eZUserAccountKey

in eZUser at line 2490
public isLoggedIn()

Returns true if the user is a registered and not anonymous user.

in eZUser at line 2499
public isRegistered()

Returns true if the user is a registered and not anonymous user.

in eZUser at line 2509
static public isCurrentUserRegistered()

Returns whether the current user is a registered user.

in eZUser at line 2517
public groups($asObject = false)

Parameters

$asObject

in eZUser at line 2604
public checkUser($siteBasics, $uri)

Parameters

$siteBasics
$uri

in eZUser at line 2658
public preCollectUserInfo()

in eZUser at line 2672
public postCollectUserInfo()

in eZUser at line 2682
public loginURI()

in eZUser at line 2692
public forceLogin()

in eZUser at line 2849
static public anonymousId()

Gets the id of the anonymous user.

in eZUser at line 2863
static public contentClassIDs()

in eZUser at line 2879
public canLoginToSiteAccess($access)

Parameters

$access