ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilICalProperty.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
Represents a ical property.
__construct(string $a_name, string $a_value='')
__construct(Container $dic, ilPlugin $plugin)
getItemsByName(string $a_name, bool $a_recursive=true)
Abstract base class for all ical items (Component, Parameter and Value)