PHP Class FOF30\View\Engine\CompilingEngine

Inheritance: extends AbstractEngine, implements FOF30\View\Engine\EngineInterface
Show file Open project: akeeba/fof Class Usage Examples

Protected Properties

Property Type Description
$compiler The compiler used by this engine

Public Methods

Method Description
get ( string $path, array $forceParams = [] ) : array Get the evaluated contents of the view template.

Protected Methods

Method Description
compile ( string $path, array $forceParams = [] ) : string A method to compile the raw view template into valid PHP
getCachePath ( $path )
getCached ( $path )
getIdentifier ( $path )
isCached ( $path )
putToCache ( $path, $content )

Method Details

compile() protected method

A method to compile the raw view template into valid PHP
protected compile ( string $path, array $forceParams = [] ) : string
$path string The path to the view template
$forceParams array Any additional information to pass to the view template compiler
return string The template compiled to executable PHP

get() public method

Get the evaluated contents of the view template.
public get ( string $path, array $forceParams = [] ) : array
$path string The path to the view template
$forceParams array Any additional information to pass to the view template engine
return array Content evaluation information

getCachePath() protected method

protected getCachePath ( $path )

getCached() protected method

protected getCached ( $path )

getIdentifier() protected method

protected getIdentifier ( $path )

isCached() protected method

protected isCached ( $path )

putToCache() protected method

protected putToCache ( $path, $content )

Property Details

$compiler protected property

The compiler used by this engine
protected $compiler