ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 21 of file class.ilADTGroupDefinition.php.

Member Function Documentation

◆ __clone()

ilADTGroupDefinition::__clone ( )

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

References $id.

26  {
27  if (is_array($this->elements)) {
28  foreach ($this->elements as $id => $element) {
29  $this->elements[$id] = clone $element;
30  }
31  }
32  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ addElement()

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

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

44  : void
45  {
46  $this->elements[$a_name] = $a_def;
47  }

◆ getElement()

ilADTGroupDefinition::getElement ( string  $a_name)

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

References hasElement(), and null.

55  {
56  if ($this->hasElement($a_name)) {
57  return $this->elements[$a_name];
58  }
59  return null;
60  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ADT definition base class.
+ Here is the call graph for this function:

◆ getElements()

ilADTGroupDefinition::getElements ( )

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

References $elements.

62  : array
63  {
64  return $this->elements;
65  }

◆ hasElement()

ilADTGroupDefinition::hasElement (   $a_name)

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

Referenced by getElement().

49  : bool
50  {
51  return array_key_exists($a_name, $this->elements);
52  }
+ Here is the caller graph for this function:

◆ isComparableTo()

ilADTGroupDefinition::isComparableTo ( ilADT  $a_adt)

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

69  : bool
70  {
71  // has to be group-based
72  return ($a_adt instanceof ilADTGroup);
73  }

◆ reset()

ilADTGroupDefinition::reset ( )

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

36  : void
37  {
38  parent::reset();
39  $this->elements = array();
40  }

Field Documentation

◆ $elements

array ilADTGroupDefinition::$elements = []
protected

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

Referenced by getElements().


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