DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Function keys reference¶
It is possible to create processors for custom function keys (see "Developer's Guide") and thus be able to call pretty much any function inside an expression.
fullQuoteStr¶
Calls \TYPO3\CMS\Core\Database\DatabaseConnection::fullQuoteStr()
.
Requires an additional argument, which corresponds to a table name (see the method's comments if in doubt).
Will not be available if the $TYPO3_DB
global variable is not set.
Example
Call \TYPO3\CMS\Core\Database\DatabaseConnection::fullQuoteStr()
on the value,
with "pages" as a second argument:
gp:tx_myext_pi1|foo->fullQuoteStr:pages
quoteStr¶
Calls \TYPO3\CMS\Core\Database\DatabaseConnection::quoteStr()
.
Requires an additional argument, which corresponds to a table name (see the method's comments if in doubt).
Will not be available if the $TYPO3_DB
global variable is not set.
Example
Call \TYPO3\CMS\Core\Database\DatabaseConnection::quoteStr()
on the value,
with "pages" as a second argument:
gp:tx_myext_pi1|foo->quoteStr:pages
strip_tags¶
Calls the PHP function strip_tags()
. The additional argument
is optional and corresponds to the list of tags to preserve
(refer to the PHP manual for strip_tags() for more details).
Example
Call the PHP function strip_tags()
on the value
but preserve <p>
tags:
gp:tx_myext_pi1|foo->strip_tags:<p>
removeXSS¶
Calls \TYPO3\CMS\Core\Utility\GeneralUtility::removeXSS
.
Example
gp:tx\_myext\_pi1\|foo->removeXSS
intval¶
Calls the PHP function intval()
. The additional argument is
optional and corresponds to the base to use for conversion
(refer to the PHP manual for intval() for more details).
Example
Call the PHP function intval()
using base 8:
gp:tx\_myext\_pi1\|foo->intval:8
floatval¶
Calls the PHP function floatval()
(refer to the PHP manual for more details).
Example
gp:tx_myext_pi1|foo->floatval
boolean¶
This is an internal function. It's actually the opposite of the PHP
function empty()
. This means that any value of 0 or "0", or
an empty string will return FALSE
. Any other value will return TRUE
.
Example
Return FALSE if value is empty, TRUE otherwise:
gp:tx_myext_pi1|foo->boolean
hsc¶
Calls the PHP function htmlspecialchars()
. The additional
arguments are all optional and correspond respectively to the
behavior to adopt regarding single and double quotes, the character
set to use in the conversion and what to do about existing HTML
entities (refer to the PHP manual for htmlspecialchars() for more details).
Example
Call the PHP function htmlspecialchars(), without any additional arguments:
gp:tx_myext_pi1|foo->hsc
strftime¶
Calls the PHP function strftime()
. It expects a Unix
timestamp as a value and takes a date format as an additional argument
(refer to the PHP manual for strftime() for more details).
Example
Call the PHP function strftime() to format the timestamp received:
gp:date->strftime:%d.%m.%Y