eZPublish  4.7
eZUserOperationCollection Class Reference

The class eZUserOperationCollection does. More...

Public Member Functions

 eZUserOperationCollection ()
 

Static Public Member Functions

static activation ($userID, $userHash, $enableUser=false)
 Activate user with user or deactivate and create new eZUserAccountKey with user hash depending on $enableUser being true or not. More...
 
static checkActivation ($userID)
 
static forgotpassword ($userID, $passwordHash, $time)
 Generate forgotpassword object. More...
 
static password ($userID, $newPassword)
 Change user password. More...
 
static preferences ($key, $value)
 Set user preferences Only needed for operations, call eZPreferences::setValue() directly if you want to set user preferences. More...
 
static publishUserContentObject ($userID)
 publish the object More...
 
static sendActivationEmail ($userID)
 Send activativation to the user. More...
 
static sendUserNotification ($userID)
 Send the notification after registeration. More...
 
static setSettings ($userID, $isEnabled, $maxLogin)
 Changes user settings. More...
 

Detailed Description

The class eZUserOperationCollection does.

Member Function Documentation

static eZUserOperationCollection::activation (   $userID,
  $userHash,
  $enableUser = false 
)
static

Activate user with user or deactivate and create new eZUserAccountKey with user hash depending on $enableUser being true or not.

Parameters
int$userID
string$userHash
bool$enableUser
Returns
array An array with operation status, always true if userID is ok

Referenced by sendActivationEmail().

static eZUserOperationCollection::checkActivation (   $userID)
static
eZUserOperationCollection::eZUserOperationCollection ( )

Constructor

static eZUserOperationCollection::forgotpassword (   $userID,
  $passwordHash,
  $time 
)
static

Generate forgotpassword object.

Parameters
int$userID
string$passwordHash
int$time
Returns
array An array with operation status, always true if userID is ok
static eZUserOperationCollection::password (   $userID,
  $newPassword 
)
static

Change user password.

Parameters
int$userID
string$newPassword
Returns
array An array with operation status, always true if userID is ok
static eZUserOperationCollection::preferences (   $key,
  $value 
)
static

Set user preferences Only needed for operations, call eZPreferences::setValue() directly if you want to set user preferences.

Parameters
string$key
string$value
Returns
array An array with operation status, always true
static eZUserOperationCollection::publishUserContentObject (   $userID)
static

publish the object

static eZUserOperationCollection::sendActivationEmail (   $userID)
static

Send activativation to the user.

If the user is enabled, igore

static eZUserOperationCollection::sendUserNotification (   $userID)
static

Send the notification after registeration.

static eZUserOperationCollection::setSettings (   $userID,
  $isEnabled,
  $maxLogin 
)
static

Changes user settings.

Parameters
int$userID
int$isEnabled
int$maxLogin
Returns
array An array with operation status, always true if userID is ok

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