API Documentation

View/Helper/Currency.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id:$
Classes
Zend_View_Helper_Currency

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_View_Helper_Currency

Extends from
Zend_View_Helper_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
Properties
$_currency
Methods
__construct
currency
setCurrency
getCurrency

Description

Currency view helper

Properties

$_currency

Zend_Currency $_currency = ''

Currency object

Details

$_currency
Zend_Currency
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( Zend_Currency $currency = null ) : void

Constructor for manually handling

Arguments
$currency
Zend_Currency
Instance of Zend_Currency
Details
visibility
public
final
false
static
false

currency

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

Output a formatted currency

Arguments
$value
integerfloat
Currency value to output
$currency
stringZend_LocaleZend_Currency
OPTIONAL Currency to use for this call
Output
string
Formatted currency
Details
visibility
public
final
false
static
false

getCurrency

getCurrency( ) : Zend_Currency|null

Retrieve currency object

Output
Zend_Currency|null
Details
visibility
public
final
false
static
false

setCurrency

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

Sets a currency to use

Arguments
$currency
Zend_CurrencyStringZend_Locale
Currency to use
Details
visibility
public
final
false
static
false
throws
When no or a false currency was set
Documentation was generated by DocBlox.