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

Class: Services_Yahoo_Search_Response

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

Class Overview


Services_Yahoo Search Response class


Author(s):

Version:

  • CVS: $Id: Response.php,v 1.5 2006/10/04 16:16:53 mj Exp $

Copyright:

  • 2005-2006 Martin Jansen

Methods


Inherited Variables

Inherited Methods


Class Details

[line 44]
Services_Yahoo Search Response class

This class provides methods for accessing the response of a search request.

  • Author: Martin Jansen <mj@php.net>
  • Version: CVS: $Id: Response.php,v 1.5 2006/10/04 16:16:53 mj Exp $
  • Copyright: 2005-2006 Martin Jansen
  • Extends: Exception
  • License: Apache License, Version 2.0


[ Top ]


Method Detail

__construct (Constructor)   [line 58]

Services_Yahoo_Search_Response __construct( HTTP_Request $request)

Constructor
  • Throws: Services_Yahoo_Exception
  • Access: public

Parameters:

object HTTP_Request   $request   —  Instance of HTTP_Request that was used for the request

[ Top ]

current   [line 166]

void current( )

  • Access: public

[ Top ]

getFirstResultPosition   [line 94]

integer getFirstResultPosition( )

Get the position of the first result in the overall search
  • Return: Position of the first result in the overall search
  • Access: public

[ Top ]

getRequest   [line 158]

object HTTP_Request getRequest( )

Get the HTTP_Request instance that was used for the query

Access to the HTTP_Request instance is useful for introspecting into the request details. (E.g. for getting the HTTP response code.)

  • Return: Instance of HTTP_Request
  • Access: public

[ Top ]

getResultSetMapUrl   [line 122]

string getResultSetMapUrl( )

Get the URL of a webpage containing a map graphic with all returned results plotted on it

This URL is not part of all search responses, but it is used often enough to be part of the general response class.

  • Return: Map URL
  • Access: public

[ Top ]

getTotal   [line 83]

integer getTotal( )

Get number of query matches in the database

This method returns the overall number of matches in the database.

  • Return: Number of query matches
  • Access: public

[ Top ]

getTotalResultsReturned   [line 108]

integer getTotalResultsReturned( )

Get number of query matches returned from the search

This may be lower than the number of results requested if there were fewer total results available.

  • Return: Number of query matches returned
  • Access: public

[ Top ]

hasMore   [line 140]

boolean hasMore( )

Determine if there are more matches than the ones that have been returned

This method may be used as the criteria for displaying "Next" links or similar.

  • Return: True if more results are available, false otherwise.
  • Access: public

[ Top ]

key   [line 179]

void key( )

  • Access: public

[ Top ]

next   [line 171]

void next( )

  • Access: public

[ Top ]

rewind   [line 184]

void rewind( )

  • Access: public

[ Top ]

valid   [line 189]

void valid( )

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