libs/plugins/modifier.truncate.php-Dateireferenz

modifier.truncate.php-Dateireferenz

gehe zum Quellcode dieser Datei

Namensbereiche

 Smarty
 

Constant Groups

 Smarty
 

Funktionen

 smarty_modifier_truncate ($string, $length=80, $etc= '...', $break_words=false, $middle=false)
 

Dokumentation der Funktionen

smarty_modifier_truncate (   $string,
  $length = 80,
  $etc = '...',
  $break_words = false,
  $middle = false 
)

Smarty truncate modifier plugin Type: modifier
Name: truncate
Purpose: Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string or inserting $etc into the middle.

truncate (Smarty online manual) Monte Ohrt

Parameter
string$stringinput string
integer$lengthlength of truncated text
string$etcend string
boolean$break_wordstruncate at word boundary
boolean$middletruncate in the middle of text
Rückgabe
string truncated string

Definiert in Zeile 28 der Datei modifier.truncate.php.

Benutzt Smarty\$_CHARSET, Smarty\$_MBSTRING und Smarty\$_UTF8_MODIFIER.




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.