Class

eZ\Publish\Core\Persistence\Legacy\URL\Handler

class Handler implements Handler

Storage Engine handler for URLs.

Methods

__construct(Gateway $gateway, Mapper $mapper)

Handler constructor.

URL updateUrl(int $id, URLUpdateStruct $urlUpdateStruct)

Updates a existing URL.

array find(URLQuery $query)

Selects URLs data using $query.

URL loadById(int $id)

Loads the data for the URL identified by $id.

URL loadByUrl(string $url)

Loads the data for the URL identified by $url.

array findUsages(int $id)

Returns IDs of Content Objects using URL identified by $id.

Details

at line 31
public __construct(Gateway $gateway, Mapper $mapper)

Handler constructor.

Parameters

Gateway $gateway
Mapper $mapper

at line 40
public URL updateUrl(int $id, URLUpdateStruct $urlUpdateStruct)

Updates a existing URL.

Parameters

int $id
URLUpdateStruct $urlUpdateStruct

Return Value

URL

at line 55
public array find(URLQuery $query)

Selects URLs data using $query.

Parameters

URLQuery $query

Return Value

array

at line 73
public URL loadById(int $id)

Loads the data for the URL identified by $id.

Parameters

int $id

Return Value

URL

Exceptions

NotFoundException

at line 89
public URL loadByUrl(string $url)

Loads the data for the URL identified by $url.

Parameters

string $url

Return Value

URL

Exceptions

NotFoundException

at line 105
public array findUsages(int $id)

Returns IDs of Content Objects using URL identified by $id.

Parameters

int $id

Return Value

array