Method |
Description |
|
cleanupPlainText ( string $string ) : string |
Formats plain text as HTML, links will be detected, paragraphs will be inserted
syntax: {{ $string|cleanupPlainText }}. |
|
count ( array $data ) : integer |
Returns the count of the count of the array. |
|
formatDate ( integer $var ) : string |
Format a UNIX-timestamp as a date
syntax: {{ $var|formatdate }} |
|
formatDateTime ( integer $var ) : string |
Format a UNIX-timestamp as a date
syntax: {{ $var|formatdatetime }} |
|
formatFloat ( float $number, integer $decimals = 2 ) : string |
Format a number as a float
syntax: {{ $number|formatfloat($decimals) }} |
|
formatNumber ( float $string, integer $decimals = null ) : string |
Format a number
syntax: {{ $string|formatnumber($decimals) }} |
|
formatTime ( integer $var ) : string |
Format a UNIX-timestamp as a date
syntax: {{ $var|formatdate }} |
|
getNavigation ( string $type = 'page', integer $parentId, integer $depth = null, string $excludeIds = null, string $template = '/Core/Layout/Templates/Navigation.html.twig' ) : string |
Get the navigation html
syntax: {{ getnavigation($type, $parentId, $depth, $excludeIds-splitted-by-dash, $template) }} |
|
getPageInfo ( integer $pageId, string $field = 'title' ) : string |
Get a given field for a page-record
syntax: {{ $pageId|getpageinfo($field) }} |
|
getPath ( string $file ) : string |
Fetch the path for an include (theme file if available, core file otherwise)
syntax: {{ getpath($file) }} |
|
getSubNavigation ( string $type = 'page', integer $pageId, integer $startDepth = 1, integer $endDepth = null, string $excludeIds = null, string $template = '/Core/Layout/Templates/Navigation.html.twig' ) : string |
Get the subnavigation html
syntax: {{ getsubnavigation($type, $parentId, $startdepth, $enddepth, $excludeIds-splitted-by-dash, $template) }} |
|
getURL ( integer $pageId, string $language = null ) : string |
Get the URL for a given pageId & language
syntax: {{ geturl($pageId, $language) }} |
|
getURLForBlock ( string $module, string $action = null, string $language = null, array $data = null ) : string |
Get the URL for a give module & action combination
syntax: {{ geturlforblock($module, $action, $language, $data) }} |
|
getURLForExtraId ( integer $extraId, string $language = null ) : string |
Fetch an URL based on an extraId
syntax: {{ geturlforextraid($extraId, $language) }} |
|
parseWidget ( string $module, string $action, string $id = null ) : null | string |
Parse a widget straight from the template, rather than adding it through pages. |
|
profileSetting ( string $string, string $name ) : string |
Output a profile setting
syntax: {{ profilesetting($string, $name) }} |
|
timeAgo ( string $string = null ) : string |
Formats a timestamp as a string that indicates the time ago
syntax: {{ $string|timeago }}. |
|
toLabel ( string $value ) : string |
Convert this string into a well formed label. |
|
userSetting ( string $string = null, string $setting, integer $userId = null ) : string |
Get the value for a user-setting
syntax {{ usersetting($setting, $userId) }} |
|