ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
HTML_Template_ITX Class Reference

Integrated Template Extension - ITX With this class you get the full power of the phplib template class. More...

+ Inheritance diagram for HTML_Template_ITX:
+ Collaboration diagram for HTML_Template_ITX:

Public Member Functions

 __construct (string $root='')
 Builds some complex regexps and calls the constructor of the parent class. More...
 
 replaceBlock (string $block, string $template, bool $keep_content=false)
 Replaces an existing block with new content. More...
 
 addBlock (string $placeholder, string $blockname, string $template)
 Adds a block to the template changing a variable placeholder to a block placeholder. More...
 
 addBlockfile (string $placeholder, string $blockname, string $filename)
 Adds a block taken from a file to the template changing a variable placeholder to a block placeholder. More...
 
 removeBlockData (string $block)
 Recursively removes all data assiciated with a block, including all inner blocks. More...
 
 blockExists (string $blockname)
 Checks wheter a block exists. More...
 
 buildFunctionlist ()
 Builds a functionlist from the template. More...
 
 getValue (string $code, $delimiter)
 Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '. More...
 
 deleteFromBlockvariablelist (string $block, $variables)
 Deletes one or many variables from the block variable list. More...
 
 updateBlockvariablelist (string $block)
 Updates the variable list of a block. More...
 
 findPlaceholderBlocks (string $variable)
 Returns an array of blocknames where the given variable placeholder is used. More...
 
 warning (string $message, string $file='', int $line=0)
 Handles warnings, saves them to $warn and prints them or calls die() depending on the flags. More...
 
- Public Member Functions inherited from HTML_Template_IT
 __construct (string $root='', array $options=null)
 Builds some complex regular expressions and optinally sets the file root directory. More...
 
 setOption (string $option, $value)
 Sets the option for the template class. More...
 
 setOptions (array $options)
 Sets the options for the template class. More...
 
 show (string $block=self::IT_DEFAULT_BLOCK)
 Print a certain block with all replacements done. More...
 
 get (string $block=self::IT_DEFAULT_BLOCK)
 Returns a block with all replacements done. More...
 
 parse (string $block=self::IT_DEFAULT_BLOCK, bool $flag_recursion=false)
 Parses the given block. More...
 
 parseCurrentBlock ()
 Parses the current block. More...
 
 setVariable ($variable, $value='')
 Sets a variable value. More...
 
 setCurrentBlock (string $block=self::IT_DEFAULT_BLOCK)
 Sets the name of the current block that is the block where variables are added. More...
 
 touchBlock (string $block)
 Preserves an empty block even if removeEmptyBlocks is true. More...
 
 free ()
 Clears all datafields of the object. More...
 
 setTemplate (string $template, bool $removeUnknownVariables=true, bool $removeEmptyBlocks=true)
 Sets the template. More...
 
 loadTemplatefile (string $filename, bool $removeUnknownVariables=true, bool $removeEmptyBlocks=true)
 Reads a template file from the disk. More...
 
 setRoot (string $root)
 Sets the file root. More...
 
 buildBlockvariablelist ()
 Build a list of all variables within of a block. More...
 
 findBlocks (string $string)
 Recusively builds a list of all blocks within the template. More...
 
 getFile (string $filename)
 Reads a file from disk and returns its content. More...
 
 _addPregDelimiters (string $str)
 Adds delimiters to a string, so it can be used as a pattern in preg_* functions. More...
 
 _preserveOpeningDelimiter (string $str)
 Replaces an opening delimiter by a special string. More...
 
 errorMessage (int $value, string $blockname='')
 Return a textual error message for a IT error code. More...
 

Data Fields

array $warn = []
 Array with all warnings. More...
 
bool $printWarning = false
 Print warnings? More...
 
bool $haltOnWarning = false
 Call die() on warning? More...
 
string $checkblocknameRegExp = ''
 RegExp used to test for a valid blockname. More...
 
string $functionPrefix = 'func_'
 Functionnameprefix used when searching function calls in the template. More...
 
string $functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*'
 Functionname RegExp. More...
 
string $functionRegExp = ''
 RegExp used to grep function calls in the template. More...
 
array $functions = []
 List of functions found in the template. More...
 
array $callback = []
 List of callback functions specified by the user. More...
 
- Data Fields inherited from HTML_Template_IT
const IT_OK = 1
 
const IT_ERROR = -1
 
const IT_TPL_NOT_FOUND = -2
 
const IT_BLOCK_NOT_FOUND = -3
 
const IT_BLOCK_DUPLICATE = -4
 
const IT_UNKNOWN_OPTION = -6
 
const IT_DEFAULT_BLOCK = '__global__'
 
array $err = []
 Contains the error objects. More...
 
bool $clearCache = false
 Clear cache on get()? More...
 
string $openingDelimiter = '{'
 First character of a variable placeholder ( _{_VARIABLE} ). More...
 
string $closingDelimiter = '}'
 Last character of a variable placeholder ( {VARIABLE_}_ ). More...
 
string $blocknameRegExp = '[\.0-9A-Za-z_-]+'
 RegExp matching a block in the template. More...
 
string $variablenameRegExp = '[\.0-9A-Za-z_-]+'
 RegExp matching a variable placeholder in the template. More...
 
string $variablesRegExp = ''
 RegExp used to find variable placeholder, filled by the constructor. More...
 
string $removeVariablesRegExp = ''
 RegExp used to strip unused variable placeholder. More...
 
bool $removeUnknownVariables = true
 Controls the handling of unknown variables, default is remove. More...
 
bool $removeEmptyBlocks = true
 Controls the handling of empty blocks, default is remove. More...
 
string $blockRegExp = ''
 RegExp used to find blocks an their content, filled by the constructor. More...
 
string $currentBlock = self::IT_DEFAULT_BLOCK
 Name of the current block. More...
 
string $template = ''
 Content of the template. More...
 
array $blocklist = []
 Array of all blocks and their content. More...
 
array $blockdata = []
 Array with the parsed content of a block. More...
 
array $blockvariables = []
 Array of variables in a block. More...
 
array $blockparents = []
 Array of block parents. More...
 
array $blockinner = []
 Array of inner blocks of a block. More...
 
array $touchedBlocks = []
 List of blocks to preverse even if they are "empty". More...
 
array $variableCache = []
 Variable cache. More...
 
bool $clearCacheOnParse = false
 Clear the variable cache on parse? If you're not an expert just leave the default false. More...
 
string $fileRoot = ''
 Root directory for all file operations. More...
 
bool $flagBlocktrouble = false
 Internal flag indicating that a blockname was used multiple times. More...
 
bool $flagGlobalParsed = false
 Flag indicating that the global block was parsed. More...
 
bool $flagCacheTemplatefile = true
 EXPERIMENTAL! FIXME! Flag indication that a template gets cached. More...
 
string $lastTemplatefile = ''
 EXPERIMENTAL! FIXME! More...
 
array $_options
 $_options['preserve_data'] Whether to substitute variables and remove empty placeholders in data passed through setVariable (see also bugs #20199, #21951). More...
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from HTML_Template_IT
 init ()
 Clears all datafields of the object and rebuild the internal blocklist LoadTemplatefile() and setTemplate() automatically call this function when a new template is given. More...
 

Additional Inherited Members

- Protected Attributes inherited from HTML_Template_IT
array string $real_filename = ''
 Holds the real template file name. More...
 

Detailed Description

Integrated Template Extension - ITX With this class you get the full power of the phplib template class.

You may have one file with blocks in it but you have as well one main file and multiple files one for each block. This is quite usefull when you have user configurable websites. Using blocks not in the main template allows you to modify some parts of your layout easily. Note that you can replace an existing block and add new blocks at runtime. Adding new blocks means changing a variable placeholder to a block.

Author
Ulf Wendel uw@ne.nosp@m.tuse.nosp@m..de

Definition at line 31 of file ITX.php.

Constructor & Destructor Documentation

◆ __construct()

HTML_Template_ITX::__construct ( string  $root = '')

Builds some complex regexps and calls the constructor of the parent class.

Make sure that you call this constructor if you derive your own template class from this one.

Exceptions
ilTemplateException

Definition at line 86 of file ITX.php.

References ILIAS\GlobalScreen\Provider\__construct().

87  {
88  $this->checkblocknameRegExp = '@' . $this->blocknameRegExp . '@';
89  $this->functionRegExp = '@' . $this->functionPrefix . '(' .
90  $this->functionnameRegExp . ')\s*\(@sm';
91 
92  parent::__construct($root);
93  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ addBlock()

HTML_Template_ITX::addBlock ( string  $placeholder,
string  $blockname,
string  $template 
)

Adds a block to the template changing a variable placeholder to a block placeholder.

Add means "replace a variable placeholder by a new block". This is different to PHPLibs templates. The function loads a block, creates a handle for it and assigns it to a certain variable placeholder. To to the same with PHPLibs templates you would call set_file() to create the handle and parse() to assign the parsed block to a variable. By this PHPLibs templates assume that you tend to assign a block to more than one one placeholder. To assign a parsed block to more than only the placeholder you specify in this function you have to use a combination of getBlock() and setVariable(). As no updates to cached data is necessary addBlock() and addBlockfile() are rather "cheap" meaning quick operations. The block content must not start with and end with this would cause overhead and produce an error.

Exceptions
ilTemplateException

Definition at line 173 of file ITX.php.

References $index, deleteFromBlockvariablelist(), HTML_Template_IT\findBlocks(), findPlaceholderBlocks(), and updateBlockvariablelist().

Referenced by ilTemplate\addBlockFile(), and addBlockfile().

173  : bool
174  {
175  // Don't trust any user even if it's a programmer or yourself...
176  if ($placeholder === '') {
177  throw new ilTemplateException('No variable placeholder given.');
178  }
179 
180  if ($blockname === '' ||
181  !preg_match($this->checkblocknameRegExp, $blockname)) {
182  throw new ilTemplateException("No or invalid blockname '$blockname' given.");
183  }
184 
185  if ($template === '') {
186  throw new ilTemplateException('No block content given.');
187  }
188 
189  if (isset($this->blocklist[$blockname])) {
190  throw new ilTemplateException('The block ' . $blockname . ' already exists.');
191  }
192 
193  // find out where to insert the new block
194  $parents = $this->findPlaceholderBlocks($placeholder);
195  if (count($parents) === 0) {
196  throw (new ilTemplateException("The variable placeholder" .
197  " '$placeholder' was not found in the template."));
198  }
199 
200  if (count($parents) > 1) {
201  $msg = '';
202  foreach ($parents as $index => $parent) {
203  $msg .= (isset($parents[$index + 1])) ?
204  "$parent, " : $parent;
205  }
206 
207  throw new ilTemplateException("The variable placeholder " . "'$placeholder'" . " must be unique, found in multiple blocks '$msg'.");
208  }
209 
210  $template = "<!-- BEGIN $blockname -->" . $template . "<!-- END $blockname -->";
211  $this->findBlocks($template);
212  if ($this->flagBlocktrouble) {
213  return false; // findBlocks() already throws an exception
214  }
215  $this->blockinner[$parents[0]][] = $blockname;
216  $this->blocklist[$parents[0]] = preg_replace(
217  '@' . $this->openingDelimiter . $placeholder .
218  $this->closingDelimiter . '@',
219  $this->openingDelimiter . '__' . $blockname . '__' .
220  $this->closingDelimiter,
221  $this->blocklist[$parents[0]]
222  );
223 
224  $this->deleteFromBlockvariablelist($parents[0], $placeholder);
225  $this->updateBlockvariablelist($blockname);
226 
227  return true;
228  }
string $template
Content of the template.
Definition: IT.php:175
$index
Definition: metadata.php:145
findBlocks(string $string)
Recusively builds a list of all blocks within the template.
Definition: IT.php:705
updateBlockvariablelist(string $block)
Updates the variable list of a block.
Definition: ITX.php:381
findPlaceholderBlocks(string $variable)
Returns an array of blocknames where the given variable placeholder is used.
Definition: ITX.php:416
deleteFromBlockvariablelist(string $block, $variables)
Deletes one or many variables from the block variable list.
Definition: ITX.php:364
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addBlockfile()

HTML_Template_ITX::addBlockfile ( string  $placeholder,
string  $blockname,
string  $filename 
)

Adds a block taken from a file to the template changing a variable placeholder to a block placeholder.

Exceptions
ilTemplateException

Definition at line 235 of file ITX.php.

References addBlock(), and HTML_Template_IT\getFile().

235  : bool
236  {
237  return $this->addBlock($placeholder, $blockname, $this->getFile($filename));
238  }
getFile(string $filename)
Reads a file from disk and returns its content.
Definition: IT.php:750
$filename
Definition: buildRTE.php:78
addBlock(string $placeholder, string $blockname, string $template)
Adds a block to the template changing a variable placeholder to a block placeholder.
Definition: ITX.php:173
+ Here is the call graph for this function:

◆ blockExists()

HTML_Template_ITX::blockExists ( string  $blockname)

Checks wheter a block exists.

Definition at line 264 of file ITX.php.

264  : bool
265  {
266  return isset($this->blocklist[$blockname]);
267  }

◆ buildFunctionlist()

HTML_Template_ITX::buildFunctionlist ( )

Builds a functionlist from the template.

Definition at line 272 of file ITX.php.

References HTML_Template_IT\$closingDelimiter, HTML_Template_IT\$template, and getValue().

Referenced by ilTemplate\init(), and init().

272  : void
273  {
274  $this->functions = [];
275 
277  $num = 0;
278 
279  while (preg_match($this->functionRegExp, $template, $regs)) {
280  $pos = strpos($template, $regs[0]);
281  $template = substr($template, $pos + strlen($regs[0]));
282 
283  $head = $this->getValue($template, ')');
284  $args = [];
285 
286  $search = $regs[0] . $head . ')';
287 
288  $replace = $this->openingDelimiter .
289  '__function' . $num . '__' .
291 
292  $this->template = str_replace($search, $replace, $this->template);
293  $template = str_replace($search, $replace, $template);
294 
295  while ($head !== '' && $args2 = $this->getValue($head, ',')) {
296  $arg2 = trim($args2);
297  $args[] = ('"' === $arg2[0] || "'" === $arg2[0]) ?
298  substr($arg2, 1, -1) : $arg2;
299  if ($arg2 === $head) {
300  break;
301  }
302  $head = substr($head, strlen($arg2) + 1);
303  }
304 
305  $this->functions[$num++] = [
306  'name' => $regs[1],
307  'args' => $args
308  ];
309  }
310  }
string $closingDelimiter
Last character of a variable placeholder ( {VARIABLE_}_ ).
Definition: IT.php:125
string $template
Content of the template.
Definition: IT.php:175
getValue(string $code, $delimiter)
Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " ...
Definition: ITX.php:317
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteFromBlockvariablelist()

HTML_Template_ITX::deleteFromBlockvariablelist ( string  $block,
  $variables 
)

Deletes one or many variables from the block variable list.

Parameters
array | string$variablesName of one variable or array of variables ( array ( name => true ) ) to be stripped.

Definition at line 364 of file ITX.php.

Referenced by addBlock().

364  : void
365  {
366  if (!is_array($variables)) {
367  $variables = [$variables => true];
368  }
369 
370  reset($this->blockvariables[$block]);
371  foreach ($this->blockvariables[$block] as $varname => $val) {
372  if (isset($variables[$varname])) {
373  unset($this->blockvariables[$block][$varname]);
374  }
375  }
376  }
+ Here is the caller graph for this function:

◆ findPlaceholderBlocks()

HTML_Template_ITX::findPlaceholderBlocks ( string  $variable)

Returns an array of blocknames where the given variable placeholder is used.

Definition at line 416 of file ITX.php.

Referenced by addBlock().

416  : array
417  {
418  $parents = [];
419  reset($this->blocklist);
420  foreach ($this->blocklist as $blockname => $content) {
421  reset($this->blockvariables[$blockname]);
422  foreach ($this->blockvariables[$blockname] as $varname => $val) {
423  if ($variable === $varname) {
424  $parents[] = $blockname;
425  }
426  }
427  }
428 
429  return $parents;
430  }
+ Here is the caller graph for this function:

◆ getValue()

HTML_Template_ITX::getValue ( string  $code,
  $delimiter 
)

Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '.

Parameters
array | string$delimiter

Definition at line 317 of file ITX.php.

References $i.

Referenced by buildFunctionlist().

317  : string
318  {
319  if ($code === '') {
320  return '';
321  }
322 
323  if (!is_array($delimiter)) {
324  $delimiter = [$delimiter => true];
325  }
326 
327  $len = strlen($code);
328  $enclosed = false;
329  $enclosed_by = '';
330 
331  if (isset($delimiter[$code[0]])) {
332  $i = 1;
333  } else {
334  for ($i = 0; $i < $len; ++$i) {
335  $char = $code[$i];
336 
337  if (
338  ($char === '"' || $char === "'") &&
339  ($char === $enclosed_by || '' === $enclosed_by) &&
340  (0 === $i || ($i > 0 && '\\' !== $code[$i - 1]))
341  ) {
342  if (!$enclosed) {
343  $enclosed_by = $char;
344  } else {
345  $enclosed_by = "";
346  }
347  $enclosed = !$enclosed;
348  }
349 
350  if (!$enclosed && isset($delimiter[$char])) {
351  break;
352  }
353  }
354  }
355 
356  return substr($code, 0, $i);
357  }
$i
Definition: metadata.php:41
+ Here is the caller graph for this function:

◆ init()

HTML_Template_ITX::init ( )
protected

Definition at line 95 of file ITX.php.

References HTML_Template_IT\buildBlockvariablelist(), buildFunctionlist(), HTML_Template_IT\findBlocks(), and HTML_Template_IT\free().

95  : void
96  {
97  $this->free();
98  $this->buildFunctionlist();
99  $this->findBlocks($this->template);
100  // we don't need it any more
101  $this->template = '';
102  $this->buildBlockvariablelist();
103  }
findBlocks(string $string)
Recusively builds a list of all blocks within the template.
Definition: IT.php:705
free()
Clears all datafields of the object.
Definition: IT.php:596
buildBlockvariablelist()
Build a list of all variables within of a block.
Definition: IT.php:686
buildFunctionlist()
Builds a functionlist from the template.
Definition: ITX.php:272
+ Here is the call graph for this function:

◆ removeBlockData()

HTML_Template_ITX::removeBlockData ( string  $block)

Recursively removes all data assiciated with a block, including all inner blocks.

Definition at line 243 of file ITX.php.

Referenced by replaceBlock().

243  : void
244  {
245  if (isset($this->blockinner[$block])) {
246  foreach ($this->blockinner[$block] as $inner) {
247  $this->removeBlockData($inner);
248  }
249 
250  unset($this->blockinner[$block]);
251  }
252 
253  unset(
254  $this->blocklist[$block],
255  $this->blockdata[$block],
256  $this->blockvariables[$block],
257  $this->touchedBlocks[$block]
258  );
259  }
removeBlockData(string $block)
Recursively removes all data assiciated with a block, including all inner blocks. ...
Definition: ITX.php:243
+ Here is the caller graph for this function:

◆ replaceBlock()

HTML_Template_ITX::replaceBlock ( string  $block,
string  $template,
bool  $keep_content = false 
)

Replaces an existing block with new content.

This function will replace a block of the template and all blocks contained in the replaced block and add a new block insted, means you can dynamically change your template. Note that changing the template structure violates one of the IT[X] development goals. I've tried to write a simple to use template engine supporting blocks. In contrast to other systems IT[X] analyses the way you've nested blocks and knows which block belongs into another block. The nesting information helps to make the API short and simple. Replacing blocks does not only mean that IT[X] has to update the nesting information (relatively time consumpting task) but you have to make sure that you do not get confused due to the template change itself.

Parameters
bool$keep_contenttrue if the new block inherits the content of the old block
Exceptions
ilTemplateException

Definition at line 121 of file ITX.php.

References HTML_Template_IT\$blockdata, HTML_Template_IT\buildBlockvariablelist(), HTML_Template_IT\findBlocks(), and removeBlockData().

121  : bool
122  {
123  if (!isset($this->blocklist[$block])) {
124  throw new ilTemplateException("The block " . "'$block'" . " does not exist in the template and thus it can't be replaced.");
125  }
126 
127  if ($template === '') {
128  throw new ilTemplateException('No block content given.');
129  }
130 
131  if ($keep_content) {
132  $blockdata = $this->blockdata[$block];
133  }
134 
135  // remove all kinds of links to the block / data of the block
136  $this->removeBlockData($block);
137 
138  $template = "<!-- BEGIN $block -->" . $template . "<!-- END $block -->";
139  $parents = $this->blockparents[$block];
140  $this->findBlocks($template);
141  $this->blockparents[$block] = $parents;
142 
143  // KLUDGE: rebuild the list for all block - could be done faster
144  $this->buildBlockvariablelist();
145 
146  if ($keep_content) {
147  $this->blockdata[$block] = $blockdata;
148  }
149 
150  return true;
151  }
string $template
Content of the template.
Definition: IT.php:175
removeBlockData(string $block)
Recursively removes all data assiciated with a block, including all inner blocks. ...
Definition: ITX.php:243
findBlocks(string $string)
Recusively builds a list of all blocks within the template.
Definition: IT.php:705
buildBlockvariablelist()
Build a list of all variables within of a block.
Definition: IT.php:686
array $blockdata
Array with the parsed content of a block.
Definition: IT.php:185
+ Here is the call graph for this function:

◆ updateBlockvariablelist()

HTML_Template_ITX::updateBlockvariablelist ( string  $block)

Updates the variable list of a block.

Definition at line 381 of file ITX.php.

Referenced by addBlock().

381  : void
382  {
383  preg_match_all(
384  $this->variablesRegExp,
385  $this->blocklist[$block],
386  $regs
387  );
388 
389  if (count($regs[1]) !== 0) {
390  foreach ($regs[1] as $var) {
391  $this->blockvariables[$block][$var] = true;
392  }
393  } else {
394  $this->blockvariables[$block] = [];
395  }
396 
397  // check if any inner blocks were found
398  if (isset($this->blockinner[$block]) &&
399  is_array($this->blockinner[$block]) &&
400  count($this->blockinner[$block]) > 0
401  ) {
402  /*
403  * loop through inner blocks, registering the variable
404  * placeholders in each
405  */
406  foreach ($this->blockinner[$block] as $childBlock) {
407  $this->updateBlockvariablelist($childBlock);
408  }
409  }
410  }
updateBlockvariablelist(string $block)
Updates the variable list of a block.
Definition: ITX.php:381
+ Here is the caller graph for this function:

◆ warning()

HTML_Template_ITX::warning ( string  $message,
string  $file = '',
int  $line = 0 
)

Handles warnings, saves them to $warn and prints them or calls die() depending on the flags.

Definition at line 436 of file ITX.php.

References $message.

436  : void
437  {
438  $message = sprintf(
439  'HTML_Template_ITX Warning: %s [File: %s, Line: %d]',
440  $message,
441  $file,
442  $line
443  );
444 
445  $this->warn[] = $message;
446 
447  if ($this->printWarning) {
448  print $message;
449  }
450 
451  if ($this->haltOnWarning) {
452  die($message);
453  }
454  }
$message
Definition: xapiexit.php:32

Field Documentation

◆ $callback

array HTML_Template_ITX::$callback = []

List of callback functions specified by the user.

Definition at line 77 of file ITX.php.

◆ $checkblocknameRegExp

string HTML_Template_ITX::$checkblocknameRegExp = ''

RegExp used to test for a valid blockname.

Definition at line 51 of file ITX.php.

◆ $functionnameRegExp

string HTML_Template_ITX::$functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*'

Functionname RegExp.

Definition at line 61 of file ITX.php.

◆ $functionPrefix

string HTML_Template_ITX::$functionPrefix = 'func_'

Functionnameprefix used when searching function calls in the template.

Definition at line 56 of file ITX.php.

◆ $functionRegExp

string HTML_Template_ITX::$functionRegExp = ''

RegExp used to grep function calls in the template.

The variable gets set by the constructor.

Definition at line 67 of file ITX.php.

◆ $functions

array HTML_Template_ITX::$functions = []

List of functions found in the template.

Definition at line 72 of file ITX.php.

◆ $haltOnWarning

bool HTML_Template_ITX::$haltOnWarning = false

Call die() on warning?

Definition at line 46 of file ITX.php.

◆ $printWarning

bool HTML_Template_ITX::$printWarning = false

Print warnings?

Definition at line 41 of file ITX.php.

◆ $warn

array HTML_Template_ITX::$warn = []

Array with all warnings.

Definition at line 36 of file ITX.php.


The documentation for this class was generated from the following file: