eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase Class Reference

User gateway implementation using the zeta database component. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase:

Public Member Functions

 __construct (EzcDbHandler $handler)
 Construct from database handler. More...
 
 assignRole ($contentId, $roleId, array $limitation)
 Assigns role to user with given limitation. More...
 
 createUser (User $user)
 Create user. More...
 
 deleteUser ($userId)
 Delete user with the given ID. More...
 
 load ($userId)
 Loads user with user ID. More...
 
 loadByEmail ($email)
 Loads user with user email. More...
 
 loadByLogin ($login)
 Loads user with user login. More...
 
 removeRole ($contentId, $roleId)
 Remove role from user. More...
 
 updateUser (User $user)
 Update the user information specified by the user struct. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\User\Gateway
 assignRole ($contentId, $roleId, array $limitation)
 Assigns role to user with given limitation. More...
 
 createUser (User $user)
 Create user. More...
 
 deleteUser ($userId)
 Delete user with the given ID. More...
 
 load ($userId)
 Loads user with user ID. More...
 
 loadByEmail ($email)
 Loads user with user email. More...
 
 loadByLogin ($login)
 Loads user with user login. More...
 
 removeRole ($contentId, $roleId)
 Remove role from user. More...
 
 updateUser (User $user)
 Update the user information specified by the user struct. More...
 

Protected Attributes

 $handler
 

Detailed Description

User gateway implementation using the zeta database component.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::__construct ( EzcDbHandler  $handler)

Construct from database handler.

Parameters
\EzcDbHandler$handler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::assignRole (   $contentId,
  $roleId,
array  $limitation 
)

Assigns role to user with given limitation.

Parameters
mixed$contentId
mixed$roleId
array$limitation
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::createUser ( User  $user)

Create user.

Parameters
user$user
Returns
mixed
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::deleteUser (   $userId)

Delete user with the given ID.

Parameters
mixed$userId
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::load (   $userId)

Loads user with user ID.

Parameters
mixed$userId
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::loadByEmail (   $email)

Loads user with user email.

Parameters
string$email
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::loadByLogin (   $login)

Loads user with user login.

Parameters
string$login
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::removeRole (   $contentId,
  $roleId 
)

Remove role from user.

Parameters
mixed$contentId
mixed$roleId
eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::updateUser ( User  $user)

Update the user information specified by the user struct.

Parameters
User$user

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\User\Gateway\EzcDatabase::$handler
protected

The documentation for this class was generated from the following file: