Currency view helper

category Zend
package Zend_View
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_View_Helper_Abstract

 Methods

Constructor for manually handling

__construct(\Zend_Currency $currency = null) : void

Parameters

$currency

\Zend_Currency

Instance of Zend_Currency

Output a formatted currency

currency(integer|float $value = null, string|\Zend_Locale|array $currency = null) : string

Parameters

$value

integerfloat

Currency value to output

$currency

string\Zend_Localearray

OPTIONAL Currency to use for this call

Returns

stringFormatted currency

Strategy pattern: currently unutilized

direct() : void
Inherited
inherited_from \Zend_View_Helper_Interface::direct()

Retrieve currency object

getCurrency() : \Zend_Currency | null

Returns

\Zend_Currencynull

Sets a currency to use

setCurrency(\Zend_Currency|String|\Zend_Locale $currency = null) : \Zend_View_Helper_Currency

Parameters

$currency

\Zend_CurrencyString\Zend_Locale

Currency to use

Exceptions

\Zend_View_Exception When no or a false currency was set

Returns

\Zend_View_Helper_Currency

Set the View object

setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
Inherited
inherited_from \Zend_View_Helper_Interface::setView()

Parameters

$view

\Zend_View_Interface

Returns

\Zend_View_Helper_Abstract

 Properties

 

View object

$view : \Zend_View_Interface

Default

null
 

Currency object

$_currency : \Zend_Currency

Default