Class

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

class LegacyStorage extends 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.

__construct(UrlRedecoratorInterface $redecorator, DatabaseHandler $dbHandler)

Details

at line 71
public string getNodePathString(VersionInfo $versionInfo)

Returns the node path string of $versionInfo.

Parameters

VersionInfo $versionInfo

Return Value

string

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

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

Parameters

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

at line 135
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 176
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)
int $versionNo
mixed $fieldId

at line 213
public int countImageReferences(string $uri)

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

Parameters

string $uri File IO uri (not legacy)

Return Value

int

at line 288
public extractFilesFromXml($xml)

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

Parameters

$xml

at line 44
public __construct(UrlRedecoratorInterface $redecorator, DatabaseHandler $dbHandler)

Parameters

UrlRedecoratorInterface $redecorator
DatabaseHandler $dbHandler