API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsFormDateTime Class Reference
Inheritance diagram for XoopsFormDateTime:
Collaboration diagram for XoopsFormDateTime:

Public Member Functions

 __construct ($caption, $name, $size=15, $value=0, $showtime=true)
 
- Public Member Functions inherited from XoopsFormElementTray
 __construct ($caption, $delimeter=' ', $name='')
 
 isContainer ()
 
 isRequired ()
 
 addElement (XoopsFormElement $formElement, $required=false)
 
getRequired ()
 
getElements ($recurse=false)
 
 getDelimeter ($encode=false)
 
 setOrientation ($direction)
 
 getOrientation ()
 
 render ()
 
- Public Member Functions inherited from XoopsFormElement
 __construct ()
 
 isContainer ()
 
 setName ($name)
 
 getName ($encode=true)
 
 setAccessKey ($key)
 
 getAccessKey ()
 
 getAccessString ($str)
 
 setClass ($class)
 
 getClass ()
 
 setCaption ($caption)
 
 getCaption ($encode=false)
 
 getTitle ($encode=true)
 
 setDescription ($description)
 
 getDescription ($encode=false)
 
 setHidden ()
 
 isHidden ()
 
 isRequired ()
 
 setExtra ($extra, $replace=false)
 
 getExtra ($encode=false)
 
 setNocolspan ($nocolspan=true)
 
 getNocolspan ()
 
 getFormType ()
 
 setFormType ($value='')
 
 renderValidationJS ()
 
 render ()
 

Data Fields

const SHOW_BOTH = 1
 
const SHOW_DATE = 0
 
const SHOW_TIME = 2
 
- Data Fields inherited from XoopsFormElementTray
const ORIENTATION_HORIZONTAL = 'horizontal'
 
const ORIENTATION_VERTICAL = 'vertical'
 
 $_required = array()
 
- Data Fields inherited from XoopsFormElement
 $customValidationCode = array()
 
 $_name
 
 $_caption
 
 $_accesskey = ''
 
 $_class = array()
 
 $_hidden = false
 
 $_extra = array()
 
 $_required = false
 
 $_description = ''
 
 $_nocolspan = false
 
 $_formtype = ''
 

Additional Inherited Members

- Protected Attributes inherited from XoopsFormElementTray
 $orientation
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $caption,
  $name,
  $size = 15,
  $value = 0,
  $showtime = true 
)

XoopsFormDateTime::XoopsFormDateTime()

Parameters
mixed$captionform field caption
mixed$nameform variable name
integer$sizesize of date select
integer$valueunix timestamp, defaults to now
mixed$showtimecontrol display of date and time elements SHOW_BOTH, true - show both date and time selectors SHOW_DATE, false - only show date selector SHOW_TIME - only show time selector
Here is the call graph for this function:

Field Documentation

◆ SHOW_BOTH

const SHOW_BOTH = 1

◆ SHOW_DATE

const SHOW_DATE = 0

◆ SHOW_TIME

const SHOW_TIME = 2

The documentation for this class was generated from the following file: