Template
Definition at line 10 of file tpl.class.php.
◆ __get()
Get a variable, with a convenient way $tpl->name
- Parameters
-
- Returns
- mixed|null The value or null if not existing
- See also
- get
Definition at line 219 of file tpl.class.php.
◆ __set()
Set a variable, with a convenient way $tpl->name = $value
- Parameters
-
string | $name | Name to set |
mixed | $value | Value to set |
- See also
- set
Definition at line 230 of file tpl.class.php.
◆ __toString()
◆ _fetch()
Make really the fetch
- Parameters
-
string | $file | Template file path |
- Returns
- string Content fetched
Definition at line 155 of file tpl.class.php.
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ fetch()
fetch |
( |
array |
$prm = array() | ) |
|
Fetch the template
- Parameters
-
array | $prm | Array parameter for retrieve the tpl file (exemple: used to force the tpl extension via tplExt) return string The result fetched |
- See also
- file::nyroExists
Definition at line 83 of file tpl.class.php.
◆ findTpl()
findTpl |
( |
array |
$prm, |
|
|
array |
$name |
|
) |
| |
|
protected |
Find the template file
- Parameters
-
- Returns
- string|null The first template file path found or null
Definition at line 172 of file tpl.class.php.
◆ get()
Get a variable value for the fetch
- Parameters
-
- Returns
- mixed|null The value or null if not existing
Definition at line 45 of file tpl.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getResponseProxy()
◆ render()
Render an other tpl. To be used inside the tpl
- Parameters
-
Definition at line 188 of file tpl.class.php.
◆ reset()
◆ set()
Set a variable for the fecth
- Parameters
-
string | $name | Variable name |
mixed | $value | The value |
Definition at line 55 of file tpl.class.php.
◆ setA()
Set multiple variables using an array
- Parameters
-
- See also
- set
Definition at line 65 of file tpl.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ $cfg
◆ $responseProxy
◆ $vars
The documentation for this class was generated from the following file: