ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 (string $a_name)
 
 getElements ()
 
 isComparableTo (ilADT $a_adt)
 
- Public Member Functions inherited from ilADTDefinition
 __construct ()
 
 getType ()
 Get type (from class/instance) More...
 
 reset ()
 Init property defaults. More...
 
 setAllowNull (bool $a_value)
 Toggle null allowed status. More...
 
 isNullAllowed ()
 
 isComparableTo (ilADT $a_adt)
 Check if given ADT is comparable to self. More...
 

Protected Attributes

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

Detailed Description

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

Member Function Documentation

◆ __clone()

ilADTGroupDefinition::__clone ( )

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

References $id.

10  {
11  if (is_array($this->elements)) {
12  foreach ($this->elements as $id => $element) {
13  $this->elements[$id] = clone $element;
14  }
15  }
16  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ addElement()

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

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

28  : void
29  {
30  $this->elements[$a_name] = $a_def;
31  }

◆ getElement()

ilADTGroupDefinition::getElement ( string  $a_name)

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

References hasElement().

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

◆ getElements()

ilADTGroupDefinition::getElements ( )

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

References $elements.

46  : array
47  {
48  return $this->elements;
49  }

◆ hasElement()

ilADTGroupDefinition::hasElement (   $a_name)

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

Referenced by getElement().

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

◆ isComparableTo()

ilADTGroupDefinition::isComparableTo ( ilADT  $a_adt)

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

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

◆ reset()

ilADTGroupDefinition::reset ( )

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

20  : void
21  {
22  parent::reset();
23  $this->elements = array();
24  }

Field Documentation

◆ $elements

array ilADTGroupDefinition::$elements = []
protected

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

Referenced by getElements().


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