Skip to content

icms_ipf_form_elements_Image

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_ipf_form_elements_Image

Form control creating an hidden field for an object derived from icms_ipf_Object

Properties

$_elements

private array $_elements = array()

array of form element objects

  • Visibility: private

$_required

private array $_required = array()

required elements

  • Visibility: private

$_delimeter

private string $_delimeter

HTML to separate the elements

  • Visibility: private

Methods

__construct

mixed icms_form_elements_Tray::__construct(string caption, string delimeter, string name)

constructor

Arguments

  • caption string - <p>Caption for the group.</p>
  • delimeter string - <p>HTML to separate the elements</p>
  • name string - <p>Name of tray</p>

isContainer

bool icms_form_elements_Tray::isContainer()

Is this element a container of other elements?

isRequired

bool icms_form_elements_Tray::isRequired()

Find out if there are required elements.

addElement

mixed icms_form_elements_Tray::addElement(\icms_form_Element formElement, bool required)

Add an element to the group

Arguments

  • formElement icms_form_Element - <p>Form element to add</p>
  • required bool - <p>Is required?</p>

getRequired

\icms_form_Element[] icms_form_elements_Tray::getRequired()

get an array of "required" form elements

getElements

\icms_form_Element[] icms_form_elements_Tray::getElements(bool recurse)

Get an array of the elements in this group

Arguments

  • recurse bool - <p>get elements recursively?</p>

getDelimeter

string icms_form_elements_Tray::getDelimeter(bool encode)

Get the delimiter of this group

Arguments

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

render

string icms_form_elements_Tray::render()

prepare HTML to output this group

Clone this wiki locally