Overview

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.

Package

This class is part of the Solar_View_Helper_Form package.

Inheritance:

Configuration Keys

  • y_first: The default year to show first in the year options. Defaults to four years before the current year.

  • y_last: The default year to show last in the year options. Defaults to four years after the current year.

Constants

None.

Public Properties

The Solar_View_Helper_FormTimestamp class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_View_Helper_FormTimestamp class.

You can also view the list of all public, protected, and private methods.

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

formTimestamp()

Helper for a 'timestamp' pseudo-element.

locale()

Looks up class-specific locale strings based on a key.



Local