/** * Returns one instance of the template object, using a singleton pattern * * @return object The template object */ public static function getInstance() { if (self::$objTemplate == null) { self::$objTemplate = new class_template(); } return self::$objTemplate; }
/** * */ public static function clear_all_filter() { self::$Functions = array(); }
/** * Managing access to the template object. Use ONLY this method to * get an instance! * * @return class_template */ public function getObjTemplate() { //Do we have to generate the object? if ($this->objTemplate == null) { $this->objTemplate = class_template::getInstance(); } return $this->objTemplate; }
/** * Creates backward-link * * @param string $strHref * * @return string */ private function getBackwardLink($strHref) { $strTemplateID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_backward_link", true); return $this->objTemplates->fillTemplate(array("href" => $strHref, "text" => $this->getLang("installer_prev")), $strTemplateID); }