ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  if ($item->getName() == $a_name) {
62  $found[] = $item;
63  }
64  if ($a_recursive) {
65  foreach ($item->getItemsByName($a_name) as $hit) {
66  $found[] = $hit;
67  }
68  }
69  }
70  return $found ? $found : array();
71  }
getItems()
get items
+ Here is the call graph for this function:

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