eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage:

Public Member Functions

 getFieldData ($fieldId, $userId=null)
 Get field data. More...
 
 setConnection ($dbHandler)
 Set dbHandler for gateway. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\User\UserStorage\Gateway
 getFieldData ($fieldId, $userId=null)
 Get field data. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\StorageGateway
 setConnection ($connection)
 Sets the data storage connection to use. More...
 

Protected Member Functions

 convertColumnsToProperties (array $databaseValues)
 Converts the given database values to properties. More...
 
 fetchUserData ($userId)
 Fetch user data. More...
 
 fetchUserId ($fieldId)
 Fetch basic user data. More...
 
 fetchUserSettings ($userId)
 Fetch user settings. More...
 
 getPropertyMap ()
 

Protected Attributes

 $dbHandler
 
 $defaultValues
 

Member Function Documentation

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::convertColumnsToProperties ( array  $databaseValues)
protected

Converts the given database values to properties.

Parameters
array$databaseValues
Returns
array

Referenced by eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\fetchUserData(), and eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\fetchUserSettings().

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::fetchUserData (   $userId)
protected

Fetch user data.

Parameters
mixed$userId
Returns
array

Referenced by eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\getFieldData().

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::fetchUserId (   $fieldId)
protected

Fetch basic user data.

Parameters
mixed$fieldId
Returns
array

Referenced by eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\getFieldData().

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::fetchUserSettings (   $userId)
protected

Fetch user settings.

Naturally this would be a RIGHT OUTER JOIN, but this is not supported by ezcDatabase nor by databases like SQLite

Parameters
mixed$userId
Returns
array

Referenced by eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\getFieldData().

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::getFieldData (   $fieldId,
  $userId = null 
)

Get field data.

The User storage handles the following attributes, following the user field type in eZ Publish 4:

  • hasStoredLogin
  • contentobjectId
  • login
  • email
  • passwordHash
  • passwordHashType
  • isEnabled
  • maxLogin
Parameters
mixed$fieldId
mixed$userId
Returns
array
eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::getPropertyMap ( )
protected
eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::setConnection (   $dbHandler)

Set dbHandler for gateway.

Parameters
mixed$dbHandler
Returns
void

Member Data Documentation

eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::$dbHandler
protected
eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage::$defaultValues
protected
Initial value:
= array(
'hasStoredLogin' => false,
'contentId' => null,
'login' => null,
'email' => null,
'passwordHash' => null,
'passwordHashType' => null,
'enabled' => false,
'maxLogin' => null,
)

Referenced by eZ\Publish\Core\FieldType\User\UserStorage\Gateway\LegacyStorage\getFieldData().


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