clearVariables()

clearVariables() – Clears the variables

Synopsis

require_once 'HTML/Template/Sigma.php';

void HTML_Template_Sigma::clearVariables ( void )

Description

Global variables are not affected, only the ones set via setVariable(). The method is useful when you add a lot of variables via setVariable() and are not sure whether all of them appear in the block you parse(). If you clear the variables after parse(), you don't risk them suddenly showing up in other blocks.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Checks if the block exists in the template (Previous) Returns a textual error message for an error code (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.