ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
48 throw new OutOfBoundsException('mail_missing_result_fields');
49 }
50
51 return $this->result[$id];
52 }
53}
addItem($id, array $fields)