Formatter Class Reference

Public Member Functions

 resolveForUrl ($url)
 formatUrl ($value, $htmlOptions=array())
 formatText ($value)
 formatNtext ($value)
 formatEmail ($value, $email= '', $htmlOptions=array())
 formatDecimal ($value)

Detailed Description

Loaded by application as Yii::app()->format

Definition at line 40 of file Formatter.php.


Member Function Documentation

formatUrl ( value,
htmlOptions = array() 
)

Formats the value as a hyperlink.

Parameters:
mixed $value the value to be formatted
Returns:
string the formatted result

Definition at line 56 of file Formatter.php.

formatText ( value  ) 

Override CHtml::formatText() method, so we can use ZurmoHtml::encode() function

See also:
CHtml::formatText()

Definition at line 66 of file Formatter.php.

formatNtext ( value  ) 

Override CHtml::formatText() method, so we can use ZurmoHtml::encode() function

See also:
CHtml::formatNtext()

Definition at line 75 of file Formatter.php.

formatEmail ( value,
email = '',
htmlOptions = array() 
)

Override to allow htmlOptions to be passed (non-PHPdoc)

See also:
CFormatter::formatEmail()

Definition at line 85 of file Formatter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Sep 25 07:10:25 2017