PHP 클래스 eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage

상속: extends eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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