$_cols
$_cols :
number of columns
A textarea with apiish formatting and smilie buttons
$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 |
$htmlEditor :
Extended HTML editor
If an extended HTML editor is set, the renderer will be replaced by the specified editor, usually a visual or WYSIWYG editor.
$options['editor'] = 'fckeditor';
$options['editor'] = array('MyEditor', API_ROOT_PATH . "/modules/myeditor/myeditor.php");
return array('editor' => 'fckeditor');
return array('editor' => array('MyEditor', API_ROOT_PATH . "/modules/myeditor/myeditor.php");
return array();
$options['editor'] = 'dhtmltextarea';
None found |
$_hiddenText :
Hidden text
None found |
__construct( caption, name, value, rows = 5, cols = 50, hiddentext = apiHiddenText, mixed||string|int options = array()) :
Constructor
caption | Caption |
|
name | "name" attribute |
|
value | Initial text |
|
rows | Number of rows |
|
cols | Number of columns |
|
hiddentext | Identifier for hidden Text |
|
mixed||string|int | options | Extra options |
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 |
renderValidationJS() : bool|string
APIFormDhtmlTextArea::renderValidationJS()
None found |