ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilICalProperty.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
28{
32 public function __construct(string $a_name, string $a_value = '')
33 {
34 parent::__construct($a_name, $a_value);
35 }
36
40 public function getItemsByName(string $a_name, bool $a_recursive = true): array
41 {
42 $found = [];
43 foreach ($this->getItems() as $item) {
44 if ($item->getName() == $a_name) {
45 $found[] = $item;
46 }
47 }
48 return $found;
49 }
50}
Abstract base class for all ical items (Component, Parameter and Value)
Represents a ical property.
__construct(string $a_name, string $a_value='')
@inheritDoc
getItemsByName(string $a_name, bool $a_recursive=true)
@inheritDoc
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc