Source for file AbstractContentAnalysis.php
Documentation is available at AbstractContentAnalysis.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Copyright 2005-2006 Martin Jansen
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* @package Services_Yahoo
* @author Martin Jansen <mj@php.net>
* @copyright 2005-2006 Martin Jansen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version CVS: $Id: AbstractContentAnalysis.php,v 1.2 2006/10/02 12:53:33 mj Exp $
* @link http://pear.php.net/package/Services_Yahoo
require_once "Services/Yahoo/ContentAnalysis/Response.php";
require_once "HTTP/Request.php";
* This abstract class serves as the base class for all different
* types of searches that available through Services_Yahoo.
* @package Services_Yahoo
* @author Martin Jansen <mj@php.net>
* @copyright 2005-2006 Martin Jansen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @version CVS: $Id: AbstractContentAnalysis.php,v 1.2 2006/10/02 12:53:33 mj Exp $
* @link http://pear.php.net/package/Services_Yahoo
protected $parameters = array ("appid" => "PEAR_Services_Yahoo");
* This method submits the search and handles the response. It
* returns an instance of Services_Yahoo_Result which may be used
* to further make use of the result.
* @return object Services_Yahoo_Response Search result
* @throws Services_Yahoo_Exception
$request = new HTTP_Request ($this->requestURL);
$request->addQueryString ($key, $value);
$result = $request->sendRequest ();
if (PEAR ::isError ($result)) {
* Set Application ID for the content analysis
* An Application ID is a string that uniquely identifies your
* application. Think of it as like a User-Agent string. If you
* have multiple applications, you should use a different ID for
* each one. You can register your ID and make sure nobody is
* already using your ID on Yahoo's Application ID registration
* The ID defaults to "PEAR_Services_Yahoo", but you are free to
* change it to whatever you want. Please note that the access
* to the Yahoo API is not limited via the Application ID but via
* the IP address of the host where the package is used.
* @link http://api.search.yahoo.com/webservices/register_application
* @link http://developer.yahoo.net/documentation/rate.html
* @param string Application ID
* Set the query for the content analysis
* @param string Query for the content analysis
Documentation generated on Fri, 20 Apr 2007 14:30:04 -0400 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.
|