Skip to content

icms_form_elements_Button

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_Button

A button

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

Properties

$_value

private string $_value

Value

  • Visibility: private

$_type

private string $_type

Type of the button. This could be either "button", "submit", or "reset"

  • Visibility: private

Methods

__construct

mixed icms_form_elements_Button::__construct(string caption, string name, string value, string type)

Constructor

  • Visibility: public

Arguments

  • caption string - <p>Caption</p>
  • name string
  • value string
  • type string - <p>Type of the button. This could be either "button", "submit", or "reset"</p>

getValue

string icms_form_elements_Button::getValue(bool encode)

Get the initial value

  • Visibility: public

Arguments

  • encode bool - <p>To sanitizer the text?</p>

setValue

string icms_form_elements_Button::setValue(mixed value)

Set the initial value

  • Visibility: public

Arguments

  • value mixed

getType

string icms_form_elements_Button::getType()

Get the type

  • Visibility: public

render

string icms_form_elements_Button::render()

prepare HTML for output

  • Visibility: public
Clone this wiki locally