equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_View |
16 * @package Zend_View |
17 * @subpackage Helper |
17 * @subpackage Helper |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Currency.php 20785 2010-01-31 09:43:03Z mikaelkael $ |
20 * @version $Id: Currency.php 24768 2012-05-06 03:08:09Z adamlundrigan $ |
21 */ |
21 */ |
22 |
22 |
23 /** Zend_View_Helper_Abstract.php */ |
23 /** Zend_View_Helper_Abstract.php */ |
24 require_once 'Zend/View/Helper/Abstract.php'; |
24 require_once 'Zend/View/Helper/Abstract.php'; |
25 |
25 |
26 /** |
26 /** |
27 * Currency view helper |
27 * Currency view helper |
28 * |
28 * |
29 * @category Zend |
29 * @category Zend |
30 * @package Zend_View |
30 * @package Zend_View |
31 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
31 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @license http://framework.zend.com/license/new-bsd New BSD License |
32 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 */ |
33 */ |
34 class Zend_View_Helper_Currency extends Zend_View_Helper_Abstract |
34 class Zend_View_Helper_Currency extends Zend_View_Helper_Abstract |
35 { |
35 { |
36 /** |
36 /** |
59 } |
59 } |
60 |
60 |
61 /** |
61 /** |
62 * Output a formatted currency |
62 * Output a formatted currency |
63 * |
63 * |
64 * @param integer|float $value Currency value to output |
64 * @param integer|float $value Currency value to output |
65 * @param string|Zend_Locale|Zend_Currency $currency OPTIONAL Currency to use for this call |
65 * @param string|Zend_Locale|array $currency OPTIONAL Currency to use for |
|
66 * this call |
66 * @return string Formatted currency |
67 * @return string Formatted currency |
67 */ |
68 */ |
68 public function currency($value = null, $currency = null) |
69 public function currency($value = null, $currency = null) |
69 { |
70 { |
70 if ($value === null) { |
71 if ($value === null) { |