PHP Class Contao\InsertTags

Usage: $it = new InsertTags(); echo $it->replace($text);
Inheritance: extends Controller
Mostrar archivo Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( ) Make the constructor public
replace ( string $strBuffer, boolean $blnCache = true ) : string Recursively replace insert tags with their values

Protected Methods

Method Description
doReplace ( string $strBuffer, boolean $blnCache ) : string Replace insert tags with their values

Method Details

__construct() public method

Make the constructor public
public __construct ( )

doReplace() protected method

Replace insert tags with their values
protected doReplace ( string $strBuffer, boolean $blnCache ) : 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

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