/** * get_instance method * * @return object $this */ public static function &get_instance() { if (!is_object(self::$_instance)) { self::$_instance = new self(); } // Merge variables self::$_instance->tpl_vars = array_merge(self::$_instance->tpl_vars, parent::get_instance()->tpl_vars); return self::$_instance; }
/** * Get handle to Smarty parser object, ment for template parsing * * @final * @internal * @since 1.11.3 * @author Tapio Löytty * @return Smarty_Parser handle to the Smarty object * @ignore */ public final function &get_template_parser() { return Smarty_Parser::get_instance(); }