ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilICalComponent Class Reference

Represents a ical component. More...

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

Public Member Functions

 __construct ($a_name)
 Constructor @access public. More...
 
 getItemsByName (string $a_name, bool $a_recursive=true)
 get items by name @access 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 @access public.

Parameters
stringname of component

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

35 {
36 parent::__construct($a_name);
37 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ 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 @access public

Parameters
stringname

Reimplemented from ilICalItem.

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

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 }

References ilICalItem\getItems().

+ Here is the call graph for this function:

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