Метод |
Описание |
|
binToUuid ( string $data ) : string |
Get a UUID string from binary data |
|
censor ( string $strString, mixed $varWords, string $strReplace = '' ) : string |
Censor a single word or an array of words within a string |
|
convertEncoding ( string $str, string $to, string $from = null ) : string |
Convert the character encoding |
|
decodeEntities ( string $strString, integer $strQuoteStyle = ENT_COMPAT, string $strCharset = null ) : string |
Decode all entities |
|
deserialize ( mixed $varValue, boolean $blnForceArray = false ) : array | string | null |
Return an unserialized array or the argument |
|
encodeEmail ( string $strString ) : string |
Encode all e-mail addresses within a string |
|
extractEmail ( string $strString, string $strAllowedTags = '' ) : array |
Extract all e-mail addresses from a string |
|
generateAlias ( string $strString ) : string |
Generate an alias from a string |
|
highlight ( string $strString, string $strPhrase, string $strOpeningTag = '<strong>', string $strClosingTag = '</strong>' ) : string |
Highlight a phrase within a string |
|
insertTagToSrc ( string $data ) : string |
Convert insert tags inside "src" attributes to file paths |
|
parseSimpleTokens ( string $strString, array $arrData ) : string |
Parse simple tokens |
|
resolveFlaggedUrl ( string &$url ) : stdClass |
Resolve a flagged URL such as assets/js/core.js|static|10184084 |
|
restoreBasicEntities ( string $strBuffer ) : string |
Restore basic entities |
|
sanitizeFileName ( string $strName ) : string |
Sanitize a file name |
|
specialchars ( string $strString, boolean $blnStripInsertTags = false ) : string |
Convert special characters to HTML entities preventing double conversions |
|
splitCsv ( string $strString, string $strDelimiter = ',' ) : array |
Split a string of comma separated values |
|
splitFriendlyEmail ( string $strEmail ) : array |
Split a friendly-name e-address and return name and e-mail as array |
|
srcToInsertTag ( string $data ) : string |
Convert file paths inside "src" attributes to insert tags |
|
standardize ( string $strString, boolean $blnPreserveUppercase = false ) : string |
Standardize a parameter (strip special characters and convert spaces) |
|
stripInsertTags ( string $strString ) : string |
Remove Contao insert tags from a string |
|
substr ( string $strString, integer $intNumberOfChars, string $strEllipsis = ' …' ) : string |
Shorten a string to a given number of characters |
|
substrHtml ( string $strString, integer $intNumberOfChars ) : string |
Shorten a HTML string to a given number of characters |
|
toHtml5 ( string $strString ) : string |
Convert a string to HTML5 |
|
toXhtml ( string $strString ) : string |
Convert a string to XHTML |
|
trimsplit ( string $strPattern, string $strString ) : array |
Split a string into fragments, remove whitespace and return fragments as array |
|
uuidToBin ( string $uuid ) : string |
Convert a UUID string to binary data |
|
wordWrap ( string $strString, integer $strLength = 75, string $strBreak = "
" ) : string |
Wrap words after a particular number of characers |
|