Skip to content

icms_ipf_form_elements_Passwordtray

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_Passwordtray

Form control creating 2 password textboxes to allow the user to enter twice his password, for an object derived from icms_ipf_Object

Properties

$_key

private mixed $_key
  • Visibility: private

$_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>

render

string icms_form_elements_Tray::render()

prepare HTML to output this group

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>
Clone this wiki locally