Solar_View_Helper_FormTime::formTimestamp()

public string Solar_View_Helper_FormTime::formTimestamp ( array $info )

Helper for a 'timestamp' pseudo-element.

Inherited from Solar_View_Helper_FormTimestamp.

Parameters

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

Returns

  • (string) The element XHTML.

Description

Helper for a 'timestamp' 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

  • foo[bar][H] : 00-24

  • foo[bar][i] : 00-59

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