ILIAS  release_8 Revision v8.24
class.ilMailSearchResult.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28 protected array $result = [];
29
30 public function __construct()
31 {
32 }
33
34 public function addItem(int $id, array $fields): void
35 {
36 $this->result[$id] = $fields;
37 }
38
42 public function getIds(): array
43 {
44 return array_keys($this->result);
45 }
46
51 public function getFields(int $id): array
52 {
53 if (!isset($this->result[$id])) {
54 throw new OutOfBoundsException('mail_missing_result_fields');
55 }
56
57 return $this->result[$id];
58 }
59}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
addItem(int $id, array $fields)