Class

eZ\Publish\Core\FieldType\Image\ImageStorage\Gateway

abstract class Gateway extends StorageGateway

Image Field Type external storage gateway.

Methods

string getNodePathString(VersionInfo $versionInfo)

Returns the node path string of $versionInfo.

storeImageReference(string $uri, mixed $fieldId)

Stores a reference to the image in $path for $fieldId.

array getXmlForImages(int $versionNo, array $fieldIds)

Returns a the XML content stored for the given $fieldIds.

removeImageReferences(string $uri, int $versionNo, mixed $fieldId)

Removes all references from $fieldId to a path that starts with $path.

int countImageReferences(string $uri)

Returns the number of recorded references to the given $path.

extractFilesFromXml($xml)

Returns the public uris for the images stored in $xml.

Details

at line 26
abstract public string getNodePathString(VersionInfo $versionInfo)

Returns the node path string of $versionInfo.

Parameters

VersionInfo $versionInfo

Return Value

string

at line 34
abstract public storeImageReference(string $uri, mixed $fieldId)

Stores a reference to the image in $path for $fieldId.

Parameters

string $uri File IO uri
mixed $fieldId

at line 44
abstract public array getXmlForImages(int $versionNo, array $fieldIds)

Returns a the XML content stored for the given $fieldIds.

Parameters

int $versionNo
array $fieldIds

Return Value

array

at line 53
abstract public removeImageReferences(string $uri, int $versionNo, mixed $fieldId)

Removes all references from $fieldId to a path that starts with $path.

Parameters

string $uri File IO uri (not legacy uri)
int $versionNo
mixed $fieldId

at line 62
abstract public int countImageReferences(string $uri)

Returns the number of recorded references to the given $path.

Parameters

string $uri File IO uri (not legacy uri)

Return Value

int

at line 67
abstract public extractFilesFromXml($xml)

Returns the public uris for the images stored in $xml.

Parameters

$xml