Solar_View_Helper_FormDate::formDate()

public string Solar_View_Helper_FormDate::formDate ( array $info )

Helper for a 'date' pseudo-element.

Parameters

  • (array) $info: An array of element information.

Returns

  • (string) The element XHTML.

Description

Helper for a 'date' pseudo-element.

For an element named 'foo[bar]', builds a series of selects:

  • foo[bar][Y] : {:y_first} - {:y_last}

  • foo[bar][m] : 01-12

  • foo[bar][d] : 01-31

This helper makes use of two extra element information keys: y_first to determine the first year shown, and y_last as the last year shown. The default values are -4 years from the current year, and +4 years from the current year, respectively.



Local