ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMailSearchResult.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
10{
14 protected $result = array();
15
19 public function __construct()
20 {
21 }
22
26 public function addItem($id, array $fields)
27 {
28 $this->result[$id] = $fields;
29 }
30
34 public function getIds()
35 {
36 return array_keys($this->result);
37 }
38
44 public function getFields($id)
45 {
46 if (!isset($this->result[$id])) {
47 throw new OutOfBoundsException('mail_missing_result_fields');
48 }
49
50 return $this->result[$id];
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
addItem($id, array $fields)