This class has no public properties.
| |
capitalize( String value ) : String
Converts the first character only of a string to upper case
Converts the first character only of a string to upper case
Parameters:
value : StringThe text to convert
Returns:
|
Format |
| |
date( Mixed value, [String format] ) : String
Parse a value into a formatted date using the specified format pattern.
Parse a value into a formatted date using the specified format pattern.
|
Format |
| |
dateRenderer( String format ) : Function
Returns a date rendering function that can be reused to apply a date format multiple times efficiently
Returns a date rendering function that can be reused to apply a date format multiple times efficiently
|
Format |
| |
defaultValue( Mixed value, String defaultValue ) : String
Checks a reference and converts it to the default value if it's empty
Checks a reference and converts it to the default value if it's empty
|
Format |
| |
ellipsis( String value, Number length ) : String
Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length
Truncate a string and add an ellipsis ('...') to the end if it exceeds the specified length
|
Format |
| |
fileSize( Number/String size ) : String
Simple format for a file size (xxx bytes, xxx KB, xxx MB)
Simple format for a file size (xxx bytes, xxx KB, xxx MB)
Parameters:
Returns:
StringThe formatted file size
|
Format |
| |
htmlDecode( String value ) : String
Convert certain characters (&, <, >, and ') from their HTML character equivalents.
Convert certain characters (&, <, >, and ') from their HTML character equivalents.
Parameters:
value : StringThe string to decode
Returns:
|
Format |
| |
htmlEncode( String value ) : String
Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.
Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages.
Parameters:
value : StringThe string to encode
Returns:
|
Format |
| |
lowercase( String value ) : String
Converts a string to all lower case letters
Converts a string to all lower case letters
Parameters:
value : StringThe text to convert
Returns:
|
Format |
| |
stripScripts( Mixed value ) : String
|
Format |
| |
stripTags( Mixed value ) : String
|
Format |
| |
substr( String value, Number start, Number length ) : String
Returns a substring from within an original string
Returns a substring from within an original string
|
Format |
| |
trim( String value ) : String
Trims any whitespace from either side of a string
Trims any whitespace from either side of a string
Parameters:
value : StringThe text to trim
Returns:
|
Format |
| |
undef( Mixed value ) : Mixed
Checks a reference and converts it to empty string if it is undefined
Checks a reference and converts it to empty string if it is undefined
Parameters:
value : MixedReference to check
Returns:
|
Format |
| |
uppercase( String value ) : String
Converts a string to all upper case letters
Converts a string to all upper case letters
Parameters:
value : StringThe text to convert
Returns:
|
Format |
| |
usMoney( Number/String value ) : String
Format a number as US currency
Format a number as US currency
|
Format |
This class has no public events.