Source for file Search.php
Documentation is available at Search.php
* LICENSE: This source file is subject to the New BSD license that is
* available through the world-wide-web at the following URI:
* http://www.opensource.org/licenses/bsd-license.php. If you did not receive
* a copy of the New BSD License and are unable to obtain it through the web,
* please send a note to license@php.net so we can mail you a copy immediately.
* @package Services_Yahoo_JP
* @author Tetsuya Nakase <phpizer@gmail.com>
* @copyright 2008 Tetsuya Nakase
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: Search.php,v 1.1 2008/04/28 15:59:31 tetsuya Exp $
* @link http://phpize.net
require_once 'Services/Yahoo/Search.php';
* Search dispatcher class
* This class provides a method to create a concrete instance of one
* of the supported search types (Web, Images, Videos).
* @package Services_Yahoo_JP
* @author Tetsuya Nakase <phpizer@gmail.com>
* @copyright 2008 Tetsuya Nakase
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version Release: 0.0.1
* @link http://phpize.net
* Attempts to return a concrete instance of a search class
* @param string $type Can be one of web, image or video
* @return object Concrete instance of a search class based on the paramter
* @throws Services_Yahoo_Exception
include_once 'Services/Yahoo/JP/Search/' . $type . '.php';
$classname = 'Services_Yahoo_JP_Search_' . ucfirst($type);
throw new Services_Yahoo_Exception ('Unknown search type ' . $type);
Documentation generated on Fri, 19 Sep 2008 21:30:07 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|