Class

eZ\Publish\Core\IO\UrlRedecorator

class UrlRedecorator implements UrlRedecoratorInterface

Converts urls between two decorators.

Methods

__construct(UrlDecorator $sourceDecorator, UrlDecorator $targetDecorator)

string redecorateFromSource(string $uri)

Redecorates $uri from source to target.

string redecorateFromTarget(string $uri)

Redecorates $uri from source to target.

Details

at line 22
public __construct(UrlDecorator $sourceDecorator, UrlDecorator $targetDecorator)

Parameters

UrlDecorator $sourceDecorator
UrlDecorator $targetDecorator

at line 28
public string redecorateFromSource(string $uri)

Redecorates $uri from source to target.

Parameters

string $uri

Return Value

string

Exceptions

InvalidBinaryFileIdException If $uri couldn't be interpreted b y the target decorator

at line 35
public string redecorateFromTarget(string $uri)

Redecorates $uri from source to target.

Parameters

string $uri

Return Value

string

Exceptions

InvalidBinaryFileIdException If $uri couldn't be interpreted b y the target decorator