Exponent v2.7.2

basetemplate

Base Template class

Tags
subpackage

Template

Table of Contents

$module  : mixed
$tpl  : mixed
$view  : mixed
$viewdir  : mixed
$viewfile  : mixed
__construct()  : mixed
__get()  : null
Generic magic method
__isset()  : bool
Generic magic method
__set()  : mixed
Generic magic method We MUST create/set non-existing properties for Exponent code to work
__unset()  : mixed
Generic magic method
assign()  : mixed
Assign a variable to the template.
output()  : mixed
Render the template and echo it to the screen.
register_permissions()  : mixed
render()  : bool|mixed|string
Render the template and return the result to the caller.

Properties

Methods

__construct()

public __construct(mixed $item_type, mixed $item_dir[, mixed $view = "Default" ]) : mixed
Parameters
$item_type : mixed
$item_dir : mixed
$view : mixed = "Default"
Return values
mixed

__get()

Generic magic method

public __get( $property) : null
Parameters
$property :
Return values
null

__isset()

Generic magic method

public __isset( $property) : bool
Parameters
$property :
Return values
bool

__set()

Generic magic method We MUST create/set non-existing properties for Exponent code to work

public __set( $property,  $value) : mixed
Parameters
$property :
$value :
Return values
mixed

__unset()

Generic magic method

public __unset( $property) : mixed
Parameters
$property :
Return values
mixed

assign()

Assign a variable to the template.

public assign(string|array<string|int, mixed> $var[, mixed $val = null ]) : mixed
Parameters
$var : string|array<string|int, mixed>

The name of the variable - how it will be referenced inside the Smarty code

$val : mixed = null

The value of the variable.

Return values
mixed

output()

Render the template and echo it to the screen.

public output() : mixed
Return values
mixed

register_permissions()

public register_permissions(mixed $perms, mixed $locs) : mixed
Parameters
$perms : mixed
$locs : mixed
Return values
mixed

render()

Render the template and return the result to the caller.

public render() : bool|mixed|string
Tags
throws
Exception
Return values
bool|mixed|string

Search results