Class

eZ\Publish\Core\SignalSlot\URLService

class URLService implements URLService

Methods

__construct(URLService $service, SignalDispatcher $signalDispatcher)

URLService constructor.

URLUpdateStruct createUpdateStruct()

Instantiates a new URL update struct.

SearchResult findUrls(URLQuery $query)

Find URLs.

UsageSearchResult findUsages(URL $url, int $offset, int $limit = -1)

Find content objects using URL.

URL loadById(int $id)

Load single URL (by ID).

URL loadByUrl(string $url)

Load single URL (by URL).

URL updateUrl(URL $url, URLUpdateStruct $struct)

Updates URL.

Details

at line 37
public __construct(URLService $service, SignalDispatcher $signalDispatcher)

URLService constructor.

Parameters

URLService $service
SignalDispatcher $signalDispatcher

at line 46
public URLUpdateStruct createUpdateStruct()

Instantiates a new URL update struct.

Return Value

URLUpdateStruct

at line 54
public SearchResult findUrls(URLQuery $query)

Find URLs.

Parameters

URLQuery $query

Return Value

SearchResult

Exceptions

UnauthorizedException

at line 62
public UsageSearchResult findUsages(URL $url, int $offset, int $limit = -1)

Find content objects using URL.

Content is filter by user permissions.

Parameters

URL $url
int $offset
int $limit

Return Value

UsageSearchResult

at line 70
public URL loadById(int $id)

Load single URL (by ID).

Parameters

int $id ID of URL

Return Value

URL

Exceptions

NotFoundException
UnauthorizedException

at line 78
public URL loadByUrl(string $url)

Load single URL (by URL).

Parameters

string $url url

Return Value

URL

Exceptions

NotFoundException
UnauthorizedException

at line 86
public URL updateUrl(URL $url, URLUpdateStruct $struct)

Updates URL.

Parameters

URL $url
URLUpdateStruct $struct

Return Value

URL

Exceptions

NotFoundException
UnauthorizedException
InvalidArgumentException if the url already exists