Skip to content

icms_form_elements_Dhtmltextarea

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_form_elements_Dhtmltextarea

A textarea with bbcode formatting and smilie buttons

Properties

$htmlEditor

public mixed $htmlEditor = array()

Extended HTML editor definition

Note: the PM window doesn't use icms_form_elements_Dhtmltextarea, so no need to report it doesn't work here

array('className', 'classPath'): To create an instance of "className", declared in the file ICMS_ROOT_PATH . $classPath

Example: $htmlEditor = array('XoopsFormTinyeditorTextArea', '/class/xoopseditor/tinyeditor/formtinyeditortextarea.php');

  • Visibility: public

$_hiddenText

private string $_hiddenText

Hidden text

  • Visibility: private

$_cols

protected int $_cols

number of columns

  • Visibility: protected

$_rows

protected int $_rows

number of rows

  • Visibility: protected

$_value

protected string $_value

initial content

  • Visibility: protected

Methods

__construct

mixed icms_form_elements_Textarea::__construct(string caption, string name, string value, int rows, int cols)

Constuctor

Arguments

  • caption string - <p>caption</p>
  • name string - <p>name</p>
  • value string - <p>initial content</p>
  • rows int - <p>number of rows</p>
  • cols int - <p>number of columns</p>

render

string icms_form_elements_Textarea::render()

prepare HTML for output

renderValidationJS

mixed icms_form_elements_Dhtmltextarea::renderValidationJS()

Render Validation Javascript

  • Visibility: public

_renderSmileys

string icms_form_elements_Dhtmltextarea::_renderSmileys()

prepare HTML for output of the smiley list.

  • Visibility: private

getRows

int icms_form_elements_Textarea::getRows()

get number of rows

getCols

int icms_form_elements_Textarea::getCols()

Get number of columns

getValue

string icms_form_elements_Textarea::getValue(bool encode)

Get initial content

Arguments

  • encode bool - <p>To sanitize the text? Default value should be "true"; however we have to set "false" for backward compatibility</p>

setValue

mixed icms_form_elements_Textarea::setValue(value)

Set initial content

Arguments

  • value mixed - <p>string</p>
Clone this wiki locally