Class

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

class DoctrineDatabase extends Gateway

User gateway implementation using the Doctrine database.

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.

__construct(DatabaseHandler $handler)

Construct from database handler.

Details

at line 44
public mixed createUser(User $user)

Create user.

Parameters

User $user

Return Value

mixed

at line 88
public deleteUser(mixed $userId)

Delete user with the given ID.

Parameters

mixed $userId

at line 120
public array load(mixed $userId)

Loads user with user ID.

Parameters

mixed $userId

Return Value

array

at line 159
public array loadByLogin(string $login)

Loads user with user login.

Parameters

string $login

Return Value

array

at line 199
public array loadByEmail(string $email)

Loads user with user email.

Parameters

string $email

Return Value

array

at line 236
public updateUser(User $user)

Update the user information specified by the user struct.

Parameters

User $user

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

Assigns role to user with given limitation.

Parameters

mixed $contentId
mixed $roleId
array $limitation

at line 317
public removeRole(mixed $contentId, mixed $roleId)

Remove role from user or user group.

Parameters

mixed $contentId
mixed $roleId

at line 342
public removeRoleAssignmentById(mixed $roleAssignmentId)

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

Parameters

mixed $roleAssignmentId

at line 32
public __construct(DatabaseHandler $handler)

Construct from database handler.

Parameters

DatabaseHandler $handler