PHP 클래스 eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway\LegacyStorage

상속: extends eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

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