eZUser handles eZ publish user accounts More...
eZUser handles eZ publish user accounts
Definition at line 66 of file ezuser.php.
| & eZUser::accessArray | ( | ) |
Definition at line 1584 of file ezuser.php.
Referenced by hasAccessTo().
| eZUser::authenticateHash | ( | $ | user, | |
| $ | password, | |||
| $ | site, | |||
| $ | type, | |||
| $ | hash | |||
| ) | [static] |
Creates a hash out of $user, $password and $site according to the type $type.
Definition at line 1395 of file ezuser.php.
Referenced by loginUser(), eZTextFileUser::loginUser(), and eZLDAPUser::loginUser().
| eZUser::authenticationMatch | ( | ) |
Definition at line 639 of file ezuser.php.
Referenced by loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and eZUserType::validateObjectAttributeHTTPInput().
| eZUser::checkUser | ( | &$ | siteBasics, | |
| &$ | uri | |||
| ) |
Checks if user is logged in, if not and the site requires user login for access a module redirect is returned.
Definition at line 2149 of file ezuser.php.
| eZUser::cleanup | ( | ) | [static] |
Cleans up any cache or session variables that are set. This at least called on login and logout but can be used other places where you must ensure that the cache user values are refetched.
| deprecated |
Definition at line 963 of file ezuser.php.
Referenced by logoutCurrent().
| eZUser::cleanupCache | ( | ) |
Definition at line 2262 of file ezuser.php.
Referenced by eZContentObjectTreeNodeOperations::move().
| eZUser::clearSessionCache | ( | ) | [static] |
Removes any cached session information, this is:
Definition at line 513 of file ezuser.php.
Referenced by removeSessionData().
| & eZUser::contentObject | ( | ) |
Definition at line 1965 of file ezuser.php.
| eZUser::create | ( | $ | contentObjectID | ) |
Definition at line 196 of file ezuser.php.
Referenced by eZTextFileUser::loginUser(), eZLDAPUser::publishNewUserGroup(), and eZLDAPUser::publishUpdateUser().
| eZUser::createHash | ( | $ | user, | |
| $ | password, | |||
| $ | site, | |||
| $ | type | |||
| ) | [static] |
Will create a hash of the given string. This is used to store the passwords in the database.
Definition at line 1493 of file ezuser.php.
Referenced by authenticateHash(), loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and setInformation().
| eZUser::createPassword | ( | $ | passwordLength, | |
| $ | seed = false | |||
| ) | [static] |
Creates a password with number of characters equal to $passwordLength and returns it. If you want pass a value in $seed it will be used as basis for the password, if not it will use the current time value as seed.
Definition at line 1463 of file ezuser.php.
| & eZUser::currentUser | ( | ) | [static] |
Returns the currently logged in user.
Definition at line 1372 of file ezuser.php.
Referenced by eZDefaultShopAccountHandler::accountName(), eZCollaborationItemMessageLink::addMessage(), eZSubTreeHandler::attribute(), eZGeneralDigestHandler::attribute(), eZContentObject::cacheInfo(), eZContentObjectTreeNode::canCreateClassList(), eZContentObject::canCreateClassList(), eZContentObjectTreeNode::canEdit(), eZContentObject::canEdit(), eZContentClass::canInstantiateClasses(), eZContentClass::canInstantiateClassList(), eZOrder::canModifyStatus(), eZContentObject::canTranslate(), eZContentObjectVersion::checkAccess(), eZContentObjectTreeNode::checkAccess(), eZContentObject::checkAccess(), eZSubtreeNotificationRule::checkObjectAccess(), eZPackageCreationHandler::checkPackageMaintainer(), checkUser(), eZUserType::classAttributeRemovableInformation(), eZContentObject::copy(), eZContentObject::copyVersion(), eZRSSImport::create(), eZInformationCollection::create(), eZContentObjectVersion::create(), eZCollaborationSimpleMessage::create(), eZContentObjectTreeNode::createObject(), eZBasket::createOrder(), eZContentObjectTreeNode::createPermissionCheckingSQL(), eZPackageCreationHandler::creatorList(), eZWishList::currentWishList(), eZWishList::discountPercent(), eZDefaultShopAccountHandler::email(), eZMultiplexerType::execute(), eZApproveType::execute(), eZWebDAVContentServer::eZWebDAVContentServer(), eZSubTreeHandler::fetchHttpInput(), eZContentCacheManager::generateObjectViewCache(), eZInformationCollection::generateUserIdentifier(), eZContentObjectTreeNode::getLimitationList(), eZVATManager::getUserCountry(), eZApproveCollaborationHandler::handleCustomAction(), eZContentClass::initializeCopy(), eZPackageCreationHandler::initializePackageChangelog(), eZPackageCreationHandler::initializePackageInformation(), eZPackageCreationHandler::initializePackageMaintainer(), eZCollaborationProfile::instance(), eZContentClass::instantiate(), isEnabled(), eZCollaborationGroup::itemCount(), eZLDAPUser::loginUser(), eZAuthorType::objectAttributeContent(), eZSubtreeSubscriptionType::onPublish(), eZWebDAVContentServer::processClientRequest(), eZContentObjectTreeNode::removeSubtrees(), eZSubTreeHandler::rules(), eZCollaborationNotificationHandler::rules(), eZSubTreeHandler::rulesCount(), eZTrigger::runTrigger(), eZGeneralDigestHandler::settings(), eZPreferences::setValue(), eZOrder::statusModificationList(), eZRSSImport::store(), eZRSSExport::store(), eZPDFExport::store(), eZContentClass::storeDefined(), eZGeneralDigestHandler::storeSettings(), eZSubTreeHandler::subscribedNodes(), eZCollaborationGroup::subTree(), eZContentObjectTreeNode::subTreeCount(), eZPreferences::value(), eZPreferences::values(), eZDefaultShopAccountHandler::verifyAccountInformation(), and eZAudit::writeAudit().
| eZUser::currentUserID | ( | ) | [static] |
Returns the ID of the currently logged in user.
Definition at line 1382 of file ezuser.php.
Referenced by accessArray(), eZDebug::checkDebugByUser(), eZContentObject::cleanupAllInternalDrafts(), eZContentObject::cleanupInternalDrafts(), eZOrderStatusHistory::create(), eZContentClassGroup::create(), eZContentClass::create(), eZCollaborationNotificationRule::create(), eZCollaborationItemStatus::create(), eZContentObject::createWithNodeAssignment(), eZCollaborationItemStatus::fetch(), eZCollaborationItemGroupLink::fetch(), eZCollaborationNotificationRule::fetchList(), eZCollaborationItemGroupLink::fetchList(), eZCollaborationItem::fetchListTool(), eZContentObjectPackageHandler::installContentObjects(), eZCollaborationItem::isCreator(), eZOrder::modifyStatus(), eZCollaborationNotificationRule::removeByIdentifier(), eZCollaborationItemParticipantLink::setLastRead(), eZCollaborationItem::setLastRead(), eZPreferences::setValue(), eZCollaborationItemStatus::updateFields(), and eZCollaborationItem::userStatus().
| eZUser::definition | ( | ) |
The definition array is an associative array consists of these keys:
asc or desc.Example:
function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 75 of file ezuser.php.
Referenced by fetch(), fetchByEmail(), fetchByName(), and removeUser().
| eZUser::eZUser | ( | $ | row | ) |
Definition at line 68 of file ezuser.php.
Referenced by create(), fetchLoggedInList(), instance(), loginUser(), eZTextFileUser::loginUser(), and eZLDAPUser::loginUser().
| eZUser::failedLoginAttempts | ( | $ | userID = false |
) |
Returns the current user's number of failed login attempts.
Definition at line 1300 of file ezuser.php.
| eZUser::fetch | ( | $ | id, | |
| $ | asObject = true | |||
| ) |
Definition at line 277 of file ezuser.php.
Referenced by contentObject(), eZMultiplexerType::execute(), fetchBuiltin(), eZContentCacheManager::generateObjectViewCache(), eZLDAPUser::goAndPublishGroups(), instance(), isEnabled(), isEnabledAfterFailedLogin(), loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), eZUserType::objectAttributeContent(), eZLDAPUser::publishNewUserGroup(), eZLDAPUser::publishUpdateUser(), removeUser(), eZUserType::serializeContentObjectAttribute(), setFailedLoginAttempts(), eZPreferences::setValue(), eZUserType::toString(), eZUserType::unserializeContentObjectAttribute(), and eZCollaborationNotificationRule::user().
| eZUser::fetchAnonymousCount | ( | ) | [static] |
Definition at line 453 of file ezuser.php.
| & eZUser::fetchBuiltin | ( | $ | id | ) |
Fetches a builtin user and returns it, this helps avoid special cases where user is not logged in.
Definition at line 614 of file ezuser.php.
| eZUser::fetchByEmail | ( | $ | email, | |
| $ | asObject = true | |||
| ) |
Definition at line 295 of file ezuser.php.
Referenced by eZUserType::fromString(), and eZUserType::validateObjectAttributeHTTPInput().
| eZUser::fetchByName | ( | $ | login, | |
| $ | asObject = true | |||
| ) |
Definition at line 287 of file ezuser.php.
Referenced by eZUserType::fromString(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), eZLDAPUser::publishUpdateUser(), and eZUserType::validateObjectAttributeHTTPInput().
| eZUser::fetchContentList | ( | ) |
Definition at line 566 of file ezuser.php.
| eZUser::fetchLoggedInCount | ( | ) |
Definition at line 424 of file ezuser.php.
| eZUser::fetchLoggedInList | ( | $ | asObject = false, |
|
| $ | offset = false, |
|||
| $ | limit = false, |
|||
| $ | sortBy = false | |||
| ) | [static] |
| $asObject | If false it will return a list with only the names of the users as elements and user ID as key, otherwise each entry is a eZUser object. |
Definition at line 310 of file ezuser.php.
| eZUser::fetchUserClassList | ( | $ | asObject = false, |
|
| $ | fields = false | |||
| ) |
Definition at line 2298 of file ezuser.php.
Referenced by fetchUserClassNames(), and fetchUserGroupClassNames().
| eZUser::fetchUserClassNames | ( | ) |
Definition at line 2330 of file ezuser.php.
Referenced by eZApproveType::customWorkflowEventHTTPAction().
| eZUser::fetchUserGroupClassNames | ( | ) |
Definition at line 2341 of file ezuser.php.
Referenced by eZApproveType::customWorkflowEventHTTPAction(), and eZApproveType::validateGroupIDList().
| eZUser::forceLogin | ( | ) |
Check if login handler require forced login at user check.
Definition at line 2238 of file ezuser.php.
| eZUser::generateAccessArray | ( | ) |
Definition at line 1667 of file ezuser.php.
Referenced by accessArray().
| eZUser::getCacheDir | ( | $ | id = 0 |
) | [static] |
Creates the cache path if it doesn't exist, and returns the cache directory. The $id parameter is used to create multi-level directory names
Definition at line 2249 of file ezuser.php.
Referenced by getCacheFilename().
| eZUser::getCacheFilename | ( | $ | id | ) | [static] |
Returns the filename for a cache file with user information
Definition at line 2276 of file ezuser.php.
Referenced by accessArray().
| & eZUser::groups | ( | $ | asObject = false, |
|
| $ | userID = false | |||
| ) |
Definition at line 1995 of file ezuser.php.
Referenced by generateAccessArray(), and limitList().
| eZUser::hasAccessTo | ( | $ | module, | |
| $ | function = false | |||
| ) |
Check if user has got access to the specified module and function
| module | name | |
| funtion | name |
Definition at line 1539 of file ezuser.php.
Referenced by hasAccessToView(), and hasManageLocations().
| eZUser::hasAccessToView | ( | $ | module, | |
| $ | viewName, | |||
| &$ | params | |||
| ) |
Definition at line 1702 of file ezuser.php.
| eZUser::hashType | ( | ) | [static] |
Definition at line 584 of file ezuser.php.
Referenced by loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and setInformation().
| & eZUser::hasManageLocations | ( | ) |
Check if current user has "content/manage_locations" access
Definition at line 184 of file ezuser.php.
| & eZUser::hasStoredLogin | ( | ) |
Definition at line 244 of file ezuser.php.
| eZUser::id | ( | ) |
Definition at line 631 of file ezuser.php.
| & eZUser::instance | ( | $ | id = false |
) |
Finds the user with the id $id and returns the unique instance of it. If the user instance is not created yet it tries to either fetch it from the database with eZUser::fetch(). If $id is false or the user was not found, the default user is returned. This is a site.ini setting under UserSettings:AnonymousUserID. The instance is then returned. If $id is false then the current user is fetched.
Definition at line 1026 of file ezuser.php.
Referenced by accessArray(), authenticationMatch(), checkUser(), cleanup(), cleanupCache(), createHash(), currentUser(), currentUserID(), eZApproveType::execute(), failedLoginAttempts(), fetchAnonymousCount(), fetchContentList(), fetchLoggedInCount(), fetchLoggedInList(), fetchUserClassList(), fetchUserGroupClassNames(), getCacheDir(), getCacheFilename(), groups(), hashType(), hasStoredLogin(), isTrusted(), isUserLoggedIn(), lastVisit(), limitList(), limitValueList(), loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), logoutCurrent(), maxNumberOfFailedLogin(), passwordCharacterTable(), eZLDAPUser::publishNewUserGroup(), eZLDAPUser::publishUpdateUser(), removeSessionData(), requireUniqueEmail(), roleIDList(), setCurrentlyLoggedInUser(), setFailedLoginAttempts(), site(), store(), updateLastVisit(), eZWorkflowProcess::user(), userInfoExpiry(), and validatePassword().
| eZUser::isAnonymous | ( | ) |
true if the user is the anonymous user. Definition at line 1359 of file ezuser.php.
| & eZUser::isEnabled | ( | ) |
true if the user is enabled and can be used on the site. Definition at line 1339 of file ezuser.php.
| eZUser::isEnabledAfterFailedLogin | ( | $ | userID, | |
| $ | ignoreTrusted = false | |||
| ) |
Definition at line 900 of file ezuser.php.
Referenced by isLocked(), loginUser(), eZTextFileUser::loginUser(), and eZLDAPUser::loginUser().
| & eZUser::isLocked | ( | ) |
true if the user is locked (is enabled after failed login) and can be logged on the site. Definition at line 1328 of file ezuser.php.
| & eZUser::isLoggedIn | ( | ) |
Returns true if it's a real user which is logged in. False if the user is the default user or the fallback buildtin user.
Definition at line 1981 of file ezuser.php.
| eZUser::isTrusted | ( | ) | [static] |
Returns true if current user is trusted user.
Definition at line 866 of file ezuser.php.
Referenced by isEnabledAfterFailedLogin(), and setFailedLoginAttempts().
| eZUser::isUserIPInList | ( | $ | ipList | ) | [static] |
Checks if IP address of current user is in $ipList.
Definition at line 823 of file ezuser.php.
Referenced by isTrusted().
| eZUser::isUserLoggedIn | ( | $ | userID | ) | [static] |
Definition at line 482 of file ezuser.php.
| eZUser::isUserObject | ( | $ | contentObject | ) |
Checks if the supplied content object is a user object ( contains ezuser datatype )
| ContentObject |
Definition at line 1435 of file ezuser.php.
Referenced by eZApproveType::fetchHTTPInput(), and eZApproveType::validateUserIDList().
| & eZUser::lastVisit | ( | ) |
Returns the last visit timestamp to the current user.
Definition at line 1219 of file ezuser.php.
| eZUser::limitList | ( | ) |
Definition at line 1910 of file ezuser.php.
Referenced by limitValueList().
| & eZUser::limitValueList | ( | ) |
Definition at line 1928 of file ezuser.php.
| eZUser::loginCurrent | ( | ) |
Definition at line 989 of file ezuser.php.
| eZUser::loginURI | ( | ) |
Check if login handler require special login URI
Definition at line 2228 of file ezuser.php.
| & eZUser::loginUser | ( | $ | login, | |
| $ | password, | |||
| $ | authenticationMatch = false | |||
| ) | [static] |
Logs in the user if applied username and password is valid.
false if it failed. Reimplemented in eZLDAPUser, and eZTextFileUser.
Definition at line 676 of file ezuser.php.
Referenced by eZScript::initialize().
| eZUser::logoutCurrent | ( | ) | [static] |
Logs out the current user
Definition at line 998 of file ezuser.php.
Referenced by checkUser(), and eZScript::shutdown().
| eZUser::maxNumberOfFailedLogin | ( | ) | [static] |
Returns max number of failed login attempts.
Definition at line 885 of file ezuser.php.
Referenced by isEnabledAfterFailedLogin(), and setFailedLoginAttempts().
| & eZUser::originalPassword | ( | ) |
Definition at line 224 of file ezuser.php.
| & eZUser::originalPasswordConfirm | ( | ) |
Definition at line 234 of file ezuser.php.
| eZUser::passwordCharacterTable | ( | ) | [static] |
Definition at line 1404 of file ezuser.php.
Referenced by createPassword().
| eZUser::passwordHashTypeID | ( | $ | identifier | ) |
Definition at line 153 of file ezuser.php.
Referenced by eZUserType::fromString(), and eZUserType::unserializeContentObjectAttribute().
| eZUser::passwordHashTypeName | ( | $ | id | ) |
Definition at line 123 of file ezuser.php.
Referenced by eZUserType::serializeContentObjectAttribute(), and eZUserType::toString().
| eZUser::postCollectUserInfo | ( | ) |
Function performed after user login info has been collected. Store login data as array: array( 'login' => <username>, 'password' = <password> ) to session variable EZ_LOGIN_HANDLER_USER_INFO for automatic processing of login data.
Definition at line 2218 of file ezuser.php.
| eZUser::preCollectUserInfo | ( | ) |
Funtion performed before user login info is collected. It's optional to implement this function in new login handler.
Definition at line 2204 of file ezuser.php.
| eZUser::removeSessionData | ( | $ | userID | ) | [static] |
Remove session data for user $userID.
Definition at line 524 of file ezuser.php.
Referenced by removeUser(), and eZUserSetting::setAttribute().
| eZUser::removeUser | ( | $ | userID | ) |
Removes the user from the ezuser table.
Definition at line 536 of file ezuser.php.
Referenced by eZUserType::deleteStoredObjectAttribute().
| eZUser::requireUniqueEmail | ( | ) |
true if there can only be one instance of an email address on the site. Definition at line 665 of file ezuser.php.
Referenced by eZUserType::validateObjectAttributeHTTPInput().
| & eZUser::roleIDList | ( | ) |
Definition at line 1869 of file ezuser.php.
| & eZUser::roles | ( | ) |
Definition at line 1857 of file ezuser.php.
| eZUser::sessionCleanup | ( | ) |
Used by login handler to clean up session variables
Definition at line 952 of file ezuser.php.
Referenced by cleanup().
| eZUser::setCurrentlyLoggedInUser | ( | &$ | user, | |
| $ | userID | |||
| ) | [protected] |
Makes sure the user $user is set as the currently logged in user by updating the session and setting the necessary global variables.
All login handlers should use this function to ensure that the process is executed properly.
Definition at line 934 of file ezuser.php.
Referenced by instance(), loginCurrent(), loginUser(), eZTextFileUser::loginUser(), and eZLDAPUser::loginUser().
| eZUser::setFailedLoginAttempts | ( | $ | userID, | |
| $ | value = false, |
|||
| $ | setByForce = false | |||
| ) |
If $value is false will increase the user's number of failed login attempts otherwise failed_login_attempts will be updated by $value. $setByForce if true checking for trusting or max number of failed login attempts will be ignored.
Definition at line 1240 of file ezuser.php.
Referenced by loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and eZLDAPUser::publishUpdateUser().
| eZUser::setInformation | ( | $ | id, | |
| $ | login, | |||
| $ | email, | |||
| $ | password, | |||
| $ | passwordConfirm = false | |||
| ) |
Fills in the $id, $login, $email and $password for the user and creates the proper password hash.
Definition at line 258 of file ezuser.php.
| eZUser::setOriginalPassword | ( | $ | password | ) |
Definition at line 229 of file ezuser.php.
Referenced by setInformation().
| eZUser::setOriginalPasswordConfirm | ( | $ | password | ) |
Definition at line 239 of file ezuser.php.
Referenced by setInformation().
| eZUser::site | ( | ) | [static] |
Definition at line 603 of file ezuser.php.
Referenced by loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and setInformation().
| eZUser::store | ( | ) |
Definition at line 208 of file ezuser.php.
| eZUser::updateLastVisit | ( | $ | userID | ) |
Updates the user's last visit timestamp
Definition at line 1196 of file ezuser.php.
Referenced by instance(), loginUser(), eZTextFileUser::loginUser(), eZLDAPUser::loginUser(), and eZLDAPUser::publishUpdateUser().
| eZUser::userInfoExpiry | ( | ) | [private] |
Returns expire timestamp for the user (but really returns global rolecache's expiry timestamp for now)
Definition at line 1679 of file ezuser.php.
Referenced by accessArray().
| eZUser::validatePassword | ( | $ | password | ) | [static] |
Checks the password for validity
Definition at line 2374 of file ezuser.php.
Referenced by setInformation().
eZUser::$Email [private] |
Definition at line 2390 of file ezuser.php.
eZUser::$Groups [private] |
Definition at line 2393 of file ezuser.php.
eZUser::$Login [private] |
Definition at line 2389 of file ezuser.php.
eZUser::$OriginalPassword [private] |
Definition at line 2394 of file ezuser.php.
eZUser::$OriginalPasswordConfirm [private] |
Definition at line 2395 of file ezuser.php.
eZUser::$PasswordHash [private] |
Definition at line 2391 of file ezuser.php.
eZUser::$PasswordHashType [private] |
Definition at line 2392 of file ezuser.php.
1.6.3