ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilADTGroupDefinition Class Reference
+ Inheritance diagram for ilADTGroupDefinition:
+ Collaboration diagram for ilADTGroupDefinition:

Public Member Functions

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

Protected Attributes

 $elements
- Protected Attributes inherited from ilADTDefinition
 $allow_null

Detailed Description

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

Member Function Documentation

ilADTGroupDefinition::__clone ( )

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

{
if(is_array($this->elements))
{
foreach($this->elements as $id => $element)
{
$this->elements[$id] = clone $element;
}
}
}
ilADTGroupDefinition::addElement (   $a_name,
ilADTDefinition  $a_def 
)

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

{
$this->elements[$a_name] = $a_def;
}
ilADTGroupDefinition::getElement (   $a_name)

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

References hasElement().

{
if($this->hasElement($a_name))
{
return $this->elements[$a_name];
}
}

+ Here is the call graph for this function:

ilADTGroupDefinition::getElements ( )

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

References $elements.

{
}
ilADTGroupDefinition::hasElement (   $a_name)

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

Referenced by getElement().

{
return array_key_exists($a_name, $this->elements);
}

+ Here is the caller graph for this function:

ilADTGroupDefinition::isComparableTo ( ilADT  $a_adt)

Check if given ADT is comparable to self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADTDefinition.

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

{
// has to be group-based
return ($a_adt instanceof ilADTGroup);
}
ilADTGroupDefinition::reset ( )

Init property defaults.

Reimplemented from ilADTDefinition.

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

{
$this->elements = array();
}

Field Documentation

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: