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

Mostrar archivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
assignRole ( mixed $contentId, mixed $roleId, array $limitation ) Assigns role to user with given limitation.
createUser ( eZ\Publish\SPI\Persistence\User $user ) : mixed Create user.
deleteUser ( mixed $userId ) Delete user with the given ID.
load ( mixed $userId ) : array Loads user with user ID.
loadByEmail ( string $email ) : array Loads user with user email.
loadByLogin ( string $login ) : array Loads user with user login.
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.
updateUser ( eZ\Publish\SPI\Persistence\User $user ) Update the user information specified by the user struct.

Method Details

assignRole() abstract public method

Assigns role to user with given limitation.
abstract public assignRole ( mixed $contentId, mixed $roleId, array $limitation )
$contentId mixed
$roleId mixed
$limitation array

createUser() abstract public method

Create user.
abstract public createUser ( eZ\Publish\SPI\Persistence\User $user ) : mixed
$user eZ\Publish\SPI\Persistence\User
return mixed

deleteUser() abstract public method

Delete user with the given ID.
abstract public deleteUser ( mixed $userId )
$userId mixed

load() abstract public method

Loads user with user ID.
abstract public load ( mixed $userId ) : array
$userId mixed
return array

loadByEmail() abstract public method

Loads user with user email.
abstract public loadByEmail ( string $email ) : array
$email string
return array

loadByLogin() abstract public method

Loads user with user login.
abstract public loadByLogin ( string $login ) : array
$login string
return array

removeRole() abstract public method

Remove role from user or user group.
abstract public removeRole ( mixed $contentId, mixed $roleId )
$contentId mixed
$roleId mixed

removeRoleAssignmentById() abstract public method

Remove role from user or user group, by assignment ID.
abstract public removeRoleAssignmentById ( mixed $roleAssignmentId )
$roleAssignmentId mixed

updateUser() abstract public method

Update the user information specified by the user struct.
abstract public updateUser ( eZ\Publish\SPI\Persistence\User $user )
$user eZ\Publish\SPI\Persistence\User