Overview

Packages

  • Form
  • None

Classes

  • Horde_Form
  • Horde_Form_Action
  • Horde_Form_Action_conditional_enable
  • Horde_Form_Action_conditional_setvalue
  • Horde_Form_Action_ConditionalEnable
  • Horde_Form_Action_ConditionalSetValue
  • Horde_Form_Action_reload
  • Horde_Form_Action_setcursorpos
  • Horde_Form_Action_submit
  • Horde_Form_Action_sum_fields
  • Horde_Form_Action_updatefield
  • Horde_Form_Renderer
  • Horde_Form_Translation
  • Horde_Form_Type
  • Horde_Form_Type_address
  • Horde_Form_Type_addresslink
  • Horde_Form_Type_assign
  • Horde_Form_Type_boolean
  • Horde_Form_Type_captcha
  • Horde_Form_Type_category
  • Horde_Form_Type_cellphone
  • Horde_Form_Type_colorpicker
  • Horde_Form_Type_countedtext
  • Horde_Form_Type_country
  • Horde_Form_Type_creditcard
  • Horde_Form_Type_date
  • Horde_Form_Type_datetime
  • Horde_Form_Type_dblookup
  • Horde_Form_Type_description
  • Horde_Form_Type_email
  • Horde_Form_Type_emailConfirm
  • Horde_Form_Type_enum
  • Horde_Form_Type_figlet
  • Horde_Form_Type_file
  • Horde_Form_Type_header
  • Horde_Form_Type_hourminutesecond
  • Horde_Form_Type_image
  • Horde_Form_Type_int
  • Horde_Form_Type_intlist
  • Horde_Form_Type_invalid
  • Horde_Form_Type_ip6address
  • Horde_Form_Type_ipaddress
  • Horde_Form_Type_keyval_multienum
  • Horde_Form_Type_link
  • Horde_Form_Type_longtext
  • Horde_Form_Type_matrix
  • Horde_Form_Type_mlenum
  • Horde_Form_Type_monthdayyear
  • Horde_Form_Type_monthyear
  • Horde_Form_Type_multienum
  • Horde_Form_Type_number
  • Horde_Form_Type_obrowser
  • Horde_Form_Type_octal
  • Horde_Form_Type_password
  • Horde_Form_Type_passwordconfirm
  • Horde_Form_Type_pgp
  • Horde_Form_Type_phone
  • Horde_Form_Type_radio
  • Horde_Form_Type_selectfiles
  • Horde_Form_Type_set
  • Horde_Form_Type_smime
  • Horde_Form_Type_sorter
  • Horde_Form_Type_sound
  • Horde_Form_Type_spacer
  • Horde_Form_Type_stringarray
  • Horde_Form_Type_stringlist
  • Horde_Form_Type_tableset
  • Horde_Form_Type_text
  • Horde_Form_Type_time
  • Horde_Form_Variable
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Form_Type_monthdayyear

Horde_Form_Type Class

Horde_Form_Type
Extended by Horde_Form_Type_monthdayyear
Package: Form
Author: Robert E. Coyle robertecoyle@hotmail.com
Located at Horde/Form/Type.php
Methods summary
public
# init( integer $start_year = '', integer $end_year = '', boolean $picker = true, integer $format_in = null, integer $format_out = '%x' )

Return the date supplied as a Horde_Date object.

Return the date supplied as a Horde_Date object.

Parameters

$start_year
The first available year for input.
$end_year
The last available year for input.
$picker
Do we show the DHTML calendar?
$format_in
<p>The format to use when sending the date for storage. Defaults to Unix epoch. Similar to the strftime() function.</p>
$format_out
<p>The format to use when displaying the date. Similar to the strftime() function.</p>

Overrides

Horde_Form_Type::init()
public
# isValid( mixed & $var, mixed & $vars, mixed $value, mixed & $message )

Overrides

Horde_Form_Type::isValid()
public integer
# emptyDateArray( mixed $date )

Determine if the provided date value is completely empty, partially empty or non-empty.

Determine if the provided date value is completely empty, partially empty or non-empty.

Parameters

$date
String or date part array representation of date.

Returns

integer

0 for non-empty, 1 for completely empty or -1 for partially empty.

public array
# getDateParts( string $date_in )

Return the date supplied split up into an array.

Return the date supplied split up into an array.

Parameters

$date_in
<p>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.</p>

Returns

array
Array with three elements - year, month and day.
public Horde_Date
# getDateOb( string $date_in )

Return the date supplied as a Horde_Date object.

Return the date supplied as a Horde_Date object.

Parameters

$date_in
<p>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.</p>

Returns

Horde_Date
The date object.
public string
# formatDate( string $date )

Return the date supplied as a Horde_Date object.

Return the date supplied as a Horde_Date object.

Parameters

$date
<p>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.</p>

Returns

string

The date formatted according to the $format_out parameter when setting up the monthdayyear field.

public
# getInfo( mixed & $vars, mixed & $var, mixed & $info )

Insert the date input through the form into $info array, in the format specified by the $format_in parameter when setting up monthdayyear field.

Insert the date input through the form into $info array, in the format specified by the $format_in parameter when setting up monthdayyear field.

Overrides

Horde_Form_Type::getInfo()
public
# _validateAndFormat( mixed $value, mixed & $var )

Validate/format a date submission.

Validate/format a date submission.

public
# about( )

Return info about field type.

Return info about field type.

Methods inherited from Horde_Form_Type
__get(), __set(), getProperty(), getTypeName(), getValues(), onSubmit(), setProperty()
Properties summary
public mixed $_start_year
#
public mixed $_end_year
#
public mixed $_picker
#
public mixed $_format_in
# null
public string $_format_out
# '%x'
API documentation generated by ApiGen