ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
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.

8  {
9  if(is_array($this->elements))
10  {
11  foreach($this->elements as $id => $element)
12  {
13  $this->elements[$id] = clone $element;
14  }
15  }
16  }

◆ addElement()

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

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

32  {
33  $this->elements[$a_name] = $a_def;
34  }

◆ getElement()

ilADTGroupDefinition::getElement (   $a_name)

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

References hasElement().

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

◆ getElements()

ilADTGroupDefinition::getElements ( )

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

References $elements.

◆ hasElement()

ilADTGroupDefinition::hasElement (   $a_name)

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

Referenced by getElement().

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

◆ isComparableTo()

ilADTGroupDefinition::isComparableTo ( ilADT  $a_adt)

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

58  {
59  // has to be group-based
60  return ($a_adt instanceof ilADTGroup);
61  }

◆ reset()

ilADTGroupDefinition::reset ( )

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

22  {
23  parent::reset();
24 
25  $this->elements = array();
26  }

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: