Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
 
3
/***************************************************************************
4
 *   Copyright (C) 2009-2011 by Geo Varghese(www.seopanel.in)  	   *
5
 *   sendtogeo@gmail.com   												   *
6
 *                                                                         *
7
 *   This program is free software; you can redistribute it and/or modify  *
8
 *   it under the terms of the GNU General Public License as published by  *
9
 *   the Free Software Foundation; either version 2 of the License, or     *
10
 *   (at your option) any later version.                                   *
11
 *                                                                         *
12
 *   This program is distributed in the hope that it will be useful,       *
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
15
 *   GNU General Public License for more details.                          *
16
 *                                                                         *
17
 *   You should have received a copy of the GNU General Public License     *
18
 *   along with this program; if not, write to the                         *
19
 *   Free Software Foundation, Inc.,                                       *
20
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
21
 ***************************************************************************/
22
 
23
/**
24
 * Class defines all functions for managing search engine API
25
 *
26
 * @author Seo panel
27
 *
28
 */
29
class SearchengineAPI extends Seopanel{
30
 
31
	/**
32
	 * the main controller to get details for api
33
	 * @var Object
34
	 */
35
	var $ctrler;
36
 
37
	/**
38
	 * The list contains search engine details
39
	 * @var Array
40
	 */
41
	var $seList;
42
 
43
	/**
44
	 * The constructor of API
45
	 */
46
	function __construct() {
47
		$this->ctrler = new SearchEngineController();
48
	}
49
 
50
	/**
51
	 * function to get all search engines
52
	 * @param Array $info			The input details to process the api
53
	 * 		$info['status']  		The status of the search engine
54
	 * 		$info['search']  		The search keyword
55
	 * @return Array $returnInfo  	Contains informations about keyword
56
	 */
57
	function getSearchengines($info) {
58
	    $returnInfo = array();
59
	    $resultList = $this->ctrler->__searchSerachEngines($info);
60
        $returnInfo['response'] = 'success';
61
        $returnInfo['result'] = $resultList;
62
        return $returnInfo;
63
	}
64
 
65
}
66
?>