Highway to PSR2
[openemr.git] / portal / patient / fwk / libs / verysimple / Search / SearchEngine.php
blob1b179cb9430d2159f8308c30ebe5383c26186fa3
1 <?php
2 /**
3 * @package verysimple::Search
4 */
6 /**
7 * include required files
8 */
9 require_once("SearchRank.php");
11 /**
12 * This is a base class for providing SearchEngine functionality
14 * @package verysimple::Search
15 * @author VerySimple Inc.
16 * @copyright 1997-2007 VerySimple, Inc.
17 * @license http://www.gnu.org/licenses/lgpl.html LGPL
18 * @version 1.0
20 class SearchEngine
22 protected $Key;
23 protected $Pass;
24 public $FailedRequests = 0;
26 /**
27 * Constructor for SearchEngine instantiation
29 * @param string $key
30 * the API key for this search engine
31 * @param string $pass
32 * the API password (if required)
34 final function __construct($key, $pass = "")
36 $this->Key = $key;
37 $this->Pass = $pass;
39 $this->Init();
42 /**
43 * Init is called by the constructor and can be overridden by inherited classes
45 function Init()