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

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

Защищенные свойства (Protected)

Свойство Тип Описание
$dbHandler mixed Connection.
$fieldNameMap array Maps database field names to property names.

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

Метод Описание
__construct ( eZ\Publish\Core\IO\UrlRedecorator $redecorator )
countImageReferences ( string $uri ) : integer Returns the number of recorded references to the given $path.
extractFilesFromXml ( $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.
setConnection ( mixed $dbHandler ) Set database handler for this gateway.
storeImageReference ( string $uri, mixed $fieldId ) Stores a reference to the image in $path for $fieldId.

Защищенные методы

Метод Описание
canRemoveImageReference ( string $path, integer $versionNo, mixed $fieldId ) : boolean Checks if image $path can be removed when deleting $versionNo and $fieldId.
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler Returns the active connection.

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

__construct() публичный Метод

public __construct ( eZ\Publish\Core\IO\UrlRedecorator $redecorator )
$redecorator eZ\Publish\Core\IO\UrlRedecorator

canRemoveImageReference() защищенный Метод

Checks if image $path can be removed when deleting $versionNo and $fieldId.
protected canRemoveImageReference ( string $path, integer $versionNo, mixed $fieldId ) : boolean
$path string legacy image path (var/storage/images...)
$versionNo integer
$fieldId mixed
Результат boolean

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

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

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

public extractFilesFromXml ( $xml )

getConnection() защищенный Метод

Returns the active connection.
protected getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler
Результат eZ\Publish\Core\Persistence\Database\DatabaseHandler

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

Returns the node path string of $versionInfo.
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.
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.
public removeImageReferences ( string $uri, integer $versionNo, mixed $fieldId )
$uri string File IO uri (not legacy)
$versionNo integer
$fieldId mixed

setConnection() публичный Метод

Set database handler for this gateway.
public setConnection ( mixed $dbHandler )
$dbHandler mixed

storeImageReference() публичный Метод

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

Описание свойств

$dbHandler защищенное свойство

Connection.
protected mixed $dbHandler
Результат mixed

$fieldNameMap защищенное свойство

Maps database field names to property names.
protected array $fieldNameMap
Результат array