Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Helper_Currency Class Reference

Public Member Functions

 __construct ($currency=null)
 Constructor for manually handling.
 
 currency ($value=null, $currency=null)
 Output a formatted currency.
 
 setCurrency ($currency=null)
 Sets a currency to use.
 
 getCurrency ()
 Retrieve currency object.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Attributes

 $_currency
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_Abstract
 $view = null
 

Constructor & Destructor Documentation

__construct (   $currency = null)

Constructor for manually handling.

Parameters
Zend_Currency$currencyInstance of Zend_Currency
Returns
void

Member Function Documentation

currency (   $value = null,
  $currency = null 
)

Output a formatted currency.

Parameters
integer | float$valueCurrency value to output
string | Zend_Locale | array$currencyOPTIONAL Currency to use for this call
Returns
string Formatted currency
getCurrency ( )

Retrieve currency object.

Returns
Zend_Currency|null
setCurrency (   $currency = null)

Sets a currency to use.

Parameters
Zend_Currency | String | Zend_Locale$currencyCurrency to use
Exceptions
Zend_View_ExceptionWhen no or a false currency was set
Returns
Zend_View_Helper_Currency

Member Data Documentation

$_currency
protected