PHP Class DataTemplate

Since: 19/09/2010
Author: Julien PIERRE
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
fromJsonFile ( string $filename, array $consts = [] ) : DataTemplate

Protected Methods

Method Description
preprocess ( object | array $rawTemplate, array $consts ) : DataTemplate
preprocessDirective ( object $object, array $consts ) : DataTemplateDirective | null
replaceConsts ( string $value, array $consts ) : string

Method Details

fromJsonFile() public static method

public static fromJsonFile ( string $filename, array $consts = [] ) : DataTemplate
$filename string
$consts array
return DataTemplate

preprocess() protected static method

protected static preprocess ( object | array $rawTemplate, array $consts ) : DataTemplate
$rawTemplate object | array
$consts array
return DataTemplate

preprocessDirective() protected static method

protected static preprocessDirective ( object $object, array $consts ) : DataTemplateDirective | null
$object object
$consts array
return DataTemplateDirective | null

replaceConsts() protected static method

protected static replaceConsts ( string $value, array $consts ) : string
$value string
$consts array
return string