- Zend_Service_Yahoo_ResultSet
- Zend_Service_Yahoo_WebResultSet
- Zend_Service_Yahoo_ImageResultSet
- Zend_Service_Yahoo_VideoResultSet
- Zend_Service_Yahoo_LocalResultSet
- Zend_Service_Yahoo_NewsResultSet
- Zend_Service_Yahoo_InlinkDataResultSet
- Zend_Service_Yahoo_PageDataResultSet
- Zend_Service_Yahoo_Result
- Zend_Service_Yahoo_WebResult
- Zend_Service_Yahoo_ImageResult
- Zend_Service_Yahoo_VideoResult
- Zend_Service_Yahoo_LocalResult
- Zend_Service_Yahoo_NewsResult
- Zend_Service_Yahoo_InlinkDataResult
- Zend_Service_Yahoo_PageDataResult
- Zend_Service_Yahoo_Image
The following classes are all returned by the various Yahoo! searches. Each search type
returns a type-specific result set which can be easily iterated, with each result being
contained in a type result object. All result set classes implement the
SeekableIterator interface, allowing for easy iteration and
seeking to a specific result.
Each of the search specific result sets is extended from this base class.
Each of the specific result sets returns a search specific Zend_Service_Yahoo_Result objects.
int totalResults();
Returns the number of results returned for the search.
Zend_Service_Yahoo_WebResultSet represents a Yahoo! Web
Search result set.
Note
Zend_Service_Yahoo_WebResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_ImageResultSet represents a Yahoo! Image
Search result set.
Note
Zend_Service_Yahoo_ImageResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_VideoResultSet represents a Yahoo! Video
Search result set.
Note
Zend_Service_Yahoo_VideoResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_LocalResultSet represents a Yahoo! Local
Search result set.
Table 154. Zend_Service_Yahoo_LocalResultSet Properties
| Name | Type | Description |
|---|---|---|
| resultSetMapURL | string | The URL of a webpage containing a map graphic with all returned results plotted on it. |
Note
Zend_Service_Yahoo_LocalResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_NewsResultSet represents a Yahoo! News
Search result set.
Note
Zend_Service_Yahoo_NewsResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_InlinkDataResultSet represents a Yahoo!
Inbound Link Search result set.
Note
Zend_Service_Yahoo_InlinkDataResultSet extends Zend_Service_Yahoo_ResultSet
Zend_Service_Yahoo_PageDataResultSet represents a Yahoo!
PageData Search result set.
Note
Zend_Service_Yahoo_PageDataResultSet extends Zend_Service_Yahoo_ResultSet
Each of the search specific results is extended from this base class.
Each Web Search result is returned as a
Zend_Service_Yahoo_WebResult object.
Table 156. Zend_Service_Yahoo_WebResult Properties
| Name | Type | Description |
|---|---|---|
| Summary | string | Result summary |
| MimeType | string | Result MIME type |
| ModificationDate | string | The last modification date of the result as a UNIX timestamp. |
| CacheUrl | string | Yahoo! web cache URL for the result, if it exists. |
| CacheSize | int | The size of the Cache entry |
Each Image Search result is returned as a
Zend_Service_Yahoo_ImageResult object.
Table 157. Zend_Service_Yahoo_ImageResult Properties
| Name | Type | Description |
|---|---|---|
| Summary | string | Result summary |
| RefererUrl | string | The URL of the page which contains the image |
| FileSize | int | The size of the image file in bytes |
| FileFormat | string | The format of the image (bmp, gif, jpeg, png, etc.) |
| Height | int | The height of the image |
| Width | int | The width of the image |
| Thumbnail | Zend_Service_Yahoo_Image | Image thumbnail |
Each Video Search result is returned as a
Zend_Service_Yahoo_VideoResult object.
Table 158. Zend_Service_Yahoo_VideoResult Properties
| Name | Type | Description |
|---|---|---|
| Summary | string | Result summary |
| RefererUrl | string | The URL of the page which contains the video |
| FileSize | int | The size of the video file in bytes |
| FileFormat | string | The format of the video (avi, flash, mpeg, msmedia, quicktime, realmedia, etc.) |
| Height | int | The height of the video in pixels |
| Width | int | The width of the video in pixels |
| Duration | int | The length of the video in seconds |
| Channels | int | Number of audio channels in the video |
| Streaming | boolean | Whether the video is streaming or not |
| Thumbnail | Zend_Service_Yahoo_Image | Image thumbnail |
Each Local Search result is returned as a
Zend_Service_Yahoo_LocalResult object.
Table 159. Zend_Service_Yahoo_LocalResult Properties
| Name | Type | Description |
|---|---|---|
| Address | string | Street Address of the result |
| City | string | City in which the result resides in |
| State | string | State in which the result resides in |
| Phone | string | Phone number for the result |
| Rating | int | User submitted rating for the result |
| Distance | float | The distance to the result from your specified location |
| MapUrl | string | A URL of a map for the result |
| BusinessUrl | string | The URL for the business website, if known |
| BusinessClickUrl | string | The URL for linking to the business website, if known |
Each News Search result is returned as a
Zend_Service_Yahoo_NewsResult object.
Table 160. Zend_Service_Yahoo_NewsResult Properties
| Name | Type | Description |
|---|---|---|
| Summary | string | Result summary |
| NewsSource | string | The company who distributed the article |
| NewsSourceUrl | string | The URL for the company who distributed the article |
| Language | string | The language the article is in |
| PublishDate | string | The date the article was published as a UNIX timestamp |
| ModificationDate | string | The date the article was last modified as a UNIX timestamp |
| Thumbnail | Zend_Service_Yahoo_Image | Image Thumbnail for the article, if it exists |
Each Inbound Link Search result is returned as a
Zend_Service_Yahoo_InlinkDatabResult object.
Each Page Data Search result is returned as a
Zend_Service_Yahoo_PageDatabResult object.




