eZPublish  3.8
eZTextFileUser Class Reference

Handles logins for users defined a simple text file. More...

+ Inheritance diagram for eZTextFileUser:
+ Collaboration diagram for eZTextFileUser:

Public Member Functions

 eZTextFileUser ()
- Public Member Functions inherited from eZUser
accessArray ()
 authenticationMatch ()
 checkUser (&$siteBasics, &$uri)
 cleanupCache ()
contentObject ()
 create ($contentObjectID)
 definition ()
 eZUser ($row)
 fetch ($id, $asObject=true)
fetchBuiltin ($id)
 fetchByEmail ($email, $asObject=true)
 fetchByName ($login, $asObject=true)
 fetchContentList ()
 fetchLoggedInCount ()
 forceLogin ()
 generateAccessArray ()
groups ($asObject=false, $userID=false)
 hasAccessTo ($module, $function=false)
 hasAccessToView ($module, $viewName, &$params)
hasManageLocations ()
hasStoredLogin ()
 id ()
instance ($id=false)
 isAnonymous ()
isEnabled ()
isLoggedIn ()
 isUserObject ($contentObject)
lastVisit ()
 limitList ()
limitValueList ()
 loginCurrent ()
 loginURI ()
originalPassword ()
originalPasswordConfirm ()
 passwordHashTypeID ($identifier)
 passwordHashTypeName ($id)
 postCollectUserInfo ()
 preCollectUserInfo ()
 removeUser ($userID)
 requireUniqueEmail ()
roleIDList ()
roles ()
 sessionCleanup ()
 setInformation ($id, $login, $email, $password, $passwordConfirm=false)
 setOriginalPassword ($password)
 setOriginalPasswordConfirm ($password)
 store ()
 updateLastVisit ($userID)
- Public Member Functions inherited from eZPersistentObject
attribute ($attr, $noFunction=false)
 attributes ()
 conditionText (&$conditions)
conditionTextByRow (&$conditions, &$row)
 definition ()
escapeArray (&$array)
 eZPersistentObject ($row)
 fetchObject (&$def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 fetchObjectList (&$def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null)
 fill (&$row)
 getShortAttributeName (&$db, &$def, $attrName)
 handleRows (&$rows, $class_name, $asObject)
 hasAttribute ($attr)
 hasDirtyData ()
 newObjectOrder (&$def, $orderField, $conditions)
 remove ($conditions=null, $extraConditions=null)
 removeObject (&$def, $conditions=null, $extraConditions=null)
 reorderObject (&$def, $orderField, $conditions, $down=true)
 setAttribute ($attr, $val)
 setHasDirtyData ($hasDirtyData)
 store ($fieldFilters=null)
 swapRow ($table, &$keys, &$order_id, &$rows, $id1, $id2)
 sync ($fieldFilters=null)
 updateObjectList ($parameters)

Static Public Member Functions

loginUser ($login, $password, $authenticationMatch=false)
- Static Public Member Functions inherited from eZUser
 authenticateHash ($user, $password, $site, $type, $hash)
 cleanup ()
 clearSessionCache ()
 createHash ($user, $password, $site, $type)
 createPassword ($passwordLength, $seed=false)
currentUser ()
 currentUserID ()
 fetchAnonymousCount ()
 fetchLoggedInList ($asObject=false, $offset=false, $limit=false, $sortBy=false)
 getCacheDir ($id=0)
 getCacheFilename ($id)
 hashType ()
 isUserLoggedIn ($userID)
loginUser ($login, $password, $authenticationMatch=false)
 logoutCurrent ()
 passwordCharacterTable ()
 removeSessionData ($userID)
 site ()
 validatePassword ($password)

Additional Inherited Members

- Protected Member Functions inherited from eZUser
 setCurrentlyLoggedInUser (&$user, $userID)

Detailed Description

Handles logins for users defined a simple text file.

The handler will read the users from the text file defined in textfile.ini, the file contains multiple users on separate lines. Each line is again separated by a field-separator (default is tab).

Once a login is requested by a user the handler will do one of two things:

  • Login the user with the existing user object found in the system
  • Creates a new user with the information found in the text file and login with that user.

Member Function Documentation

eZTextFileUser::eZTextFileUser ( )


& eZTextFileUser::loginUser (   $login,
  $authenticationMatch = false 

Logs in the user if applied username and password is valid. The userID is returned if succesful, false if not.

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