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 85
CRM_Core_Smarty __construct()

Class constructor.

Return Value

CRM_Core_Smarty

at line 169
static singleton()

Static instance provider.

Method providing static instance of SmartTemplate, as in Singleton pattern.

at line 189
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

Parameters

string $resource_name
string $cache_id
string $compile_id
bool $display

Return Value

bool|mixed|string

at line 210
bool|mixed|string fetchWith(string $resource_name, array $vars)

Fetch a template (while using certain variables)

Parameters

string $resource_name
array $vars (string $name => mixed $value) variables to export to Smarty.

Return Value

bool|mixed|string

Exceptions

Exception

at line 228
appendValue(string $name, $value)

Parameters

string $name
$value

at line 240
clearTemplateVars()

at line 249
static registerStringResource()

at line 257
addTemplateDir($path)

Parameters

$path

at line 284
CRM_Core_Smarty pushScope(array $vars)

Temporarily assign a list of variables.

Parameters

array $vars (string $name => mixed $value).

Return Value

CRM_Core_Smarty

See also

popScope

at line 303
CRM_Core_Smarty popScope()

Remove any values that were previously pushed.

Return Value

CRM_Core_Smarty

See also

pushScope

at line 313
CRM_Core_Smarty assignAll(array $vars)

Parameters

array $vars (string $name => mixed $value).

Return Value

CRM_Core_Smarty