Class

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

class DoctrineStorage extends Gateway

Image Field Type external storage DoctrineStorage gateway.

Constants

IMAGE_FILE_TABLE

Methods

string getNodePathString(VersionInfo $versionInfo)

Return the node path string of $versionInfo.

storeImageReference(string $uri, int $fieldId)

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

array getXmlForImages(int $versionNo, array $fieldIds)

Return an XML content stored for the given $fieldIds.

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

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

int countImageReferences(string $uri)

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

array|null extractFilesFromXml(string $xml)

Extract, stored in DocBook XML, file paths.

__construct(UrlRedecoratorInterface $redecorator, Connection $connection)

Details

at line 61
public string getNodePathString(VersionInfo $versionInfo)

Return the node path string of $versionInfo.

Parameters

VersionInfo $versionInfo

Return Value

string

at line 98
public storeImageReference(string $uri, int $fieldId)

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

Parameters

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

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

Return an XML content stored for the given $fieldIds.

Parameters

int $versionNo
array $fieldIds

Return Value

array

at line 169
public removeImageReferences(string $uri, int $versionNo, int $fieldId)

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

Parameters

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

at line 206
public int countImageReferences(string $uri)

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

Parameters

string $uri File IO uri (not legacy)

Return Value

int

at line 284
public array|null extractFilesFromXml(string $xml)

Extract, stored in DocBook XML, file paths.

Parameters

string $xml

Return Value

array|null

at line 48
public __construct(UrlRedecoratorInterface $redecorator, Connection $connection)

Parameters

UrlRedecoratorInterface $redecorator
Connection $connection