Свойство | Тип | Описание | |
---|---|---|---|
$compile_id | string | $compile_id | |
$compiled | |||
$properties | array | special compiled template properties | |
$required_plugins | array | required plugins | |
$source | |||
$template_resource | string | Full template resource |
Метод | Описание | |
---|---|---|
__construct ( string $tplResource, Box\Brainy\Brainy $brainy, |
Create template data object | |
compileTemplateSource ( ) : string | Compiles the template | |
createTemplateCodeFrame ( string $content = '' ) : string | Create code frame for compiled and cached templates | |
decodeProperties ( array $properties ) : boolean | This function is executed automatically when a compiled or cached template file is included | |
getScopePointer ( integer $scope ) : mixed | Get parent or root of template parent chain | |
mustCompile ( ) : boolean | Returns if the current template must be compiled by the Smarty compiler | |
recompileAndLoadCopy ( ) : void | Recompiles the template and also writes a copy of the compiled code to a temporary destination to load from. This is so that stale compiled code will be refreshed in HHVM, which does not support requiring the same file twice even if it has been changed. | |
writeFile ( string $_filepath, string $_contents, Box\Brainy\Brainy $smarty ) : boolean | Writes file in a safe way to disk |
public __construct ( string $tplResource, Box\Brainy\Brainy $brainy, |
||
$tplResource | string | template resource string |
$brainy | Box\Brainy\Brainy | Brainy instance |
$parent | back pointer to parent object with variables or null | |
$compileID | mixed | compile id or null |
$suppressData | boolean | void | Prevents data from being copied into the variable scope |
public compileTemplateSource ( ) : string | ||
Результат | string | The compiled template source |
public createTemplateCodeFrame ( string $content = '' ) : string | ||
$content | string | optional template content |
Результат | string |
public decodeProperties ( array $properties ) : boolean | ||
$properties | array | special template properties |
Результат | boolean | flag if compiled or cache file is valid |
public getScopePointer ( integer $scope ) : mixed | ||
$scope | integer | pqrent or root scope |
Результат | mixed | object |
public mustCompile ( ) : boolean | ||
Результат | boolean | true if the template must be compiled |
public recompileAndLoadCopy ( ) : void | ||
Результат | void |
public array $properties | ||
Результат | array |
public array $required_plugins | ||
Результат | array |
public string $template_resource | ||
Результат | string |