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

Class: Services_Yahoo_Search_web

Source Location: /Services_Yahoo-0.1.1/Yahoo/Search/web.php

Class Overview

Services_Yahoo_Search_AbstractSearch
   |
   --Services_Yahoo_Search_web

Web search class


Author(s):

Version:

  • CVS: $Id: web.php,v 1.6 2005/09/30 18:59:51 mj Exp $

Copyright:

  • 2005 Martin Jansen

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_Yahoo_Search_AbstractSearch

Services_Yahoo_Search_AbstractSearch::getParameter()
Returns an element from the parameters
Services_Yahoo_Search_AbstractSearch::setAdultOK()
Set that the results will include adult content
Services_Yahoo_Search_AbstractSearch::setAppID()
Set Application ID for the search
Services_Yahoo_Search_AbstractSearch::setFormat()
Set the format to search for
Services_Yahoo_Search_AbstractSearch::setQuery()
Set the query to search for
Services_Yahoo_Search_AbstractSearch::setResultNumber()
Set the number of results to return.
Services_Yahoo_Search_AbstractSearch::setStart()
Set the starting result position to return (1-based)
Services_Yahoo_Search_AbstractSearch::setType()
Set the kind of search to submit
Services_Yahoo_Search_AbstractSearch::submit()
Submits the search

Class Details

[line 41]
Web search class

This class implements an interface to Yahoo's web search by using the Yahoo API.



[ Top ]


Class Variables

$requestURL =  "http://api.search.yahoo.com/WebSearchService/V1/webSearch"

[line 43]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

getLicenses   [line 126]

array getLicenses( )

Returns the Creative Commons licenses that the contents must be licensed under
  • Return: Array of license codes
  • Access: public

[ Top ]

getSites   [line 86]

array getSites( )

Returns the domains to restrict the search to
  • Return: Array of domains
  • Access: public

[ Top ]

getSubscriptions   [line 106]

array getSubscriptions( )

Returns the subscriptions to premium contents that should also be searched
  • Return: Array of subscription codes
  • Access: public

[ Top ]

setLanguage   [line 65]

void setLanguage( string $language)

Set the language the results are written in

A list of supported languages can be found on http://developer.yahoo.net/documentation/languages.html.


Parameters:

string   $language   —  Language code

[ Top ]

setLicenses   [line 116]

void setLicenses( array $licenses)

Sets the Creative Commons licenses that the contents must be licensed under
  • Access: public

Parameters:

array   $licenses   —  Array of license codes

[ Top ]

setSimilarOK   [line 50]

void setSimilarOK( )

Set to allow multiple results with similar content
  • Access: public

[ Top ]

setSites   [line 76]

void setSites( array $sites)

Sets the domains to restrict the search to
  • Access: public

Parameters:

array   $sites   —  Array of domains

[ Top ]

setSubscriptions   [line 96]

void setSubscriptions( array $subscriptions)

Sets the subscriptions to premium contents that should also be searched
  • Access: public

Parameters:

array   $subscriptions   —  Array of subscription codes

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:13:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.