Services_Yahoo
[ class tree: Services_Yahoo ] [ index: Services_Yahoo ] [ all elements ]

Class: Services_Yahoo_ContentAnalysis_AbstractContentAnalysis

Source Location: /Services_Yahoo-0.2.0/Yahoo/ContentAnalysis/AbstractContentAnalysis.php

Class Overview


Abstract search class


Author(s):

Version:

  • CVS: $Id: AbstractContentAnalysis.php,v 1.2 2006/10/02 12:53:33 mj Exp $

Copyright:

  • 2005-2006 Martin Jansen

Variables

Methods


Child classes:

Services_Yahoo_ContentAnalysis_spellingSuggestion
Spelling Suggestion service class
Services_Yahoo_ContentAnalysis_termExtraction
Term Extraction service class

Inherited Variables

Inherited Methods


Class Details

[line 47]
Abstract search class

This abstract class serves as the base class for all different types of searches that available through Services_Yahoo.



[ Top ]


Class Variables

$parameters = array("appid" => "PEAR_Services_Yahoo")

[line 49]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

setAppID   [line 99]

void setAppID( string $id)

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 page.

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.


Parameters:

string   $id   —  Application ID

[ Top ]

setQuery   [line 110]

void setQuery( string $query)

Set the query for the content analysis
  • Access: public

Parameters:

string   $query   —  Query for the content analysis

[ Top ]

submit   [line 62]

object Services_Yahoo_Response submit( )

Submits the search

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: Search result
  • Throws: Services_Yahoo_Exception
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:00:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.