template.ini [PHP]
The block [PHP] of settings/template.ini, with 1 setting(s).
Never edit settings/template.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/template.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/template.ini.append.phpfor one siteaccess,extension/<extension>/settings/template.ini.append.phpin an extension (read when the extension is active).
PHPOperatorList
A list with php functions and their equivalent template operator names
Giving the operators a different name from the PHP functions
are recommended, that way you ensure that all operators follow
the same naming guidelines. It also means that you can change the
php function later on without doing template changes.
Note: Only one parameter (the value) is supported and php function must
return result by value and not by reference.
RFC 3986 encoding: a space becomes %20 (urlencode gives +), for path segments and
for values another system decodes with rawurldecode
Default: a hash of 4: urlencode=urlencode, urldecode=urldecode, rawurlencode=rawurlencode, rawurldecode=rawurldecode.
# settings/override/template.ini.append.php
[PHP]
# an empty "PHPOperatorList[]" first replaces the shipped list; without it the items are added
PHPOperatorList[]
PHPOperatorList[urlencode]=urlencode
PHPOperatorList[urldecode]=urldecode
PHPOperatorList[rawurlencode]=rawurlencode
PHPOperatorList[rawurldecode]=rawurldecode
*/ ?>Related
Generated by ./console exp:help:examples from settings/template.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.