ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilICalComponent Class Reference

Represents a ical component. More...

+ Inheritance diagram for ilICalComponent:
+ Collaboration diagram for ilICalComponent:

Public Member Functions

 __construct ($a_name)
 Constructor.
 getItemsByName ($a_name, $a_recursive=true)
 get items by name
- Public Member Functions inherited from ilICalItem
 __construct ($a_name, $a_value= '')
 Constructor.
 setValue ($a_value)
 set value
 getValue ()
 get value
 getItems ()
 get items
 getName ()
 get name
 addItem ($a_item)
 Add item.

Additional Inherited Members

- Protected Attributes inherited from ilICalItem
 $name = ''
 $value = ''
 $items = array()

Detailed Description

Represents a ical component.

E.g. VEVENT

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

ilICalComponent::__construct (   $a_name)

Constructor.

public

Parameters
stringname of component

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

{
}

Member Function Documentation

ilICalComponent::getItemsByName (   $a_name,
  $a_recursive = true 
)

get items by name

public

Parameters
stringname

Reimplemented from ilICalItem.

Definition at line 58 of file class.ilICalComponent.php.

References ilICalItem\getItems().

{
foreach($this->getItems() as $item)
{
if($item->getName() == $a_name)
{
$found[] = $item;
}
if($a_recursive)
{
foreach($item->getItemsByName($a_name) as $hit)
{
$found[] = $hit;
}
}
}
return $found ? $found : array();
}

+ Here is the call graph for this function:


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