Documentation

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

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
string

fetchConcat()

Fetch multiple templates - and concatenate them.

public fetchConcat(array<string|int, mixed> $inputs) : string
Parameters
$inputs : array<string|int, mixed>

Template filenames.

Tags
see
runConcat
Return values
string

getSmarty()

public getSmarty() : Smarty
Return values
Smarty

run()

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.


        
On this page

Search results