937. Class

937.1. Zend\Form\View\Helper\FormMonthSelect

937.1.1. Methods

937.1.1.1. render

render()

Render a month element that is composed of two selects

Parameters:ZendFormElementInterface
Throws ZendFormExceptionInvalidArgumentException:
 
Throws ZendFormExceptionDomainException:
 
Return type:string

937.1.1.2. __invoke

__invoke()

Invoke helper as function

Proxies to {@link render()}.

Parameters:
  • ZendFormElementInterface
  • int
  • null|string
Return type:

FormDateSelect

937.1.1.3. getPattern

getPattern()

@return string

937.1.1.4. parsePattern

parsePattern()

Parse the pattern

Return type:array

937.1.1.5. setDateType

setDateType()

@param int $dateType

Return type:FormDateSelect

937.1.1.6. getDateType

getDateType()

@return int

937.1.1.7. setLocale

setLocale()

@param string $locale

Return type:FormDateSelect

937.1.1.8. getLocale

getLocale()

@return string

937.1.1.9. getMonthsOptions

getMonthsOptions()

Create a key => value options for months

Parameters:string – Pattern to use for months
Return type:array

937.1.1.10. getYearsOptions

getYearsOptions()

Create a key => value options for years NOTE: we don’t use a pattern for years, as years written as two digits can lead to hard to read date for users, so we only use four digits years

Parameters:
  • int
  • int
Return type:

array

937.1.1.11. getSelectElementHelper

getSelectElementHelper()

Retrieve the FormSelect helper

Return type:FormRow