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

Class: Services_Yahoo_Search_news

Source Location: /Services_Yahoo-0.2.0/Yahoo/Search/news.php

Class Overview

Services_Yahoo_Search_AbstractSearch
   |
   --Services_Yahoo_Search_news

News search class


Author(s):

Version:

  • CVS: $Id: news.php,v 1.5 2006/10/04 13:30:31 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]
News search class

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



[ Top ]


Class Variables

$requestURL =  "http://api.search.yahoo.com/NewsSearchService/V1/newsSearch"

[line 49]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

inLanguage   [line 77]

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 ]

sortedBy   [line 59]

Services_Yahoo_AbstractSearch sortedBy( string $sort)

Set whether to sort articles by relevance or most-recent
  • Return: Object which contains the method
  • Access: public

Parameters:

string   $sort   —  Sort type (either "rank" or "date")

[ Top ]


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