Skip to content

Commit

Permalink
Add missing options to NumberHelper docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Feb 11, 2012
1 parent 83e8d43 commit 730ac10
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/Cake/View/Helper/NumberHelper.php
Expand Up @@ -59,7 +59,7 @@ class NumberHelper extends AppHelper {
*/
protected $_currencyDefaults = array(
'wholeSymbol' => '', 'wholePosition' => 'before', 'fractionSymbol' => '', 'fractionPosition' => 'after',
'zero' => '0', 'places' => 2, 'thousands' => ',', 'decimals' => '.','negative' => '()', 'escape' => true,
'zero' => '0', 'places' => 2, 'thousands' => ',', 'decimals' => '.', 'negative' => '()', 'escape' => true,
);

/**
Expand Down Expand Up @@ -165,7 +165,11 @@ public function format($number, $options = false) {
* - `thousands` - Thousands separator ie. ','
* - `decimals` - Decimal separator symbol ie. '.'
* - `negative` - Symbol for negative numbers. If equal to '()', the number will be wrapped with ( and )
* - `escape` - Should the output be htmlentity escaped? Defaults to true
* - `escape` - Should the output be htmlentity escaped? Defaults to true.
* - `wholeSymbol` String to use for whole numbers ie. ' dollars'.
* - `wholePosition` Either 'before' or 'after' to place the whole symbol.
* - `fractionSymbol` String to use for fraction numbers ie. ' cents'.
* - `fractionPosition` Either 'before' or 'after' to place the fraction symbol.
*
* @param float $number
* @param string $currency Shortcut to default options. Valid values are 'USD', 'EUR', 'GBP', otherwise
Expand Down Expand Up @@ -238,8 +242,10 @@ public function currency($number, $currency = 'USD', $options = array()) {
*
* {{{
* array(
* 'before' => '$', 'after' => 'c', 'zero' => 0, 'places' => 2, 'thousands' => ',',
* 'decimals' => '.', 'negative' => '()', 'escape' => true
* 'wholeSymbol' => '', 'wholePosition' => 'before',
* 'fractionSymbol' => '', 'fractionPosition' => 'after',
* 'zero' => '0', 'places' => 2, 'thousands' => ',',
* 'decimals' => '.', 'negative' => '()', 'escape' => true,
* )
* }}}
*
Expand Down

0 comments on commit 730ac10

Please sign in to comment.