Class

eZ\Publish\Core\IO\UrlDecorator\Prefix

class Prefix implements UrlDecorator

Prefixes the URI with a string.

Ensures an initial / in the parameter.

Methods

__construct($prefix = null)

setPrefix($prefix)

string decorate($id)

Decorates $uri.

string undecorate($url)

Un-decorates decorated $uri.

Details

at line 26
public __construct($prefix = null)

Parameters

$prefix

at line 33
public setPrefix($prefix)

Parameters

$prefix

at line 38
public string decorate($id)

Decorates $uri.

Parameters

$id

Return Value

string Decorated string

at line 47
public string undecorate($url)

Un-decorates decorated $uri.

Parameters

$url

Return Value

string Un-decorated string