-
Notifications
You must be signed in to change notification settings - Fork 35
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!
A password field
- Class name: icms_form_elements_Password
- Namespace:
- Parent class: icms_form_Element
private int $_size
Size of the field.
- Visibility: private
private int $_maxlength
Maximum length of the text
- Visibility: private
private string $_value
Initial content of the field.
- Visibility: private
public bool $autocomplete = \false
Turns off the browser autocomplete function.
- Visibility: public
private string $_classname
Initial content of the field.
- Visibility: private
mixed icms_form_elements_Password::__construct(string caption, string name, int size, int maxlength, int value, mixed autocomplete, mixed classname)
Constructor
- Visibility: public
- 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
int icms_form_elements_Password::getSize()
Get the field size
- Visibility: public
int icms_form_elements_Password::getMaxlength()
Get the max length
- Visibility: public
string icms_form_elements_Password::getValue(bool encode)
Get the "value" attribute
- Visibility: public
- encode bool - <p>To sanitizer the text?</p>
mixed icms_form_elements_Password::setValue(value)
Set the initial value
- Visibility: public
- value mixed - <p>string</p>
mixed icms_form_elements_Password::setClassName(mixed classname)
Set the initial value
- Visibility: public
- classname mixed
string icms_form_elements_Password::getClassName(bool encode)
Get the "class" attribute
- Visibility: public
- encode bool - <p>To sanitizer the text?</p>
string icms_form_elements_Password::render()
Prepare HTML for output
- Visibility: public