Example #1
0
 /**
  * Add a currency format to the Number helper. Makes reusing
  * currency formats easier.
  *
  * {{{ $this->Number->addFormat('NOK', array('before' => 'Kr. ')); }}}
  *
  * You can now use `NOK` as a shortform when formatting currency amounts.
  *
  * {{{ $this->Number->currency($value, 'NOK'); }}}
  *
  * Added formats are merged with the defaults defined in Cake\Utility\Number::$_currencyDefaults
  * See Cake\Utility\Number::currency() for more information on the various options and their function.
  *
  * @see \Cake\Utility\Number::addFormat()
  *
  * @param string $formatName The format name to be used in the future.
  * @param array $options The array of options for this format.
  * @return void
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::addFormat
  */
 public function addFormat($formatName, array $options)
 {
     return $this->_engine->addFormat($formatName, $options);
 }