Class: I2CE UserAccess Single (Development)

From IHRIS Wiki
Revision as of 08:20, 6 May 2015 by Sovello (talk | contribs) (Created page with "{{otherversions|Class: I2CE_UserAccess_Single}} This article describes the class ''I2CE_UserAccess_Single'' . *Extends the class: Class: I2CE_UserAccess_Mechanism (Developme...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This article describes the class I2CE_UserAccess_Single .

@filesource Class I2CE_UserAccess_Single

Variables

$options

An array of options for connecting and querying to the ldap server

Methods

_changePassword()

Change the password for this user. Worker method This will update a user's record to change the password in the database. It checks to make sure the new password matches the confirmation.

_createUser()

Create user worker method

_getUserId()

Gets the user id from the username. Worker method

_getUserIds()

Gets the user ids @param string $username

_getUserInfo()

Gets the indicated user details as well as the role. worker function

  • Defined in i2ce/modules/User/modules/UserAccess_SingleUser/lib/I2CE_UserAccess_Single.php on line 177
  • Signature: protected function _getUserInfo($username,$getRole,$details)
  • Parameters:
    • string $username
      the user name @oaram boolean $getRole Defaults to false
    • $getRole
      • Default Value: false
    • array $details
      of string. The details we wish on the user. Defaults to empty array
      • Default Value: array()
  • Returns: array
    with indexed by the values of $details and values the corresponding detail. Returns false on failure

_getUserNameFromId()

Gets the user id from the username

_getUsersByInfo()

Gets the userss by the indicated details as well as the role. worker method @oaram boolean $role Defaults to false

_setUserInfo()

sets the indicated user details/role . worker function

_userExists()

See if a user is in the system

_userHasPassword()

verifies that the specified user has the specified password.

canChangePassword()

Whether or not this acccess mechansim can change a user's password

canCreateNewUser()

Whether or not this acccess mechansim can create ne users

canEditUserDetails()

Whether or not this acccess mechansim can create edit details of existing users

displayName()

Gets the display name for the user

doAutoLogin()

Check to see if we should do a automatic login

ensureDefaultOptions()

ensrure default options are set

getAllowedDetails()

Gets an array of the allowed user details such as email, firstname, lastname

logActivity()

Logs a user activiity @param string $actitivty, such as login, logout, access. Default is access @param int $timesamp. Defaults to null, in which case it should be now

setPerson()

Set the person details.

setRole()

Sets the role in the ldap hierarchy for the indicated user

Inherited Methods

__construct()

This public method is inherited from I2CE_UserAccess_Mechanism->__construct()

_userHasDefaultPassword()

This public method is inherited from I2CE_UserAccess_Mechanism->_userHasDefaultPassword()

changePassword()

This public method is inherited from I2CE_UserAccess_Mechanism->changePassword()

createUser()

This public method is inherited from I2CE_UserAccess_Mechanism->createUser()

generatePassword()

This public method is inherited from I2CE_UserAccess_Mechanism->generatePassword()

getAutoLoginUser()

This public method is inherited from I2CE_UserAccess_Mechanism->getAutoLoginUser()

getDetailName()

This public method is inherited from I2CE_UserAccess_Mechanism->getDetailName()

getSessionActivity()

This public method is inherited from I2CE_UserAccess_Mechanism->getSessionActivity()

getSessionDetails()

This public method is inherited from I2CE_UserAccess_Mechanism->getSessionDetails()

getSessionID()

This public method is inherited from I2CE_UserAccess_Mechanism->getSessionID()

getSessionRole()

This public method is inherited from I2CE_UserAccess_Mechanism->getSessionRole()

getSessionUserName()

This public method is inherited from I2CE_UserAccess_Mechanism->getSessionUserName()

getUserId()

This public method is inherited from I2CE_UserAccess_Mechanism->getUserId()

getUserIds()

This public method is inherited from I2CE_UserAccess_Mechanism->getUserIds()

getUserInfo()

This public method is inherited from I2CE_UserAccess_Mechanism->getUserInfo()

getUserNameFromId()

This public method is inherited from I2CE_UserAccess_Mechanism->getUserNameFromId()

getUsersByInfo()

This public method is inherited from I2CE_UserAccess_Mechanism->getUsersByInfo()

hasBeenLoggedOut()

This public method is inherited from I2CE_UserAccess_Mechanism->hasBeenLoggedOut()

hasSession()

This public method is inherited from I2CE_UserAccess_Mechanism->hasSession()

isLoggingFromAnotherIP()

This public method is inherited from I2CE_UserAccess_Mechanism->isLoggingFromAnotherIP()

isRequired()

This public method is inherited from I2CE_UserAccess_Mechanism->isRequired()

logOutPreviousSessions()

This public method is inherited from I2CE_UserAccess_Mechanism->logOutPreviousSessions()

setSession()

This public method is inherited from I2CE_UserAccess_Mechanism->setSession()

setUserInfo()

This public method is inherited from I2CE_UserAccess_Mechanism->setUserInfo()

unsetSession()

This public method is inherited from I2CE_UserAccess_Mechanism->unsetSession()

updateSessionActivity()

This public method is inherited from I2CE_UserAccess_Mechanism->updateSessionActivity()

userExists()

This public method is inherited from I2CE_UserAccess_Mechanism->userExists()

userHasDefaultPassword()

This public method is inherited from I2CE_UserAccess_Mechanism->userHasDefaultPassword()

userHasPassword()

This public method is inherited from I2CE_UserAccess_Mechanism->userHasPassword()

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Variables

$options

Theis protected variable is inherited from I2CE_UserAccess_Mechanism->$options

$protocol

Theis protected variable is inherited from I2CE_UserAccess_Mechanism->$protocol

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()