CRM_Core_Smarty
class CRM_Core_Smarty extends Smarty
Constants
PRINT_PAGE |
|
PRINT_SNIPPET |
|
PRINT_PDF |
|
PRINT_NOFORM |
|
PRINT_QFKEY |
|
PRINT_JSON |
|
Methods
__construct()
Class constructor.
static
singleton()
Static instance provider.
bool|mixed|string
fetch(string $resource_name, string $cache_id = NULL, string $compile_id = NULL, bool $display = FALSE)
Executes & returns or displays the template results
bool|mixed|string
fetchWith(string $resource_name, array $vars)
Fetch a template (while using certain variables)
appendValue(string $name, $value)
No description
clearTemplateVars()
No description
static
registerStringResource()
No description
addTemplateDir($path)
No description
pushScope(array $vars)
Temporarily assign a list of variables.
popScope()
Remove any values that were previously pushed.
assignAll(array $vars)
No description
Details
at line 89
CRM_Core_Smarty
__construct()
Class constructor.
at line 175
static
singleton()
Static instance provider.
Method providing static instance of SmartTemplate, as in Singleton pattern.
at line 195
bool|mixed|string
fetch(string $resource_name, string $cache_id = NULL, string $compile_id = NULL, bool $display = FALSE)
Executes & returns or displays the template results
at line 216
bool|mixed|string
fetchWith(string $resource_name, array $vars)
Fetch a template (while using certain variables)
at line 234
appendValue(string $name, $value)
at line 246
clearTemplateVars()
at line 255
static
registerStringResource()
at line 263
addTemplateDir($path)
at line 290
CRM_Core_Smarty
pushScope(array $vars)
Temporarily assign a list of variables.
at line 309
CRM_Core_Smarty
popScope()
Remove any values that were previously pushed.