Skip to content

icms_form_elements_Password

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_Password

A password field

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

Properties

$_size

private int $_size

Size of the field.

  • Visibility: private

$_maxlength

private int $_maxlength

Maximum length of the text

  • Visibility: private

$_value

private string $_value

Initial content of the field.

  • Visibility: private

$autocomplete

public bool $autocomplete = \false

Turns off the browser autocomplete function.

  • Visibility: public

$_classname

private string $_classname

Initial content of the field.

  • Visibility: private

Methods

__construct

mixed icms_form_elements_Password::__construct(string caption, string name, int size, int maxlength, int value, mixed autocomplete, mixed classname)

Constructor

  • Visibility: public

Arguments

  • caption string - <p>Caption</p>
  • name string - <p>"name" attribute</p>
  • size int - <p>Size of the field</p>
  • maxlength int - <p>Maximum length of the text</p>
  • value int - <p>Initial value of the field. <b>Warning:</b> this is readable in cleartext in the page's source!</p>
  • autocomplete mixed
  • classname mixed

getSize

int icms_form_elements_Password::getSize()

Get the field size

  • Visibility: public

getMaxlength

int icms_form_elements_Password::getMaxlength()

Get the max length

  • Visibility: public

getValue

string icms_form_elements_Password::getValue(bool encode)

Get the "value" attribute

  • Visibility: public

Arguments

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

setValue

mixed icms_form_elements_Password::setValue(value)

Set the initial value

  • Visibility: public

Arguments

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

setClassName

mixed icms_form_elements_Password::setClassName(mixed classname)

Set the initial value

  • Visibility: public

Arguments

  • classname mixed

getClassName

string icms_form_elements_Password::getClassName(bool encode)

Get the "class" attribute

  • Visibility: public

Arguments

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

render

string icms_form_elements_Password::render()

Prepare HTML for output

  • Visibility: public
Clone this wiki locally