kernel/user/ezuseroperationcollection.php
\eZUserOperationCollection
Package:
Methods


activation(
int $userID, string $userHash, bool $enableUser
=
false
)
:
array
static
Activate user with user or deactivate and create new eZUserAccountKey with user hash depending on $enableUser being true or not.
Parameters
Returns
Name | Type | Description |
---|---|---|
$userID | int | |
$userHash | string | |
$enableUser | bool |
Type | Description |
---|---|
array | An array with operation status, always true if userID is ok |


forgotpassword(
int $userID, string $passwordHash, int $time
)
:
array
static
Generate forgotpassword object
Parameters
Returns
Name | Type | Description |
---|---|---|
$userID | int | |
$passwordHash | string | |
$time | int |
Type | Description |
---|---|
array | An array with operation status, always true if userID is ok |


password(
int $userID, string $newPassword
)
:
array
static
Change user password
Parameters
Returns
Name | Type | Description |
---|---|---|
$userID | int | |
$newPassword | string |
Type | Description |
---|---|
array | An array with operation status, always true if userID is ok |


preferences(
string $key, string $value
)
:
array
static
Set user preferences Only needed for operations, call eZPreferences::setValue() directly if you want to set user preferences
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$value | string |
Type | Description |
---|---|
array | An array with operation status, always true |