Zend\Form\View\Helper\FormDateSelect
Synopsis
class FormDateSelect
extends FormMonthSelect
{
- // Inherited members from FormMonthSelect
- protected FormSelect $selectHelper;
- protected int $dateType;
- protected string $pattern;
- protected string $locale;
- // Inherited members from AbstractHelper
- protected array $booleanAttributes;
- protected array $translatableAttributes;
- protected Doctype $doctypeHelper;
- protected EscapeHtml $escapeHtmlHelper;
- protected EscapeHtmlAttr $escapeHtmlAttrHelper;
- protected array $validGlobalAttributes;
- protected array $validTagAttributes;
- // Inherited members from AbstractTranslatorHelper
- protected TranslatorInterface $translator;
- protected string $translatorTextDomain;
- protected bool $translatorEnabled;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public string render()
- protected array getDaysOptions()
- // Inherited methods from FormMonthSelect
- public void __construct()
- public FormDateSelect __invoke()
- public string render()
- protected array parsePattern()
- public string getPattern()
- public FormDateSelect setDateType()
- public int getDateType()
- public FormDateSelect setLocale()
- public string getLocale()
- protected array getMonthsOptions()
- protected array getYearsOptions()
- protected FormSelect getSelectElementHelper()
- // Inherited methods from AbstractHelper
- public AbstractHelper setDoctype()
- public string getDoctype()
- public AbstractHelper setEncoding()
- public string getEncoding()
- public string createAttributesString()
- public null|string getId()
- public string getInlineClosingBracket()
- protected Doctype getDoctypeHelper()
- protected EscapeHtml getEscapeHtmlHelper()
- protected EscapeHtmlAttr getEscapeHtmlAttrHelper()
- protected array prepareAttributes()
- protected string prepareBooleanAttributeValue()
- // Inherited methods from AbstractTranslatorHelper
- public AbstractTranslatorHelper setTranslator()
- public Translator|null getTranslator()
- public bool hasTranslator()
- public AbstractTranslatorHelper setTranslatorEnabled()
- public bool isTranslatorEnabled()
- public AbstractTranslatorHelper setTranslatorTextDomain()
- public string getTranslatorTextDomain()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Tasks
Line | Task |
---|---|
228 | Escape event attributes like AbstractHtmlElement view helper does in htmlAttribs ?? |
Members
protected
- $booleanAttributes
—
array
Standard boolean attributes, with expected values for enabling/disabling - $dateType
—
int
Date formatter to use - $doctypeHelper — Zend\View\Helper\Doctype
- $escapeHtmlAttrHelper — Zend\View\Helper\EscapeHtmlAttr
- $escapeHtmlHelper — Zend\View\Helper\EscapeHtml
- $locale
—
string
Locale to use - $pattern
—
string
Pattern to use for Date rendering - $selectHelper
—
Zend\Form\View\Helper\FormSelect
FormSelect helper - $translatableAttributes
—
array
Translatable attributes - $translator
—
Zend\I18n\Translator\TranslatorInterface
Translator (optional) - $translatorEnabled
—
Zend\I18n\View\Helper\bool
Whether translator should be used - $translatorTextDomain
—
string
Translator text domain (optional) - $validGlobalAttributes
—
array
Attributes globally valid for all tags - $validTagAttributes
—
array
Attributes valid for the tag represented by this helper - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
protected
- getDaysOptions() — Create a key => value options for days
public
- render() — Render a date element that is composed of three selects
Inherited from Zend\Form\View\Helper\FormMonthSelect
protected
- getMonthsOptions() — Create a key => value options for months
- getSelectElementHelper() — Retrieve the FormSelect helper
- 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
- parsePattern() — Parse the pattern
public
- __invoke() — Invoke helper as function
- getDateType() — Get date formatter
- getLocale() — Get locale
- getPattern() — Retrieve pattern to use for Date rendering
- render() — Render a month element that is composed of two selects
- setDateType() — Set date formatter
- setLocale() — Set locale
Inherited from Zend\Form\View\Helper\AbstractHelper
protected
- getDoctypeHelper() — Retrieve the doctype helper
- getEscapeHtmlAttrHelper() — Retrieve the escapeHtmlAttr helper
- getEscapeHtmlHelper() — Retrieve the escapeHtml helper
- prepareAttributes() — Prepare attributes for rendering
- prepareBooleanAttributeValue() — Prepare a boolean attribute value
public
- createAttributesString() — Create a string of all attribute/value pairs
- getDoctype() — Get value for doctype
- getEncoding() — Get character encoding
- getId() — Get the ID of an element
- getInlineClosingBracket() — Get the closing bracket for an inline tag
- setDoctype() — Set value for doctype
- setEncoding() — Set value for character encoding
Inherited from Zend\I18n\View\Helper\AbstractTranslatorHelper
public
- getTranslator() — Returns translator used in helper
- getTranslatorTextDomain() — Return the translation text domain
- hasTranslator() — Checks if the helper has a translator
- isTranslatorEnabled() — Returns whether translator is enabled and should be used
- setTranslator() — Sets translator to use in helper
- setTranslatorEnabled() — Sets whether translator is enabled and should be used
- setTranslatorTextDomain() — Set translation text domain