UIElementArray Class Reference

Inheritance diagram for UIElementArray:
UIElement FieldSet FormContainer FormTable FormTableRow PlusMinus

List of all members.

Public Member Functions

 UIElementArray ($id)
 prepend ($element)
 append ($element)
 remove ($elementId="")
 insertBefore ($element, $beforeId)
 insertAfter ($element, $afterId)
 getElementById ($id)
 getElementByName ($name)
 render ()
 reset ()
 validate ()

Public Attributes

 $elements

Member Function Documentation

UIElementArray::append ( element  ) 

Appends the UIElement to the end of this UIElementArray

Parameters:
UIElement $element The element to append
Returns:
UIElementArray this UIElementArray
UIElementArray::getElementById ( id  ) 

Returns the UIElement with the given id If there are two elements with the same id, the first one is returned

Parameters:
string $id The id of the UIElement
Returns:
UIElement The UIElement with the given id
UIElementArray::getElementByName ( name  ) 

Returns the UIElement with the given name If there are two elements with the same name, the first one is returned

Parameters:
string $name The name of the UIElement
Returns:
UIElement The UIElement with the given name
UIElementArray::insertAfter ( element,
afterId 
)

Inserts a UIElement after the UIElement with the given id

Parameters:
UIElement $element The UIElement to insert
string $beforeId The id of the UIElement to add after
Returns:
UIElementArray this UIElementArray
UIElementArray::insertBefore ( element,
beforeId 
)

Inserts a UIElement before the UIElement with the given id

Parameters:
UIElement $element The UIElement to insert
string $beforeId The id of the UIElement to add before
Returns:
UIElementArray this UIElementArray
UIElementArray::prepend ( element  ) 

Prepends the UIElement to the beginning of this UIElementArray

Parameters:
UIElement $element The element to append
Returns:
UIElementArray this UIElementArray
UIElementArray::remove ( elementId = ""  ) 

Removes the UIElement with the given id

Parameters:
string $elementId The id of the UIElement to remove
UIElementArray::reset (  ) 

Resets the UIElement's value to the default, and unsets the $_POST variable's index

Reimplemented from UIElement.


The documentation for this class was generated from the following file:

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1