ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilADTGroupDefinition Class Reference
+ Inheritance diagram for ilADTGroupDefinition:
+ Collaboration diagram for ilADTGroupDefinition:

Public Member Functions

 __clone ()
 
 reset ()
 
 addElement ($a_name, ilADTDefinition $a_def)
 
 hasElement ($a_name)
 
 getElement ($a_name)
 
 getElements ()
 
 isComparableTo (ilADT $a_adt)
 
- Public Member Functions inherited from ilADTDefinition
 __construct ()
 Constructor. More...
 
 getType ()
 Get type (from class/instance) More...
 
 setAllowNull ($a_value)
 Toggle null allowed status. More...
 
 isNullAllowed ()
 Is null currently allowed. More...
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 

Protected Attributes

 $elements = []
 
- Protected Attributes inherited from ilADTDefinition
 $allow_null
 

Additional Inherited Members

- Protected Member Functions inherited from ilADTDefinition
 reset ()
 Init property defaults. More...
 

Detailed Description

Definition at line 3 of file class.ilADTGroupDefinition.php.

Member Function Documentation

◆ __clone()

ilADTGroupDefinition::__clone ( )

Definition at line 7 of file class.ilADTGroupDefinition.php.

References $id.

8  {
9  if (is_array($this->elements)) {
10  foreach ($this->elements as $id => $element) {
11  $this->elements[$id] = clone $element;
12  }
13  }
14  }
if(!array_key_exists('StateId', $_REQUEST)) $id

◆ addElement()

ilADTGroupDefinition::addElement (   $a_name,
ilADTDefinition  $a_def 
)

Definition at line 29 of file class.ilADTGroupDefinition.php.

30  {
31  $this->elements[$a_name] = $a_def;
32  }

◆ getElement()

ilADTGroupDefinition::getElement (   $a_name)

Definition at line 39 of file class.ilADTGroupDefinition.php.

References hasElement().

40  {
41  if ($this->hasElement($a_name)) {
42  return $this->elements[$a_name];
43  }
44  }
+ Here is the call graph for this function:

◆ getElements()

ilADTGroupDefinition::getElements ( )

Definition at line 46 of file class.ilADTGroupDefinition.php.

References $elements.

◆ hasElement()

ilADTGroupDefinition::hasElement (   $a_name)

Definition at line 34 of file class.ilADTGroupDefinition.php.

Referenced by getElement().

35  {
36  return array_key_exists($a_name, $this->elements);
37  }
+ Here is the caller graph for this function:

◆ isComparableTo()

ilADTGroupDefinition::isComparableTo ( ilADT  $a_adt)

Definition at line 54 of file class.ilADTGroupDefinition.php.

55  {
56  // has to be group-based
57  return ($a_adt instanceof ilADTGroup);
58  }

◆ reset()

ilADTGroupDefinition::reset ( )

Definition at line 19 of file class.ilADTGroupDefinition.php.

References array.

20  {
21  parent::reset();
22 
23  $this->elements = array();
24  }
Create styles array
The data for the language used.

Field Documentation

◆ $elements

ilADTGroupDefinition::$elements = []
protected

Definition at line 5 of file class.ilADTGroupDefinition.php.

Referenced by getElements().


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