/** * Return the current object instance (Singleton) * @return object */ public static function getInstance() { if (!is_object(self::$objInstance)) { self::$objInstance = new InsertTags(); } return self::$objInstance; }
/** * Replace insert tags with their values * * @param string $strBuffer The text with the tags to be replaced * @param boolean $blnCache If false, non-cacheable tags will be replaced * * @return string The text with the replaced tags */ public static function replaceInsertTags($strBuffer, $blnCache = true) { $objIt = new InsertTags(); return $objIt->replace($strBuffer, $blnCache); }