ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }
addItem($id, array $fields)
if(!array_key_exists('StateId', $_REQUEST)) $id