. * * Consult LICENSE file for details ************************************************/ interface ISearchProvider { const SEARCH_GAL = "GAL"; const SEARCH_MAILBOX = "MAILBOX"; const SEARCH_DOCUMENTLIBRARY = "DOCUMENTLIBRARY"; /** * Constructor * * @throws StatusException, FatalException */ /** * Indicates if a search type is supported by this SearchProvider * Currently only the type SEARCH_GAL (Global Address List) is implemented * * @param string $searchtype * * @access public * @return boolean */ public function SupportsType($searchtype); /** * Searches the GAL * * @param string $searchquery * @param string $searchrange * * @access public * @return array * @throws StatusException */ public function GetGALSearchResults($searchquery, $searchrange); /** * Searches for the emails on the server * * @param ContentParameter $cpo * * @return array */ public function GetMailboxSearchResults($cpo); /** * Terminates a search for a given PID * * @param int $pid * * @return boolean */ public function TerminateSearch($pid); /** * Disconnects from the current search provider * * @access public * @return boolean */ public function Disconnect(); } ?>