View helper for formatting dates.
Methods
__construct()
__construct()
Format a number
__invoke(int | float $number, int $formatStyle, int $formatType, string $locale, int $decimals) : string
Parameters
$number
intfloat
$formatStyle
int
$formatType
int
$locale
string
$decimals
int
Returns
string
Get number of decimals.
getDecimals() : int
Get the locale to use
getLocale() : string | null
Set the View object
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::setView() |
Parameters
Returns
Properties
number of decimals to use.
$decimals : int
Locale to use instead of the default
$locale : string