$_size
$_size :
Size
A text field with calendar popup
$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) :
Constructor
caption | ||
name | ||
size | ||
value |
None found |
None found |
None found |
getValue( encode = false) :
Get initial content
encode | To sanitizer the text? Default value should be "true"; however we have to set "false" for backward compatibility |
None found |
None found |
render() :
Prepare HTML for output
This method is abstract and must be overwritten by the child classes.
HTML
None found |
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 |
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 |
---|