ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMailAutoCompleteSearch Class Reference

Class ilMailAutoCompleteSearch. More...

+ Collaboration diagram for ilMailAutoCompleteSearch:

Public Member Functions

 __construct (ilMailAutoCompleteRecipientResult $result)
 addProvider (Iterator $provider)
 search ()

Protected Attributes

 $result
 $providers = array()

Detailed Description

Constructor & Destructor Documentation

ilMailAutoCompleteSearch::__construct ( ilMailAutoCompleteRecipientResult  $result)
Parameters
ilMailAutoCompleteRecipientResult$result

Definition at line 22 of file class.ilMailAutoCompleteSearch.php.

References $result.

{
$this->result = $result;
}

Member Function Documentation

ilMailAutoCompleteSearch::addProvider ( Iterator  $provider)
Parameters
Iterator$provider

Definition at line 30 of file class.ilMailAutoCompleteSearch.php.

{
$this->providers[] = $provider;
}
ilMailAutoCompleteSearch::search ( )

Definition at line 38 of file class.ilMailAutoCompleteSearch.php.

References $row.

{
foreach($this->providers as $provider)
{
foreach($provider as $row)
{
if(!$this->result->isResultAddable())
{
$this->result->result['hasMoreResults'] = true;
break 2;
}
$this->result->addResult($row['login'], $row['firstname'], $row['lastname']);
}
}
}

Field Documentation

ilMailAutoCompleteSearch::$providers = array()
protected

Definition at line 17 of file class.ilMailAutoCompleteSearch.php.

ilMailAutoCompleteSearch::$result
protected

Definition at line 12 of file class.ilMailAutoCompleteSearch.php.

Referenced by __construct().


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