Replace Class provided by System to replace placeholders in text and files ${placeholder}.
| package |
SYSTEM\PAGE |
|---|
clean(stringtext) : string
Effectively removing all Placeholders
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringtext to be subject of replacements
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringReturns string of the text with all placeholders removed.
replace(stringtext, arrayvars = array()) : string
Array Key of Placeholders represents the name of the placeholder. The value to the key is filled in.
"Text ${textplaceholder}" array('textplaceholder' => 'test') resolves to: "Text test"
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringtext to be subject of replacements
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
arrayArray with Placeholders.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringReturns string of the text with replaced placeholder.
replaceFile(stringpath, arrayvars = array()) : string
Array Key of Placeholders represents the name of the placeholder. The value to the key is filled in.
"Text ${textplaceholder}" array('textplaceholder' => 'test') resolves to: "Text test"
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringFilepath of file to be subject of replacements
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
arrayArray with Placeholders.
Deprecated: Please use getType in phar:///app/lib/system/lib/phpdocumentor/lib/phpDocumentor.phar/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
stringReturns string of the text with replaced placeholder.