kernel/user/ezuseroperationcollection.php
File containing the eZUserOperationCollection class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZUserOperationCollection
Package: kernel
Parameters
File containing the eZUserOperationCollection class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
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 |


publishUserContentObject(
$userID
)
:
void
static
publish the object
Parameters
Name | Type | Description |
---|---|---|
$userID |


sendActivationEmail(
$userID
)
:
void
static
Send activativation to the user
If the user is enabled, igore
Name | Type | Description |
---|---|---|
$userID |


sendUserNotification(
$userID
)
:
void
static
Send the notification after registeration
Parameters
Name | Type | Description |
---|---|---|
$userID |