[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/Smarty/libs/plugins/ -> modifier.truncate.php (summary)

Smarty plugin

File Size: 59 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  smarty_modifier_truncate()

Functions
Functions that are not part of a class:

smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false)   X-Ref
Smarty truncate modifier plugin

Type:     modifier<br>
Name:     truncate<br>
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.

author: Monte Ohrt <monte at ohrt dot com>
param: string  $string      input string
param: integer $length      length of truncated text
param: string  $etc         end string
param: boolean $break_words truncate at word boundary
param: boolean $middle      truncate in the middle of text
return: string truncated string



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1