eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZUserOperationCollection

class eZUserOperationCollection

Methods

eZUserOperationCollection()

static array setSettings(int $userID, int $isEnabled, int $maxLogin)

Changes user settings

static  sendActivationEmail($userID)

Send activativation to the user

static  checkActivation($userID)

static  publishUserContentObject($userID)

publish the object

static  sendUserNotification($userID)

Send the notification after registeration

static array activation(int $userID, string $userHash, bool $enableUser = false)

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

static array password(int $userID, string $newPassword)

Change user password

static array forgotpassword(int $userID, string $passwordHash, int $time)

Generate forgotpassword object

static array preferences(string $key, string $value)

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

Details

at line 22
public eZUserOperationCollection()

at line 35
static public array setSettings(int $userID, int $isEnabled, int $maxLogin)

Changes user settings

Parameters

int $userID
int $isEnabled
int $maxLogin

Return Value

array An array with operation status, always true if userID is ok

at line 75
static public sendActivationEmail($userID)

Send activativation to the user

If the user is enabled, igore

Parameters

$userID

at line 167
static public checkActivation($userID)

Parameters

$userID

at line 186
static public publishUserContentObject($userID)

publish the object

Parameters

$userID

at line 213
static public sendUserNotification($userID)

Send the notification after registeration

Parameters

$userID

at line 258
static public array activation(int $userID, string $userHash, bool $enableUser = false)

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

Return Value

array An array with operation status, always true if userID is ok

at line 308
static public array password(int $userID, string $newPassword)

Change user password

Parameters

int $userID
string $newPassword

Return Value

array An array with operation status, always true if userID is ok

at line 338
static public array forgotpassword(int $userID, string $passwordHash, int $time)

Generate forgotpassword object

Parameters

int $userID
string $passwordHash
int $time

Return Value

array An array with operation status, always true if userID is ok

at line 364
static public array preferences(string $key, string $value)

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

Parameters

string $key
string $value

Return Value

array An array with operation status, always true