Back to index

d-push  2.0
searchprovider.php
Go to the documentation of this file.
00001 <?php
00002 /***********************************************
00003 * File      :   searchprovider.php
00004 * Project   :   Z-Push
00005 * Descr     :   The searchprovider can be used to
00006 *               implement an alternative way perform
00007 *               searches.
00008 *               This is a stub implementation.
00009 *
00010 * Created   :   03.08.2010
00011 *
00012 * Copyright 2007 - 2011 Zarafa Deutschland GmbH
00013 *
00014 * This program is free software: you can redistribute it and/or modify
00015 * it under the terms of the GNU Affero General Public License, version 3,
00016 * as published by the Free Software Foundation with the following additional
00017 * term according to sec. 7:
00018 *
00019 * According to sec. 7 of the GNU Affero General Public License, version 3,
00020 * the terms of the AGPL are supplemented with the following terms:
00021 *
00022 * "Zarafa" is a registered trademark of Zarafa B.V.
00023 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00024 * The licensing of the Program under the AGPL does not imply a trademark license.
00025 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00026 *
00027 * However, if you propagate an unmodified version of the Program you are
00028 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00029 * Furthermore you may use our trademarks where it is necessary to indicate
00030 * the intended purpose of a product or service provided you use it in accordance
00031 * with honest practices in industrial or commercial matters.
00032 * If you want to propagate modified versions of the Program under the name "Z-Push",
00033 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00034 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00035 *
00036 * This program is distributed in the hope that it will be useful,
00037 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00038 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00039 * GNU Affero General Public License for more details.
00040 *
00041 * You should have received a copy of the GNU Affero General Public License
00042 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00043 *
00044 * Consult LICENSE file for details
00045 ************************************************/
00046 
00047 /*********************************************************************
00048  * The SearchProvider is a stub to implement own search funtionality
00049  *
00050  * If you wish to implement an alternative search method, you should implement the
00051  * ISearchProvider interface like the BackendSearchLDAP backend
00052  */
00053 class SearchProvider implements ISearchProvider{
00054 
00063     public function SearchProvider() {
00064     }
00065 
00075     public function SupportsType($searchtype) {
00076         return ($searchtype == ISearchProvider::SEARCH_GAL);
00077     }
00078 
00089     public function GetGALSearchResults($searchquery, $searchrange) {
00090        return array();
00091     }
00092 
00100     public function GetMailboxSearchResults($cpo){
00101         return array();
00102     }
00103 
00111     public function TerminateSearch($pid) {
00112         return true;
00113     }
00114 
00121     public function Disconnect() {
00122         return true;
00123     }
00124 }
00125 ?>