eZPublishCommunityProject  2013.9
eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage:

Public Member Functions

 countImageReferences ($path)
 Returns the number of recorded references to the given $path. More...
 
 getNodePathString (VersionInfo $versionInfo)
 Returns the node path string of $versionInfo. More...
 
 getXmlForImages ($versionNo, array $fieldIds)
 Returns a the XML content stored for the given $fieldIds. More...
 
 removeImageReferences ($path, $versionNo, $fieldId)
 Removes all references from $fieldId to a path that starts with $path. More...
 
 setConnection ($dbHandler)
 Set database handler for this gateway. More...
 
 storeImageReference ($path, $fieldId)
 Stores a reference to the image in $path for $fieldId. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway
 countImageReferences ($path)
 Returns the number of recorded references to the given $path. More...
 
 getNodePathString (VersionInfo $versionInfo)
 Returns the node path string of $versionInfo. More...
 
 getXmlForImages ($versionNo, array $fieldIds)
 Returns a the XML content stored for the given $fieldIds. More...
 
 removeImageReferences ($path, $versionNo, $fieldId)
 Removes all references from $fieldId to a path that starts with $path. More...
 
 storeImageReference ($path, $fieldId)
 Stores a reference to the image in $path for $fieldId. 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...
 

Protected Attributes

 $dbHandler
 
 $fieldNameMap
 

Member Function Documentation

eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::countImageReferences (   $path)

Returns the number of recorded references to the given $path.

Parameters
string$path
Returns
int
eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::getNodePathString ( VersionInfo  $versionInfo)

Returns the node path string of $versionInfo.

Parameters
VersionInfo$versionInfo
Returns
string
eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::getXmlForImages (   $versionNo,
array  $fieldIds 
)

Returns a the XML content stored for the given $fieldIds.

Parameters
int$versionNo
array$fieldIds
Returns
array
eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::removeImageReferences (   $path,
  $versionNo,
  $fieldId 
)

Removes all references from $fieldId to a path that starts with $path.

Parameters
string$path
mixed$fieldId
Returns
void
eZ\Publish\Core\FieldType\Image\ImageStorage\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\Image\ImageStorage\Gateway\LegacyStorage::storeImageReference (   $path,
  $fieldId 
)

Stores a reference to the image in $path for $fieldId.

Parameters
string$path
mixed$fieldId
Returns
void

Member Data Documentation

eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::$dbHandler
protected
eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage::$fieldNameMap
protected
Initial value:
= array(
'id' => 'fieldId',
'version' => 'versionNo',
'language_code' => 'languageCode',
'path_identification_string' => 'nodePathString',
'data_string' => 'xml',
)

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