ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilICalItem.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
25abstract class ilICalItem
26{
27 protected string $name = '';
28 protected string $value = '';
29 protected array $items = [];
30
31 public function __construct(string $a_name, string $a_value = '')
32 {
33 $this->name = $a_name;
34 $this->value = $a_value;
35 }
36
37 public function setValue(string $a_value): void
38 {
39 $this->value = $a_value;
40 }
41
42 public function getValue(): string
43 {
44 return trim($this->value);
45 }
46
47 public function getItems(): array
48 {
49 return $this->items;
50 }
51
52 public function getName(): string
53 {
54 return $this->name;
55 }
56
57 public function getItemsByName(string $a_name, bool $a_recursive = true): array
58 {
59 return [];
60 }
61
62 public function addItem(ilICalItem $a_item): void
63 {
64 $this->items[] = $a_item;
65 }
66}
Abstract base class for all ical items (Component, Parameter and Value)
getItemsByName(string $a_name, bool $a_recursive=true)
addItem(ilICalItem $a_item)
setValue(string $a_value)
__construct(string $a_name, string $a_value='')