Methods

cDropdownDateSelect()

cDropdownDateSelect($prefix) 

Parameters

$prefix

Gets the current timestamp

getTimestamp(\$timestamp $prefix) 

Parameters

$prefix

\$timestamp

int Timestamp to set

Renders the elements

render() 

sets the element to a disabled state

setDisabled($disabled) 

Parameters

$disabled

none

Sets the ID for all three select boxes.

setId(\$id $id) 

Note: The parameter id is only the prefix. Your ID is postfixed by _day, _month and _year for each select box.

Parameters

$id

\$id

string Prefix ID to set

Sets the order of the day, month and year boxes

setOrder(\$order $order) 

Pass a string with "d", "m" and "y" in the desired order.

Example: $test->setOrder("mdy");

Parameters

$order

\$order

string Order with the keys "d", "m" and "y"

Sets the day, month and year boxes using a timestamp

setTimestamp(\$timestamp $timestamp) 

Parameters

$timestamp

\$timestamp

int Timestamp to set

 Properties

 

Day, month and year selectors

$_daySelect : object

access private
 

$_monthSelect

$_monthSelect 

 

Order of the elements

$_order : string

access private
 

$_yearSelect

$_yearSelect