View helper for formatting dates.

category Zend
package Zend_I18n
subpackage View

 Methods

Format a number.

__invoke(integer | float $number, integer $formatStyle, integer $formatType, string $locale) : string

Parameters

$number

integerfloat

$formatStyle

integer

$formatType

integer

$locale

string

Returns

string

Get the format style to use.

getFormatStyle() : integer

Returns

integer

Get the format type to use.

getFormatType() : integer

Returns

integer

Get the locale to use.

getLocale() : string | null

Returns

stringnull

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

Set format style to use instead of the default.

setFormatStyle(integer $formatStyle) : \Zend\I18n\View\Helper\NumberFormat

Parameters

$formatStyle

integer

Returns

Set format type to use instead of the default.

setFormatType(integer $formatType) : \Zend\I18n\View\Helper\NumberFormat

Parameters

$formatType

integer

Returns

Set locale to use instead of the default.

setLocale(string $locale) : \Zend\I18n\View\Helper\NumberFormat

Parameters

$locale

string

Returns

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

 

NumberFormat style to use.

$formatStyle : integer

 

NumberFormat type to use.

$formatType : integer

 

Formatter instances.

$formatters : array

 

Locale to use instead of the default.

$locale : string

 

View object

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view