replace() public method

Recursively replace insert tags with their values
public replace ( string $strBuffer, boolean $blnCache = true ) : string
$strBuffer string The text with the tags to be replaced
$blnCache boolean If false, non-cacheable tags will be replaced
return string The text with the replaced tags
 /**
  * {@inheritDoc}
  */
 public function replace($content, $cache = true)
 {
     return $this->insertTags->replace($content, $cache);
 }
Example #2
0
 /**
  * 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);
 }