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

Class: Services_Yahoo_Search_web

Source Location: /Services_Yahoo-0.2.0/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.11 2007/04/20 17:43:58 mj Exp $

Copyright:

  • 2005-2006 Martin Jansen

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_Yahoo_Search_AbstractSearch

Services_Yahoo_Search_AbstractSearch::adultContentOK()
Set that the results will include adult content
Services_Yahoo_Search_AbstractSearch::inFormat()
Set the format to search for
Services_Yahoo_Search_AbstractSearch::searchFor()
Submits the search
Services_Yahoo_Search_AbstractSearch::startingAt()
Set the starting result position to return (1-based)
Services_Yahoo_Search_AbstractSearch::withAppID()
Set Application ID for the search
Services_Yahoo_Search_AbstractSearch::withResults()
Set the number of results to return.
Services_Yahoo_Search_AbstractSearch::withType()
Set the kind of search to submit

Class Details

[line 47]
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 49]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

includeSimilar   [line 57]

Services_Yahoo_AbstractSearch includeSimilar( )

Set to allow multiple results with similar content
  • Return: Object which contains the method
  • Access: public

[ Top ]

inLanguage   [line 75]

Services_Yahoo_AbstractSearch inLanguage( 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 ]

onSite   [line 89]

Services_Yahoo_AbstractSearch onSite( string $site)

Sets the domains to restrict the search to
  • Return: Object which contains the method
  • Access: public

Parameters:

string   $site   —  Domain

[ Top ]

withLicense   [line 115]

Services_Yahoo_AbstractSearch withLicense( string $license)

Sets the Creative Commons licenses that the contents must be licensed under
  • Return: Object which contains the method
  • Access: public

Parameters:

string   $license   —  Creative Commons License code

[ Top ]

withSubscription   [line 102]

Services_Yahoo_AbstractSearch withSubscription( string $subscription)

Sets the subscriptions to premium contents that should also be searched
  • Return: Object which contains the method
  • Access: public

Parameters:

string   $subscription   —  Subscription code

[ Top ]


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