Class

eZ\Publish\Core\Persistence\Legacy\User\Gateway

abstract class Gateway

Base class for user gateways.

Methods

mixed createUser(User $user)

Create user.

deleteUser(mixed $userId)

Delete user with the given ID.

array load(mixed $userId)

Loads user with user ID.

array loadByLogin(string $login)

Loads user with user login.

array loadByEmail(string $email)

Loads user with user email.

updateUser(User $user)

Update the user information specified by the user struct.

assignRole(mixed $contentId, mixed $roleId, array $limitation)

Assigns role to user with given limitation.

removeRole(mixed $contentId, mixed $roleId)

Remove role from user or user group.

removeRoleAssignmentById(mixed $roleAssignmentId)

Remove role from user or user group, by assignment ID.

Details

at line 25
abstract public mixed createUser(User $user)

Create user.

Parameters

User $user

Return Value

mixed

at line 32
abstract public deleteUser(mixed $userId)

Delete user with the given ID.

Parameters

mixed $userId

at line 41
abstract public array load(mixed $userId)

Loads user with user ID.

Parameters

mixed $userId

Return Value

array

at line 50
abstract public array loadByLogin(string $login)

Loads user with user login.

Parameters

string $login

Return Value

array

at line 59
abstract public array loadByEmail(string $email)

Loads user with user email.

Parameters

string $email

Return Value

array

at line 66
abstract public updateUser(User $user)

Update the user information specified by the user struct.

Parameters

User $user

at line 75
abstract public assignRole(mixed $contentId, mixed $roleId, array $limitation)

Assigns role to user with given limitation.

Parameters

mixed $contentId
mixed $roleId
array $limitation

at line 83
abstract public removeRole(mixed $contentId, mixed $roleId)

Remove role from user or user group.

Parameters

mixed $contentId
mixed $roleId

at line 90
abstract public removeRoleAssignmentById(mixed $roleAssignmentId)

Remove role from user or user group, by assignment ID.

Parameters

mixed $roleAssignmentId