PHP Class Essence\Provider\Preparator\Refactorer

Inheritance: extends Essence\Provider\Preparator
Mostra file Open project: benjamminf/craft-embedded-assets

Protected Properties

Property Type Description
$_pattern string Regex to extract an id from an URL.
$_template string Template to build an URL from an id.

Public Methods

Method Description
__construct ( string $idPattern, string $urlTemplate ) Constructor.
prepare ( $url ) {@inheritDoc}

Method Details

__construct() public method

Constructor.
public __construct ( string $idPattern, string $urlTemplate )
$idPattern string Regex to extract an id from an URL.
$urlTemplate string Template to build an URL from an id.

prepare() public method

{@inheritDoc}
public prepare ( $url )

Property Details

$_pattern protected_oe property

Regex to extract an id from an URL.
protected string $_pattern
return string

$_template protected_oe property

Template to build an URL from an id.
protected string $_template
return string