Class

eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\DoctrineStorage

class DoctrineStorage extends Gateway

Constants

URL_TABLE

URL_LINK_TABLE

Methods

array getIdUrlMap(array $ids)

Return a list of URLs for a list of URL ids.

array getUrlIdMap(array $urls)

Return a list of URL ids for a list of URLs.

string insertUrl(string $url)

Insert a new $url and returns its id.

linkUrl(int $urlId, int $fieldId, int $versionNo)

Create link to URL with $urlId for field with $fieldId in $versionNo.

unlinkUrl(int $fieldId, int $versionNo)

Remove link to URL for $fieldId in $versionNo and cleans up possibly orphaned URLs.

__construct(Connection $connection)

Details

at line 39
public array getIdUrlMap(array $ids)

Return a list of URLs for a list of URL ids.

Non-existent ids are ignored.

Parameters

array $ids An array of URL ids

Return Value

array An array of URLs, with ids as keys

at line 72
public array getUrlIdMap(array $urls)

Return a list of URL ids for a list of URLs.

Non-existent URLs are ignored.

Parameters

array $urls An array of URLs

Return Value

array An array of URL ids, with URLs as keys

at line 105
public string insertUrl(string $url)

Insert a new $url and returns its id.

Parameters

string $url The URL to insert in the database

Return Value

string

at line 141
public linkUrl(int $urlId, int $fieldId, int $versionNo)

Create link to URL with $urlId for field with $fieldId in $versionNo.

Parameters

int $urlId
int $fieldId
int $versionNo

at line 168
public unlinkUrl(int $fieldId, int $versionNo)

Remove link to URL for $fieldId in $versionNo and cleans up possibly orphaned URLs.

Parameters

int $fieldId
int $versionNo

at line 25
public __construct(Connection $connection)

Parameters

Connection $connection