/**
  * getInstance
  * This is a static function that sets up the class instance and stores it to the static variable. It will then return that instantiation in the future.
  *
  * @return object Returns the instantiated object
  */
 public static function getInstance()
 {
     if (!isset(self::$Instance)) {
         self::$Instance = new self();
     }
     return self::$Instance;
 }
 /**
  * Assign
  * This sets variables in the $Variables for use in the template files.
  *
  * @param Mixed $name The name of the variable to set. If it is an array, it will be used to detemine the depth.
  * @param Mixed $value The value of the variable to set. Can be any standard PHP variable value (i.e. string, boolean, integer, array, object)
  * @param Boolean $htmlescape Specify whether or not the templating system needs to escape the variable (Default to InterspireTemplate::$DefaultHtmlEscape)
  *
  * @return Void Doesn't return anything
  * @uses InterspireTemplate::Assign()
  */
 public function Assign($name, $value, $htmlescape = false, $prependAppendReplace = 0)
 {
     parent::Assign($name, $value, $htmlescape);
 }
Пример #3
0
 /**
  * Assign
  * This sets variables in the $Variables for use in the template files.
  *
  * @param Mixed $name The name of the variable to set. If it is an array, it will be used to detemine the depth.
  * @param Mixed $value The value of the variable to set. Can be any standard PHP variable value (i.e. string, boolean, integer, array, object)
  * @param Boolean $htmlescape Specify whether or not the templating system needs to escape the variable (Default to InterspireTemplate::$DefaultHtmlEscape)
  *
  * @return Void Doesn't return anything
  * @uses InterspireTemplate::Assign()
  */
 public function Assign($name, $value, $htmlescape = false)
 {
     parent::Assign($name, $value, $htmlescape);
 }