\BetterDatetimeField
A better DatetimeField, because the core ones suck
- Author: Dan Hensby <dan@betterbrief.co.uk>
- Copyright: Copyright (c) 2013, Better Brief LLP
Synopsis
class BetterDatetimeField
extends FormField
{
- // members
- protected $valueObj;
- private static array $default_config = ;
- // methods
- public void __construct()
- public void setDBFieldObject()
- public void validateDateArray()
- public void setValue()
- public void setValueFromDateTime()
- public void dataValue()
- public void Value()
- public void getShowTimeFields()
- public void setShowTimeFields()
- public void getShowDateFields()
- public void setShowDateFields()
- protected void getFallbackKey()
- public void getYear()
- public void getMonth()
- public void getDay()
- public void getHour()
- public void getMinute()
- public void getSecond()
- public void getPeriod()
- private void createFieldRange()
- public void getTimeField()
- public void getDateField()
Hierarchy
Extends
- FormField
Tasks
Line | Task |
---|---|
17+ | Date picker in the front end |
17+ | Document |
17+ | Validate |
17+ | Set config via a function, not just through construct |
17+ | Tests |
Members
private
- $default_config
protected
- $valueObj
Methods
private
protected
public
- __construct()
- Value()
- dataValue()
- getDateField()
- getDay()
- getHour()
- getMinute()
- getMonth()
- getPeriod()
- getSecond()
- getShowDateFields()
- getShowTimeFields()
- getTimeField()
- getYear()
- setDBFieldObject() — Setup the field by passing in a DBField (Date, Time or SS_Datetime)
- setShowDateFields()
- setShowTimeFields()
- setValue()
- setValueFromDateTime()
- validateDateArray()