Свойство | Type | Description | |
---|---|---|---|
$smarty | Smarty | Global smarty instance | |
$strict_mode | boolean | Flag indicating that the template is running in strict mode | |
$template_resource | string | Template resource |
Méthode | Description | |
---|---|---|
__construct ( Box\Brainy\Brainy $brainyInstance, boolean | void $useRootScope = false ) | ||
assertIsNotStrict ( string $reason ) : void | ||
display ( string | null | void $template = null, string | null | void $compile_id = null ) : void | Renders the template. | |
fetch ( string | void $template = null, mixed | void $compile_id = null ) : string | Renders and returns a template. | |
renderSubTemplate ( string $template, mixed $compile_id, $data, integer $parent_scope ) : void | Template code runtime function to get subtemplate content | |
setVariable ( string $var, mixed $value, integer $scope ) : void | Assigns $value to the variale $var. |
public __construct ( Box\Brainy\Brainy $brainyInstance, boolean | void $useRootScope = false ) | ||
$brainyInstance | Box\Brainy\Brainy | |
$useRootScope | boolean | void | Whether to clone data from the root scope |
public assertIsNotStrict ( string $reason ) : void | ||
$reason | string | |
Résultat | void |
public bool $strict_mode | ||
Résultat | boolean |
public string $template_resource | ||
Résultat | string |