Class

eZ\Publish\Core\IO\UrlDecorator\AbsolutePrefix

class AbsolutePrefix extends Prefix implements UrlDecorator

Prefixes the URI with a string, and makes it absolute.

Methods

__construct($prefix = null)

from Prefix
setPrefix($prefix $prefix)

Makes the prefix absolute.

string decorate($id)

Decorates $uri.

from Prefix
string undecorate($url)

Un-decorates decorated $uri.

from Prefix

Details

in Prefix at line 26
public __construct($prefix = null)

Parameters

$prefix

at line 23
public setPrefix($prefix $prefix)

Makes the prefix absolute.

Parameters

$prefix $prefix

in Prefix at line 38
public string decorate($id)

Decorates $uri.

Parameters

$id

Return Value

string Decorated string

in Prefix at line 47
public string undecorate($url)

Un-decorates decorated $uri.

Parameters

$url

Return Value

string Un-decorated string