[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/pattemplate/patTemplate/Modifier/ -> Truncate.php (summary)

patTemplate modifier Truncate Truncate a string variable to fixed length and add a suffix if it was truncated. It can also start from an offset and add a prefix.

Author: Rafa Couto <rafacouto@yahoo.com>
File Size: 88 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

patTemplate_Modifier_Truncate:: (1 method):
  modify()


Class: patTemplate_Modifier_Truncate  - X-Ref

patTemplate modifier Truncate

Truncate a string variable to fixed length and add a suffix if it was truncated.
It can also start from an offset and add a prefix.

Possible attributes are:
- length (integer)
- suffix (string)
- start
- prefix (string)

modify($value, $params = array()   X-Ref
modify the value

param: string    value
return: string    modified value



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1