ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilMailSearchResult.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
addItem(int $id, array $fields)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23