ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailSearchResult.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
24 protected array $result = [];
25
26 public function addItem(int $id, array $fields): void
27 {
28 $this->result[$id] = $fields;
29 }
30
34 public function getIds(): array
35 {
36 return array_keys($this->result);
37 }
38
39 public function getFields(int $id): array
40 {
41 if (!isset($this->result[$id])) {
42 throw new OutOfBoundsException('mail_missing_result_fields');
43 }
44
45 return $this->result[$id];
46 }
47}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
addItem(int $id, array $fields)