PHP Класс eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage

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

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

Свойство Тип Описание
$dbHandler mixed Connection.

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

Метод Описание
countFileReferences ( array $files ) : array Returns a map with the number of references each file from $files has.
getFileReferenceData ( mixed $fieldId, integer $versionNo ) : array | void Returns the file reference data for the given $fieldId in $versionNo.
getReferencedFiles ( array $fieldIds, $versionNo ) : array Returns a set o file references, referenced by the given $fieldIds.
prependMimeToPath ( string $path, string $mimeType ) : string Prepends $path with the first part of the given $mimeType.
removeFileReference ( mixed $fieldId, integer $versionNo ) Removes a specific file reference for $fieldId and $versionId.
removeFileReferences ( array $fieldIds, $versionNo ) Removes all file references for the given $fieldIds.
removeMimeFromPath ( string $path ) : string Removes the prepended mime-type directory from $path for legacy storage.
setConnection ( mixed $dbHandler ) Set database handler for this gateway.
storeFileReference ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field ) Stores the file reference in $field for $versionNo.

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

Метод Описание
castToPropertyValue ( mixed $value, string $columnName ) : mixed Returns $value casted as specified by {@link getPropertyMapping()}.
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler Returns the active connection.
getPropertyMapping ( ) : array Returns a column to property mapping for the storage table.
getStorageTable ( ) : string Returns the table name to store data in.
setFetchColumns ( eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery, integer $fieldId, integer $versionNo ) Set columns to be fetched from the database.
setInsertColumns ( eZ\Publish\Core\Persistence\Database\InsertQuery $insertQuery, eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field ) Sets the required insert columns to $selectQuery.
toPropertyName ( string $columnName ) : string Returns the property name for the given $columnName.

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

castToPropertyValue() защищенный метод

Returns $value casted as specified by {@link getPropertyMapping()}.
protected castToPropertyValue ( mixed $value, string $columnName ) : mixed
$value mixed
$columnName string
Результат mixed

countFileReferences() публичный метод

Returns a map with the number of references each file from $files has.
public countFileReferences ( array $files ) : array
$files array
Результат array

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

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

getFileReferenceData() публичный метод

Returns the file reference data for the given $fieldId in $versionNo.
public getFileReferenceData ( mixed $fieldId, integer $versionNo ) : array | void
$fieldId mixed
$versionNo integer
Результат array | void

getPropertyMapping() защищенный метод

Returns a column to property mapping for the storage table.
protected getPropertyMapping ( ) : array
Результат array

getReferencedFiles() публичный метод

Returns a set o file references, referenced by the given $fieldIds.
public getReferencedFiles ( array $fieldIds, $versionNo ) : array
$fieldIds array
Результат array

getStorageTable() абстрактный защищенный метод

Returns the table name to store data in.
abstract protected getStorageTable ( ) : string
Результат string

prependMimeToPath() публичный метод

Prepends $path with the first part of the given $mimeType.
public prependMimeToPath ( string $path, string $mimeType ) : string
$path string
$mimeType string
Результат string

removeFileReference() публичный метод

Removes a specific file reference for $fieldId and $versionId.
public removeFileReference ( mixed $fieldId, integer $versionNo )
$fieldId mixed
$versionNo integer

removeFileReferences() публичный метод

Removes all file references for the given $fieldIds.
public removeFileReferences ( array $fieldIds, $versionNo )
$fieldIds array

removeMimeFromPath() публичный метод

Removes the prepended mime-type directory from $path for legacy storage.
public removeMimeFromPath ( string $path ) : string
$path string
Результат string

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

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

setFetchColumns() защищенный метод

This method is intended to be overwritten by derived classes in order to add additional columns to be fetched from the database. Please do not forget to call the parent when overwriting this method.
protected setFetchColumns ( eZ\Publish\Core\Persistence\Database\SelectQuery $selectQuery, integer $fieldId, integer $versionNo )
$selectQuery eZ\Publish\Core\Persistence\Database\SelectQuery
$fieldId integer
$versionNo integer

setInsertColumns() защищенный метод

This method is intended to be overwritten by derived classes in order to add additional columns to be set in the database. Please do not forget to call the parent when overwriting this method.
protected setInsertColumns ( eZ\Publish\Core\Persistence\Database\InsertQuery $insertQuery, eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field )
$insertQuery eZ\Publish\Core\Persistence\Database\InsertQuery
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field

storeFileReference() публичный метод

Stores the file reference in $field for $versionNo.
public storeFileReference ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field

toPropertyName() защищенный метод

Returns the property name for the given $columnName.
protected toPropertyName ( string $columnName ) : string
$columnName string
Результат string

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

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

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