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

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\User\Gateway
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$handler eZ\Publish\Core\Persistence\Database\DatabaseHandler Database handler.

Méthodes publiques

Méthode Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $handler ) Construct from database handler.
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

__construct() public méthode

Construct from database handler.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $handler )
$handler eZ\Publish\Core\Persistence\Database\DatabaseHandler

assignRole() public méthode

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

createUser() public méthode

Create user.
public createUser ( eZ\Publish\SPI\Persistence\User $user ) : mixed
$user eZ\Publish\SPI\Persistence\User
Résultat mixed

deleteUser() public méthode

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

load() public méthode

Loads user with user ID.
public load ( mixed $userId ) : array
$userId mixed
Résultat array

loadByEmail() public méthode

Loads user with user email.
public loadByEmail ( string $email ) : array
$email string
Résultat array

loadByLogin() public méthode

Loads user with user login.
public loadByLogin ( string $login ) : array
$login string
Résultat array

removeRole() public méthode

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

removeRoleAssignmentById() public méthode

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

updateUser() public méthode

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

Property Details

$handler protected_oe property

Database handler.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $handler
Résultat eZ\Publish\Core\Persistence\Database\DatabaseHandler