Class

eZUserOperationCollection

class eZUserOperationCollection

Methods

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 28
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 68
static public sendActivationEmail($userID)

Send activativation to the user

If the user is enabled, igore

Parameters

$userID

at line 160
static public checkActivation($userID)

Parameters

$userID

at line 179
static public publishUserContentObject($userID)

publish the object

Parameters

$userID

at line 206
static public sendUserNotification($userID)

Send the notification after registeration

Parameters

$userID

at line 257
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 307
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 362
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 388
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