PHP Класс eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway

Наследование: extends eZ\Publish\Core\FieldType\StorageGateway
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

countImageReferences() абстрактный публичный Метод

Returns the number of recorded references to the given $path.
abstract public countImageReferences ( string $uri ) : integer
$uri string File IO uri (not legacy uri)
Результат integer

extractFilesFromXml() абстрактный публичный Метод

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

getNodePathString() абстрактный публичный Метод

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
Результат string

getXmlForImages() абстрактный публичный Метод

Returns a the XML content stored for the given $fieldIds.
abstract public getXmlForImages ( integer $versionNo, array $fieldIds ) : array
$versionNo integer
$fieldIds array
Результат array

removeImageReferences() абстрактный публичный Метод

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() абстрактный публичный Метод

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