PHP Class Preview

Inheritance: extends JContentEditorPlugin
Show file Open project: bcosca/fatfree Class Usage Examples

Protected Properties

Property Type Description
$filter
$mime

Public Methods

Method Description
filter ( string $key = NULL, string | closure $func = NULL ) : array | closure | string Register or get (a specific one or all) token filters
render ( $file, $mime = NULL, array $hive = NULL, $ttl ) : string Render template
resolve ( $str, array $hive = NULL ) : string Render template string
token ( $str ) : string Convert token to variable

Protected Methods

Method Description
build ( $node ) : string Assemble markup

Method Details

build() protected method

Assemble markup
protected build ( $node ) : string
$node string
return string

filter() public method

Register or get (a specific one or all) token filters
public filter ( string $key = NULL, string | closure $func = NULL ) : array | closure | string
$key string
$func string | closure
return array | closure | string

render() public method

Render template
public render ( $file, $mime = NULL, array $hive = NULL, $ttl ) : string
$file string
$mime string
$hive array array
$ttl int
return string

resolve() public method

Render template string
public resolve ( $str, array $hive = NULL ) : string
$str string
$hive array array
return string

token() public method

Convert token to variable
public token ( $str ) : string
$str string
return string

Property Details

$filter protected property

protected $filter

$mime protected property

protected $mime