eZPublishCommunityProject  2013.4
eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage:

Public Member Functions

 deleteFieldData (VersionInfo $versionInfo, array $fieldIds)
 Deletes the data for all given $fieldIds. More...
 
 getFieldData (VersionInfo $versionInfo, Field $field)
 Sets the loaded field data into $field->externalData. More...
 
 setConnection ($dbHandler)
 Set database handler for this gateway. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field)
 Stores the data stored in the given $field. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway
 deleteFieldData (VersionInfo $versionInfo, array $fieldIds)
 Deletes the data for all given $fieldIds. More...
 
 getFieldData (VersionInfo $versionInfo, Field $field)
 Sets the loaded field data into $field->externalData. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field)
 Stores the data stored in the given $field. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\StorageGateway
 setConnection ($connection)
 Sets the data storage connection to use. More...
 

Protected Member Functions

 getConnection ()
 Returns the active connection. More...
 
 hasFieldData ($fieldId, $versionNo)
 Returns if field data exists for $fieldId. More...
 
 loadFieldData ($fieldId, $versionNo)
 Returns the data for the given $fieldId. More...
 
 storeNewFieldData (VersionInfo $versionInfo, Field $field)
 Stores new field data. More...
 
 updateFieldData (VersionInfo $versionInfo, Field $field)
 Performs an update on the field data. More...
 

Protected Attributes

 $dbHandler
 

Member Function Documentation

eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::deleteFieldData ( VersionInfo  $versionInfo,
array  $fieldIds 
)

Deletes the data for all given $fieldIds.

Parameters
VersionInfo$versionInfo
array$fieldIds
Returns
void

Referenced by eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\storeFieldData().

eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::getFieldData ( VersionInfo  $versionInfo,
Field  $field 
)

Sets the loaded field data into $field->externalData.

Parameters
VersionInfo$versionInfo
Field$field
Returns
array
eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::hasFieldData (   $fieldId,
  $versionNo 
)
protected

Returns if field data exists for $fieldId.

Parameters
int$fieldId
int$versionNo
Returns
boolean

Referenced by eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\storeFieldData().

eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::loadFieldData (   $fieldId,
  $versionNo 
)
protected

Returns the data for the given $fieldId.

If no data is found, null is returned.

Parameters
int$fieldId
Returns
array|null

Referenced by eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\getFieldData(), and eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\hasFieldData().

eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::setConnection (   $dbHandler)

Set database handler for this gateway.

Parameters
mixed$dbHandler
Returns
void
Exceptions
\RuntimeExceptionif $dbHandler is not an instance of eZ\Publish\Core\Persistence\Legacy\EzcDbHandler
eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::storeFieldData ( VersionInfo  $versionInfo,
Field  $field 
)

Stores the data stored in the given $field.

Potentially rewrites data in $field and returns true, if the $field needs to be updated in the database.

Parameters
VersionInfo$versionInfo
Field$field
Returns
boolean If restoring of the internal field data is required
eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::storeNewFieldData ( VersionInfo  $versionInfo,
Field  $field 
)
protected

Stores new field data.

Parameters
VersionInfo$versionInfo
Field$field
Returns
void

Referenced by eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\storeFieldData().

eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage::updateFieldData ( VersionInfo  $versionInfo,
Field  $field 
)
protected

Performs an update on the field data.

Parameters
VersionInfo$versionInfo
Field$field
Returns
boolean

Referenced by eZ\Publish\Core\FieldType\MapLocation\MapLocationStorage\Gateway\LegacyStorage\storeFieldData().

Member Data Documentation


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