PHP Class eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway

Inheritance: extends eZ\Publish\Core\FieldType\StorageGateway
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
countImageReferences ( string $uri ) : integer Returns the number of recorded references to the given $path.
extractFilesFromXml ( $xml ) Returns the public uris for the images stored in $xml.
getNodePathString ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo ) : string Returns the node path string of $versionInfo.
getXmlForImages ( integer $versionNo, array $fieldIds ) : array Returns a the XML content stored for the given $fieldIds.
removeImageReferences ( string $uri, integer $versionNo, mixed $fieldId ) Removes all references from $fieldId to a path that starts with $path.
storeImageReference ( string $uri, mixed $fieldId ) Stores a reference to the image in $path for $fieldId.

Method Details

countImageReferences() abstract public method

Returns the number of recorded references to the given $path.
abstract public countImageReferences ( string $uri ) : integer
$uri string File IO uri (not legacy uri)
return integer

extractFilesFromXml() abstract public method

Returns the public uris for the images stored in $xml.
abstract public extractFilesFromXml ( $xml )

getNodePathString() abstract public method

Returns the node path string of $versionInfo.
abstract public getNodePathString ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo ) : string
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
return string

getXmlForImages() abstract public method

Returns a the XML content stored for the given $fieldIds.
abstract public getXmlForImages ( integer $versionNo, array $fieldIds ) : array
$versionNo integer
$fieldIds array
return array

removeImageReferences() abstract public method

Removes all references from $fieldId to a path that starts with $path.
abstract public removeImageReferences ( string $uri, integer $versionNo, mixed $fieldId )
$uri string File IO uri (not legacy uri)
$versionNo integer
$fieldId mixed

storeImageReference() abstract public method

Stores a reference to the image in $path for $fieldId.
abstract public storeImageReference ( string $uri, mixed $fieldId )
$uri string File IO uri
$fieldId mixed