CRM_Core_CodeGen_Util_Template
in package
Class CRM_Core_CodeGen_Util_Template
Table of Contents
Properties
- $beautifier : mixed
- $beautify : bool
- $filetype : mixed
- $smarty : mixed
Methods
- __construct() : mixed
- assign() : mixed
- fetch() : string
- Fetch via Smarty.
- fetchConcat() : string
- Fetch multiple templates - and concatenate them.
- getSmarty() : Smarty
- run() : mixed
- Run template generator.
- runConcat() : mixed
Properties
$beautifier
protected
mixed
$beautifier
$beautify
protected
bool
$beautify
$filetype
protected
mixed
$filetype
$smarty
protected
mixed
$smarty
Methods
__construct()
public
__construct(string $filetype[, bool $beautify = TRUE ]) : mixed
Parameters
- $filetype : string
- $beautify : bool = TRUE
assign()
public
assign(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed
fetch()
Fetch via Smarty.
public
fetch(string $infile) : string
Parameters
- $infile : string
Return values
stringfetchConcat()
Fetch multiple templates - and concatenate them.
public
fetchConcat(array<string|int, mixed> $inputs) : string
Parameters
- $inputs : array<string|int, mixed>
-
Template filenames.
Tags
Return values
stringgetSmarty()
public
getSmarty() : Smarty
Return values
Smartyrun()
Run template generator.
public
run(string $infile, string $outpath) : mixed
Parameters
- $infile : string
-
Filename of the template, without a path.
- $outpath : string
-
Full path to the desired output file.
runConcat()
public
runConcat(array<string|int, mixed> $inputs, string $outpath) : mixed
Parameters
- $inputs : array<string|int, mixed>
-
Template filenames.
- $outpath : string
-
Full path to the desired output file.