ILIAS  release_4-4 Revision
ilICalComponent Class Reference

Represents a ical component. More...

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

Public Member Functions

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

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

◆ __construct()

ilICalComponent::__construct (   $a_name)

Constructor.

public

Parameters
stringname of component

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

47  {
48  parent::__construct($a_name);
49  }

Member Function Documentation

◆ getItemsByName()

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

get items by name

public

Parameters
stringname

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

References ilICalItem\getItems().

59  {
60  foreach($this->getItems() as $item)
61  {
62  if($item->getName() == $a_name)
63  {
64  $found[] = $item;
65  }
66  if($a_recursive)
67  {
68  foreach($item->getItemsByName($a_name) as $hit)
69  {
70  $found[] = $hit;
71  }
72  }
73  }
74  return $found ? $found : array();
75  }
getItems()
get items
+ Here is the call graph for this function:

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