ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilICalComponent Class Reference

Represents a ical component. More...

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

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from ilICalItem
string $name = ''
 
string $value = ''
 
array $items = []
 

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 27 of file class.ilICalComponent.php.

Constructor & Destructor Documentation

◆ __construct()

ilICalComponent::__construct (   $a_name)

Constructor public.

Parameters
stringname of component

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

References ILIAS\GlobalScreen\Provider\__construct().

35  {
36  parent::__construct($a_name);
37  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getItemsByName()

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

get items by name public

Parameters
stringname

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

References ilICalItem\getItems().

44  : array
45  {
46  $found = [];
47  foreach ($this->getItems() as $item) {
48  if ($item->getName() == $a_name) {
49  $found[] = $item;
50  }
51  if ($a_recursive) {
52  foreach ($item->getItemsByName($a_name) as $hit) {
53  $found[] = $hit;
54  }
55  }
56  }
57  return $found;
58  }
+ Here is the call graph for this function:

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