Layout is a template generator. More...
Collaboration diagram for Layout:Public Member Functions | |
| __construct ($caneva="", $action=null, $template="[OUT]") | |
| setBlockCorresp ($p_nom_block, $p_nom_modele, $p_nom=NULL) | |
| eSetBlockData ($p_nom_block, $data=NULL) | |
| setBlockData ($p_nom_block, $data=NULL) | |
| getBlockData ($p_nom_block) | |
| setEncoding ($enc) | |
| set ($tag, $val) | |
| rSet ($tag, $val) | |
| xSet ($tag, $val) | |
| eSet ($tag, $val) | |
| get ($tag) | |
| GenJsCode ($showlog, $onlylog=false) | |
| gen () | |
Data Fields | |
| $encoding = "" | |
| $noparse = false | |
| $action = null | |
Protected Member Functions | |
| SetBlock ($name, $block) | |
| ParseBlock (&$out) | |
| TestIf ($name, $block, $not=false) | |
| ParseIf (&$out) | |
| ParseZone (&$out) | |
| ParseKey (&$out) | |
| execute ($appname, $actionargn) | |
| ParseRef (&$out) | |
| ParseText (&$out) | |
| Text ($s) | |
| GenJsRef () | |
| ParseJs (&$out) | |
| GenCssRef ($oldCompatibility=true) | |
| GenCssCode () | |
| ParseCss (&$out) | |
| parseApplicationParameters (&$out, $addIf) | |
| getRecursionCount ($class, $function) | |
| printRecursionCountError ($class, $function, $count) | |
Protected Attributes | |
| $corresp | |
| $data = null | |
| $rif = array() | |
| $rkey = array() | |
| $pkey = array() | |
| $zoneLevel = 0 | |
Layout is a template generator.
Layout Class can manage three kind of datas :
Definition at line 69 of file Class.Layout.php.
| __construct | ( | $caneva = "", |
|
$action = null, |
|||
$template = "[OUT]" |
|||
| ) |
construct layout to identify template
| string | $caneva | file path of the template |
| Action | $action | current action |
| string | $template | if no $caneva found or is empty use this template. |
Definition at line 115 of file Class.Layout.php.
| eSet | ( | $tag, | |
| $val | |||
| ) |
set key/value pair and XML entity encode
| string | $tag | the key to replace |
| string | $val | the value for the key |
Definition at line 418 of file Class.Layout.php.
Here is the call graph for this function:| eSetBlockData | ( | $p_nom_block, | |
$data = NULL |
|||
| ) |
set encoded data to fill a block
| string | $p_nom_block | block name |
| array | $data | data to fill the block |
Definition at line 176 of file Class.Layout.php.
Here is the call graph for this function:
|
protected |
| gen | ( | ) |
Generate text from template with data included
Definition at line 620 of file Class.Layout.php.
Here is the call graph for this function:
|
protected |
Definition at line 585 of file Class.Layout.php.
|
protected |
Definition at line 570 of file Class.Layout.php.
| GenJsCode | ( | $showlog, | |
$onlylog = false |
|||
| ) |
get js code for notification (internal usage)
| $showlog | ||
| bool | $onlylog |
Definition at line 501 of file Class.Layout.php.
|
protected |
Definition at line 482 of file Class.Layout.php.
| get | ( | $tag | ) |
return the value set for a key
| string | $tag |
Definition at line 430 of file Class.Layout.php.
| getBlockData | ( | $p_nom_block | ) |
return data set in block name
| string | $p_nom_block | block name |
Definition at line 218 of file Class.Layout.php.
|
protected |
Count number of execute() calls on the stack to detect infinite recursive loops
| string | $class | name to track |
| string | $function,/method | name to track |
Definition at line 685 of file Class.Layout.php.
|
protected |
Use application parameters like keys
| string | $out | current template |
| bool | $addIf | if true replace key with application parameters else use conditions |
Definition at line 658 of file Class.Layout.php.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 302 of file Class.Layout.php.
|
protected |
Definition at line 436 of file Class.Layout.php.
|
protected |
|
protected |
|
protected |
Print a recursion count error message and stop execution
| string | $class | name to display |
| string | $function,/method | name to display |
| int | $count | the call count that triggered the error |
Definition at line 717 of file Class.Layout.php.
| rSet | ( | $tag, | |
| $val | |||
| ) |
| set | ( | $tag, | |
| $val | |||
| ) |
add a simple key /value in template the key will be replaced by value when [KEY] is found in template
| string | $tag | |
| string | $val |
Definition at line 400 of file Class.Layout.php.
|
protected |
| setBlockCorresp | ( | $p_nom_block, | |
| $p_nom_modele, | |||
$p_nom = NULL |
|||
| ) |
set reference between array index and layout key
use these data
with the code
for template
| string | $p_nom_block | |
| string | $p_nom_modele | |
| string | $p_nom |
Definition at line 166 of file Class.Layout.php.
| setBlockData | ( | $p_nom_block, | |
$data = NULL |
|||
| ) |
set data to fill a block
| string | $p_nom_block | block name |
| array | $data | data to fill the block |
Definition at line 195 of file Class.Layout.php.
Here is the call graph for this function:| setEncoding | ( | $enc | ) |
define new encoding text default is utf-8
| string | $enc | encoding (only 'utf-8' is allowed) |
Definition at line 314 of file Class.Layout.php.
|
protected |
|
protected |
Definition at line 476 of file Class.Layout.php.
| xSet | ( | $tag, | |
| $val | |||
| ) |
| $action = null |
Definition at line 100 of file Class.Layout.php.
|
protected |
Definition at line 81 of file Class.Layout.php.
|
protected |
Definition at line 82 of file Class.Layout.php.
| $encoding = "" |
Definition at line 75 of file Class.Layout.php.
| $noparse = false |
Definition at line 80 of file Class.Layout.php.
|
protected |
Definition at line 94 of file Class.Layout.php.
|
protected |
Definition at line 86 of file Class.Layout.php.
|
protected |
Definition at line 90 of file Class.Layout.php.
|
protected |
Definition at line 96 of file Class.Layout.php.