ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilMailSearchResult Class Reference
+ Collaboration diagram for ilMailSearchResult:

Public Member Functions

 __construct ()
 
 addItem ($id, array $fields)
 
 getIds ()
 
 getFields ($id)
 

Protected Attributes

 $result = array()
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 9 of file class.ilMailSearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailSearchResult::__construct ( )

Definition at line 19 of file class.ilMailSearchResult.php.

20  {
21  }

Member Function Documentation

◆ addItem()

ilMailSearchResult::addItem (   $id,
array  $fields 
)
Parameters
array$item

Definition at line 26 of file class.ilMailSearchResult.php.

27  {
28  $this->result[$id] = $fields;
29  }

◆ getFields()

ilMailSearchResult::getFields (   $id)
Parameters
integer$id
Returns
array
Exceptions
OutOfBoundsException

Definition at line 44 of file class.ilMailSearchResult.php.

45  {
46  if(!isset($this->result[$id]))
47  {
48  throw new OutOfBoundsException('mail_missing_result_fields');
49  }
50 
51  return $this->result[$id];
52  }

◆ getIds()

ilMailSearchResult::getIds ( )
Returns
array

Definition at line 34 of file class.ilMailSearchResult.php.

35  {
36  return array_keys($this->result);
37  }

Field Documentation

◆ $result

ilMailSearchResult::$result = array()
protected

Definition at line 14 of file class.ilMailSearchResult.php.


The documentation for this class was generated from the following file: