calendarcontrol
extends formcontrol
in package
Date/Time Control w/ Popup Date/Time Picker using jQuery datetimepicker text entry date and/or time w/ pop-up date/time selector
Tags
Table of Contents
- $accesskey : mixed
- $class : mixed
- $default : mixed
- $default_ampm : mixed
- $default_date : mixed
- $default_hour : mixed
- $default_min : mixed
- $disabled : mixed
- $flip : mixed
- $focus : mixed
- $horizontal : mixed
- $horizontal_top : mixed
- $id : mixed
- $inError : mixed
- $is_hidden : mixed
- $jsHooks : mixed
- $multiple : mixed
- $name : mixed
- $required : mixed
- $showtime : mixed
- $tabindex : mixed
- $type : mixed
- __construct() : mixed
- __get() : null
- Generic magic method
- __isset() : bool
- Generic magic method
- __set() : mixed
- Generic magic method We MUST create/set non-existing properties for Exponent code to work
- __unset() : mixed
- Generic magic method
- controlToHTML() : string
- Place the editable control on the edit form
- convertData() : string
- Convert a foreign value to fit the exp control
- form() : mixed
- Create the Form to edit the control settings
- getFieldDefinition() : array<string|int, mixed>
- returns the table field definition for this control
- isSimpleControl() : bool
- Is this a Simple Control? Used to determine if control is available for the Forms (design) module
- isStatic() : bool
- Is this a Static Control? Used to determine if control has field data behind it
- name() : mixed
- onRegister() : bool
- Event hook for when control is registered on a form
- onUnRegister() : bool
- Event hook for when control is un-registered (removed) on a form
- parseData() : string
- Parse the control value for storage in database
- templateFormat() : string
- Display the date data in human readable format
- toHTML() : string
- Place the control in the form with label and description
- update() : mixed
- Update the control settings
- useGeneric() : bool
- Use the Generic Control instead? Used to determine if control is actually a generic control
Properties
$accesskey
public
mixed
$accesskey
= ""
$class
public
mixed
$class
= ""
$default
public
mixed
$default
= ""
$default_ampm
public
mixed
$default_ampm
= ''
$default_date
public
mixed
$default_date
= ''
$default_hour
public
mixed
$default_hour
= ''
$default_min
public
mixed
$default_min
= ''
$disabled
public
mixed
$disabled
= \false
$flip
public
mixed
$flip
= \false
$focus
public
mixed
$focus
= \false
$horizontal
public
mixed
$horizontal
= \false
$horizontal_top
public
mixed
$horizontal_top
= \false
$id
public
mixed
$id
= \null
$inError
public
mixed
$inError
= 0
$is_hidden
public
mixed
$is_hidden
= \false
$jsHooks
public
mixed
$jsHooks
= array()
$multiple
public
mixed
$multiple
= \false
$name
public
mixed
$name
= ""
$required
public
mixed
$required
= \false
$showtime
public
mixed
$showtime
= \true
$tabindex
public
mixed
$tabindex
= -1
$type
public
mixed
$type
= 'datetime'
Methods
__construct()
public
__construct([mixed $default = null ][, mixed $showtime = true ]) : mixed
Parameters
- $default : mixed = null
- $showtime : mixed = true
Return values
mixed —__get()
Generic magic method
public
__get( $property) : null
Parameters
Return values
null —__isset()
Generic magic method
public
__isset( $property) : bool
Parameters
Return values
bool —__set()
Generic magic method We MUST create/set non-existing properties for Exponent code to work
public
__set( $property, $value) : mixed
Parameters
Return values
mixed —__unset()
Generic magic method
public
__unset( $property) : mixed
Parameters
Return values
mixed —controlToHTML()
Place the editable control on the edit form
public
controlToHTML(mixed $name[, mixed $label = null ]) : string
Parameters
- $name : mixed
- $label : mixed = null
Return values
string —convertData()
Convert a foreign value to fit the exp control
public
static convertData( $name, $values) : string
Parameters
Tags
Return values
string —form()
Create the Form to edit the control settings
public
static form(mixed $object) : mixed
Parameters
- $object : mixed
Return values
mixed —getFieldDefinition()
returns the table field definition for this control
public
static getFieldDefinition() : array<string|int, mixed>
Return values
array<string|int, mixed> —isSimpleControl()
Is this a Simple Control? Used to determine if control is available for the Forms (design) module
public
static isSimpleControl() : bool
Return values
bool —isStatic()
Is this a Static Control? Used to determine if control has field data behind it
public
static isStatic() : bool
Return values
bool —name()
public
static name() : mixed
Return values
mixed —onRegister()
Event hook for when control is registered on a form
public
onRegister( &$form) : bool
Parameters
Return values
bool —onUnRegister()
Event hook for when control is un-registered (removed) on a form
public
onUnRegister( &$form) : bool
Parameters
Return values
bool —parseData()
Parse the control value for storage in database
public
static parseData(mixed $name, mixed $values[, mixed $for_db = false ]) : string
Parameters
- $name : mixed
- $values : mixed
- $for_db : mixed = false
Return values
string —templateFormat()
Display the date data in human readable format
public
static templateFormat( $db_data, $ctl) : string
Parameters
Return values
string —toHTML()
Place the control in the form with label and description
public
toHTML( $label, $name) : string
Parameters
Return values
string —update()
Update the control settings
public
static update(mixed $values, mixed $object) : mixed
Parameters
- $values : mixed
- $object : mixed
Return values
mixed —useGeneric()
Use the Generic Control instead? Used to determine if control is actually a generic control
public
static useGeneric() : bool