Skip to content

icms_form_elements_Textarea

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_Textarea

A textarea

  • Class name: icms_form_elements_Textarea
  • Namespace:
  • Parent class: icms_form_Element

Properties

$_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

  • Visibility: public

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>

getRows

int icms_form_elements_Textarea::getRows()

get number of rows

  • Visibility: public

getCols

int icms_form_elements_Textarea::getCols()

Get number of columns

  • Visibility: public

getValue

string icms_form_elements_Textarea::getValue(bool encode)

Get initial content

  • Visibility: public

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

  • Visibility: public

Arguments

  • value mixed - <p>string</p>

render

string icms_form_elements_Textarea::render()

prepare HTML for output

  • Visibility: public
Clone this wiki locally