SHOW_BOTH
SHOW_BOTH = 1
Date and time selection field
$customValidationCode : mixed||string|int
Javascript performing additional validation of this element data
This property contains a list of Javascript snippets that will be sent to APIForm::renderValidationJS(). NB: All elements are added to the output one after the other, so don't forget to add a ";" after each to ensure no Javascript syntax error is generated.
$_hidden :
hidden?
None found |
__construct( caption, name, size = 15, value, showtime = true) :
APIFormDateTime::APIFormDateTime()
caption | form field caption |
|
name | form variable name |
|
size | size of date select |
|
value | unix timestamp, defaults to now |
|
showtime | control 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 |
None found |
None found |
None found |
addElement(\APIFormElement formElement, required = false) :
Add an element to the group
\APIFormElement | formElement | {@link APIFormElement} to add |
required |
None found |
getRequired() : mixed||string|int
get an array of "required" form elements
array of {@link APIFormElement}s
None found |
getElements( recurse = false) : \APIFormElement||string|int
Get an array of the elements in this group
recurse | get elements recursively? |
Array of {@link APIFormElement} objects.
None found |
getDelimeter( encode = false) :
Get the delimiter of this group
encode | To sanitizer the text? |
The delimiter
None found |
render() :
Generates output for the element.
This method is abstract and must be overwritten by the child classes.
None found |
setName( name) :
set the "name" attribute for the element
name | "name" attribute for the element |
None found |
getName( encode = true) :
get the "name" attribute for the element
encode |
"name" attribute
None found |
setAccessKey( key) :
set the "accesskey" attribute for the element
key | "accesskey" attribute for the element |
None found |
getAccessKey() :
get the "accesskey" attribute for the element
"accesskey" attribute value
None found |
getAccessString( str) :
If the accesskey is found in the specified string, underlines it
str | String where to search the accesskey occurence |
Enhanced string with the 1st occurence of accesskey underlined
None found |
None found |
None found |
None found |
getCaption( encode = false) :
get the caption for the element
encode | To sanitizer the text? |
None found |
getTitle( encode = true) :
get the caption for the element
encode | To sanitizer the text? |
None found |
setDescription( description) :
set the element's description
description |
None found |
getDescription( encode = false) :
get the element's description
encode | To sanitizer the text? |
None found |
None found |
None found |
setExtra( extra, replace = false) : mixed||string|int
Add extra attributes to the element.
This string will be inserted verbatim and unvalidated in the element's tag. Know what you are doing!
extra | ||
replace | If true, passed string will replace current content otherwise it will be appended to it |
New content of the extra string
None found |
getExtra( encode = false) :
Get the extra attributes for the element
encode | To sanitizer the text? |
None found |
setNocolspan( nocolspan = true) :
Set the element's nocolspan Modified by Catzwolf
nocolspan |
None found |
None found |
None found |
setFormType( value) :
set the element's nocolspan Modified by Catzwolf
value |
None found |
seealso |
APIForm::renderValidationJS |
---|