All Data Structures Functions Variables Pages
Public Member Functions
Formatter Class Reference
Inheritance diagram for Formatter:

Public Member Functions

 resolveForUrl ($url)
 
 formatUrl ($value, $htmlOptions=array())
 
 formatText ($value)
 
 formatNtext ($value, $paragraphs=false, $removeEmptyParagraphs=true)
 
 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$valuethe 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,
  $paragraphs = false,
  $removeEmptyParagraphs = true 
)

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:
Generated on Mon May 25 2020 07:10:47