ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilMailLuceneSearcher Class Reference
+ Collaboration diagram for ilMailLuceneSearcher:

Public Member Functions

 __construct (protected ilLuceneQueryParser $query_parser, protected ilMailSearchResult $result)
 
 search (int $user_id, int $mail_folder_id)
 

Protected Attributes

ilSetting $settings
 

Detailed Description

Definition at line 21 of file class.ilMailLuceneSearcher.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailLuceneSearcher::__construct ( protected ilLuceneQueryParser  $query_parser,
protected ilMailSearchResult  $result 
)

Definition at line 25 of file class.ilMailLuceneSearcher.php.

References $DIC, and ILIAS\Repository\settings().

26  {
27  global $DIC;
28  $this->settings = $DIC->settings();
29  }
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ search()

ilMailLuceneSearcher::search ( int  $user_id,
int  $mail_folder_id 
)

Definition at line 31 of file class.ilMailLuceneSearcher.php.

References Vendor\Package\$e, ilRpcClientFactory\factory(), and ilLoggerFactory\getLogger().

31  : void
32  {
33  if ($this->query_parser->getQuery() === '') {
34  throw new ilMailException('mail_search_query_missing');
35  }
36 
37  try {
38  $xml = ilRpcClientFactory::factory('RPCSearchHandler')->searchMail();
39  } catch (Exception $e) {
40  ilLoggerFactory::getLogger('mail')->critical($e->getMessage());
41  throw $e;
42  }
43 
44  $parser = new ilMailSearchLuceneResultParser($this->result, $xml);
45  $parser->parse();
46  }
static getLogger(string $a_component_id)
Get component logger.
static factory(string $a_package, int $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilSetting ilMailLuceneSearcher::$settings
protected

Definition at line 23 of file class.ilMailLuceneSearcher.php.


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