-
Notifications
You must be signed in to change notification settings - Fork 35
icms_form_elements_Tray
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 group of form elements
- Class name: icms_form_elements_Tray
- Namespace:
- Parent class: icms_form_Element
private array $_elements = array()
array of form element objects
- Visibility: private
private array $_required = array()
required elements
- Visibility: private
private string $_delimeter
HTML to separate the elements
- Visibility: private
mixed icms_form_elements_Tray::__construct(string caption, string delimeter, string name)
constructor
- Visibility: public
- caption string - <p>Caption for the group.</p>
- delimeter string - <p>HTML to separate the elements</p>
- name string - <p>Name of tray</p>
bool icms_form_elements_Tray::isContainer()
Is this element a container of other elements?
- Visibility: public
bool icms_form_elements_Tray::isRequired()
Find out if there are required elements.
- Visibility: public
mixed icms_form_elements_Tray::addElement(\icms_form_Element formElement, bool required)
Add an element to the group
- Visibility: public
- formElement icms_form_Element - <p>Form element to add</p>
- required bool - <p>Is required?</p>
\icms_form_Element[] icms_form_elements_Tray::getRequired()
get an array of "required" form elements
- Visibility: public
\icms_form_Element[] icms_form_elements_Tray::getElements(bool recurse)
Get an array of the elements in this group
- Visibility: public
- recurse bool - <p>get elements recursively?</p>
string icms_form_elements_Tray::getDelimeter(bool encode)
Get the delimiter of this group
- Visibility: public
- encode bool - <p>To sanitizer the text?</p>
string icms_form_elements_Tray::render()
prepare HTML to output this group
- Visibility: public