Return info about field type.
void
about
()
Determine if the provided date value is completely empty, partially empty or non-empty.
integer
emptyDateArray
(mixed $date)
-
mixed
$date: String or date part array representation of date.
Return the date supplied as a Horde_Date object.
string
formatDate
(string $date)
-
string
$date: Either an already set up Horde_Date object or a string date in one of the three formats supported by Horde_Form and Horde_Date (ISO format YYYY-MM-DD HH:MM:SS, timestamp YYYYMMDDHHMMSS and UNIX epoch) plus the fourth YYYY-MM-DD.
Return the date supplied as a Horde_Date object.
Date
getDateOb
(string $date_in)
-
string
$date_in: Date in one of the three formats supported by Horde_Form and Horde_Date (ISO format YYYY-MM-DD HH:MM:SS, timestamp YYYYMMDDHHMMSS and UNIX epoch) plus the fourth YYYY-MM-DD.
Return the date supplied split up into an array.
array
getDateParts
(string $date_in)
-
string
$date_in: Date in one of the three formats supported by Horde_Form and Horde_Date (ISO format YYYY-MM-DD HH:MM:SS, timestamp YYYYMMDDHHMMSS and UNIX epoch) plus the fourth YYYY-MM-DD.
Insert the date input through the form into $info array, in the format specified by the $format_in parameter when setting up monthdayyear field.
void
getInfo
( &$vars, &$var, &$info)
Redefinition of:
- Horde_Form_Type::getInfo()
Return the date supplied as a Horde_Date object.
void
init
([integer $start_year = ''], [integer $end_year = ''], [boolean $picker = true], [integer $format_in = null], [integer $format_out = '%x'])
-
integer
$start_year: The first available year for input.
-
integer
$end_year: The last available year for input.
-
boolean
$picker: Do we show the DHTML calendar?
-
integer
$format_in: The format to use when sending the date for storage. Defaults to Unix epoch. Similar to the strftime() function.
-
integer
$format_out: The format to use when displaying the date. Similar to the strftime() function.
Redefinition of:
- Horde_Form_Type::init()
Validate/format a date submission.
void
_validateAndFormat
( $value, &$var)
Inherited Methods
Inherited From Horde_Form_Type
Horde_Form_Type::Horde_Form_Type()
Horde_Form_Type::getInfo()
Horde_Form_Type::getProperty()
Horde_Form_Type::getTypeName()
Horde_Form_Type::getValues()
Horde_Form_Type::init()
Horde_Form_Type::isValid()
Horde_Form_Type::onSubmit()
Horde_Form_Type::setProperty()
Horde_Form_Type::__get()
Horde_Form_Type::__set()