VuFind API Documentation

SafeMoneyFormat extends AbstractHelper
in package

Safe money format view helper

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

$currencyFormatter  : CurrencyFormatter
CurrencyFormatter
$escapeHtml  : EscapeHtml
Escape helper
__construct()  : mixed
Constructor
__invoke()  : string
Convert currency to display format and escape the result

Properties

Methods

__construct()

Constructor

public __construct(CurrencyFormatter $currencyFormatter, EscapeHtml $escapeHtml) : mixed
Parameters
$currencyFormatter : CurrencyFormatter

Currency formatter

$escapeHtml : EscapeHtml

Escaper

Return values
mixed

__invoke()

Convert currency to display format and escape the result

public __invoke(float $number[, string $currency = null ]) : string
Parameters
$number : float

The number to format

$currency : string = null

Currency format (ISO 4217) to use (null for default)

Return values
string

Search results