Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
SelectGroupElement Class Reference
Inheritance diagram for SelectGroupElement:
SelectElement WidgetElement

Public Member Functions

 __construct ($label, $elements=[])
 
 setElements ($elements)
 
 getElements ()
 
 addElement (SelectElement $element)
 
- Public Member Functions inherited from SelectElement
 __construct ($id, $label, $active=false, $tooltip=null)
 
 setId ($id)
 
 setLabel ($label)
 
 getId ()
 
 getLabel ()
 
 getTooltip ()
 
 setActive ($active=true)
 
 isActive ()
 
 setAsHeader ($is_header=true)
 
 isHeader ()
 
 setIndentLevel ($level)
 
 getIndentLevel ()
 
 render ()
 
- Public Member Functions inherited from WidgetElement
 __construct ($content= '')
 
 render ()
 

Protected Attributes

 $elements
 
- Protected Attributes inherited from SelectElement
 $id
 
 $label
 
 $active
 
 $tooltip
 
 $is_header = false
 
 $indent_level = null
 
- Protected Attributes inherited from WidgetElement
 $content
 

Detailed Description

Model for a select group element of the select widget.

Author
Stefan Osterloh s.ost.nosp@m.erlo.nosp@m.h@uni.nosp@m.-old.nosp@m.enbur.nosp@m.g.de GPL2 or any later version
Since
Stud.IP 3.5

Constructor & Destructor Documentation

__construct (   $label,
  $elements = [] 
)

Constructs the element with an id (value of the according option element) and a label (text content of the according option element).

Parameters
String$labelLabel content of the element
Array$elementsSelectElement-Objects for Optgroup

Member Function Documentation

addElement ( SelectElement  $element)

adds a single element of type SelectElement

Parameters
SelectElement$element
getElements ( )
Returns
Array with SelectElements
setElements (   $elements)

Sets the SelectElement-Objects for this Element

Parameters
Array$elements

Field Documentation

$elements
protected

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