-
Notifications
You must be signed in to change notification settings - Fork 35
icms_ipf_form_elements_Language
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!
Form control creating an image upload element for an object derived from icms_ipf_Object
- Class name: icms_ipf_form_elements_Language
- Namespace:
- Parent class: icms_form_elements_select_Lang
private array $_options = array()
Options
- Visibility: private
private bool $_multiple = \false
Allow multiple selections?
- Visibility: private
private int $_size
Number of rows. "1" makes a dropdown list.
- Visibility: private
private array $_value = array()
Pre-selcted values
- Visibility: private
mixed icms_form_elements_Select::__construct(string caption, string name, mixed value, int size, bool multiple)
Constructor
- Visibility: public
- This method is defined by icms_form_elements_Select
- caption string - <p>Caption</p>
- name string - <p>"name" attribute</p>
- value mixed - <p>Pre-selected value (or array of them).</p>
- size int - <p>Number or rows. "1" makes a drop-down-list</p>
- multiple bool - <p>Allow multiple selections?</p>
bool icms_form_elements_Select::isMultiple()
Are multiple selections allowed?
- Visibility: public
- This method is defined by icms_form_elements_Select
int icms_form_elements_Select::getSize()
Get the size
- Visibility: public
- This method is defined by icms_form_elements_Select
array icms_form_elements_Select::getValue(bool encode)
Get an array of pre-selected values
- Visibility: public
- This method is defined by icms_form_elements_Select
- encode bool - <p>To sanitizer the text?</p>
mixed icms_form_elements_Select::setValue(value)
Set pre-selected values
- Visibility: public
- This method is defined by icms_form_elements_Select
- value mixed - <p>mixed</p>
mixed icms_form_elements_Select::addOption(string value, string name)
Add an option
- Visibility: public
- This method is defined by icms_form_elements_Select
- value string - <p>"value" attribute</p>
- name string - <p>"name" attribute</p>
mixed icms_form_elements_Select::addOptionArray(array options)
Add multiple options
- Visibility: public
- This method is defined by icms_form_elements_Select
- options array - <p>Associative array of value->name pairs</p>
array icms_form_elements_Select::getOptions(int encode)
Get an array with all the options
Note: both name and value should be sanitized. However for backward compatibility, only value is sanitized for now.
- Visibility: public
- This method is defined by icms_form_elements_Select
- encode int - <p>To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name</p>
string icms_form_elements_Select::render()
Prepare HTML for output
- Visibility: public
- This method is defined by icms_form_elements_Select