GXSmarty
extends Smarty
in package
Table of Contents
- $devEnvironmentEnabled : bool|mixed|null
- __construct() : mixed
- GXSmarty constructor.
- createTemplate() : object
- creates a template object
- safeAssign() : void
- Safely assigns the key and value to smarty.
- trigger_error() : mixed
- trigger Smarty error
- _getGambioUsermodFilePath() : string
- This method checks if a USERMOD of the given template exists and replaces it with the USERMOD
- isDevEnvironmentEnabled() : mixed
- setupDevEnvironment() : mixed
- Configure Smarty in order to show more detailed information about the Smarty Blocks
Properties
$devEnvironmentEnabled
protected
static bool|mixed|null
$devEnvironmentEnabled
Methods
__construct()
GXSmarty constructor.
public
__construct() : mixed
Return values
mixed —createTemplate()
creates a template object
public
createTemplate(string $template[, mixed $cache_id = null ][, mixed $compile_id = null ][, object $parent = null ][, bool $do_clone = true ]) : object
Parameters
- $template : string
-
the resource handle of the template file
- $cache_id : mixed = null
-
cache id to be used with this template
- $compile_id : mixed = null
-
compile id to be used with this template
- $parent : object = null
-
next higher level of Smarty variables
- $do_clone : bool = true
-
flag is Smarty object shall be cloned
Return values
object —template object
safeAssign()
Safely assigns the key and value to smarty.
public
safeAssign(string $key, mixed $value) : void
Safely means that if the key is already used, the value will be appended instead of replaced.
Parameters
- $key : string
- $value : mixed
Return values
void —trigger_error()
trigger Smarty error
public
trigger_error(string $error_msg[, int $error_type = E_USER_WARNING ]) : mixed
Parameters
- $error_msg : string
- $error_type : int = E_USER_WARNING
Return values
mixed —_getGambioUsermodFilePath()
This method checks if a USERMOD of the given template exists and replaces it with the USERMOD
protected
_getGambioUsermodFilePath( $p_template) : string
Parameters
Return values
string —isDevEnvironmentEnabled()
protected
isDevEnvironmentEnabled() : mixed
Return values
mixed —setupDevEnvironment()
Configure Smarty in order to show more detailed information about the Smarty Blocks
protected
setupDevEnvironment() : mixed