Zend_Service_Yahoo.xml 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.service.yahoo">
  4. <title>Zend_Service_Yahoo</title>
  5. <sect2 id="zend.service.yahoo.introduction">
  6. <title>Introduction</title>
  7. <para>
  8. <classname>Zend_Service_Yahoo</classname> is a simple <acronym>API</acronym> for using
  9. many of the Yahoo! REST <acronym>API</acronym>s.
  10. <classname>Zend_Service_Yahoo</classname> allows you to search Yahoo! Web search, Yahoo!
  11. News, Yahoo! Local, Yahoo! Images. In order to use the Yahoo! REST
  12. <acronym>API</acronym>, you must have a Yahoo! Application ID. To obtain an Application
  13. ID, please complete and submit the <ulink
  14. url="http://developer.yahoo.com/wsregapp/">Application ID Request Form</ulink>.
  15. </para>
  16. </sect2>
  17. <sect2 id="zend.service.yahoo.websearch">
  18. <title>Searching the Web with Yahoo!</title>
  19. <para>
  20. <classname>Zend_Service_Yahoo</classname> enables you to search the Web with Yahoo!
  21. using the <methodname>webSearch()</methodname> method, which accepts a string query
  22. parameter and an optional second parameter as an array of search options. For full
  23. details and an option list, please visit the <ulink
  24. url="http://developer.yahoo.com/search/web/V1/webSearch.html">Yahoo! Web Search
  25. Documentation</ulink>. The <methodname>webSearch()</methodname> method returns a
  26. <classname>Zend_Service_Yahoo_WebResultSet</classname> object.
  27. </para>
  28. <example id="zend.service.yahoo.websearch.example-1">
  29. <title>Searching the Web with Yahoo!</title>
  30. <programlisting language="php"><![CDATA[
  31. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  32. $results = $yahoo->webSearch('PHP');
  33. foreach ($results as $result) {
  34. echo $result->Title .'<br />';
  35. }
  36. ]]></programlisting>
  37. </example>
  38. </sect2>
  39. <sect2 id="zend.service.yahoo.imagesearch">
  40. <title>Finding Images with Yahoo!</title>
  41. <para>
  42. You can search for Images with Yahoo using <classname>Zend_Service_Yahoo</classname>'s
  43. <methodname>imageSearch()</methodname> method. This method accepts a string query
  44. parameter and an optional array of search options, as for the <link
  45. linkend="zend.service.yahoo.websearch"><methodname>webSearch()</methodname>
  46. method</link>. For full details and an option list, please visit the <ulink
  47. url="http://developer.yahoo.com/search/image/V1/imageSearch.html">Yahoo! Image
  48. Search Documentation</ulink>.
  49. </para>
  50. <example id="zend.service.yahoo.imagesearch.example-1">
  51. <title>Finding Images with Yahoo!</title>
  52. <programlisting language="php"><![CDATA[
  53. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  54. $results = $yahoo->imageSearch('PHP');
  55. foreach ($results as $result) {
  56. echo $result->Title .'<br />';
  57. }
  58. ]]></programlisting>
  59. </example>
  60. </sect2>
  61. <sect2 id="zend.service.yahoo.videosearch">
  62. <title>Finding videos with Yahoo!</title>
  63. <para>
  64. You can search for videos with Yahoo using <classname>Zend_Service_Yahoo</classname>'s
  65. <methodname>videoSearch()</methodname> method. For full details and an option list,
  66. please visit the <ulink
  67. url="http://developer.yahoo.com/search/video/V1/videoSearch.html">Yahoo! Video
  68. Search Documentation</ulink>.
  69. </para>
  70. <example id="zend.service.yahoo.videosearch.example-1">
  71. <title>Finding videos with Yahoo!</title>
  72. <programlisting language="php"><![CDATA[
  73. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  74. $results = $yahoo->videoSearch('PHP');
  75. foreach ($results as $result) {
  76. echo $result->Title .'<br />';
  77. }
  78. ]]></programlisting>
  79. </example>
  80. </sect2>
  81. <sect2 id="zend.service.yahoo.localsearch">
  82. <title>Finding Local Businesses and Services with Yahoo!</title>
  83. <para>
  84. You can search for local businesses and services with Yahoo! by using the
  85. <methodname>localSearch()</methodname> method. For full details, please see the <ulink
  86. url="http://developer.yahoo.com/search/local/V1/localSearch.html">Yahoo! Local
  87. Search Documentation</ulink>.
  88. </para>
  89. <example id="zend.service.yahoo.localsearch.example-1">
  90. <title>Finding Local Businesses and Services with Yahoo!</title>
  91. <programlisting language="php"><![CDATA[
  92. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  93. $results = $yahoo->localSearch('Apple Computers', array('zip' => '95014'));
  94. foreach ($results as $result) {
  95. echo $result->Title .'<br />';
  96. }
  97. ]]></programlisting>
  98. </example>
  99. </sect2>
  100. <sect2 id="zend.service.yahoo.newssearch">
  101. <title>Searching Yahoo! News</title>
  102. <para>
  103. Searching Yahoo! News is simple; just use the <methodname>newsSearch()</methodname>
  104. method, as in the following example. For full details, please see the <ulink
  105. url="http://developer.yahoo.com/search/news/V1/newsSearch.html">Yahoo! News Search
  106. Documentation</ulink>.
  107. </para>
  108. <example id="zend.service.yahoo.newssearch.example-1">
  109. <title>Searching Yahoo! News</title>
  110. <programlisting language="php"><![CDATA[
  111. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  112. $results = $yahoo->newsSearch('PHP');
  113. foreach ($results as $result) {
  114. echo $result->Title .'<br />';
  115. }
  116. ]]></programlisting>
  117. </example>
  118. </sect2>
  119. <sect2 id="zend.service.yahoo.inlinkdatasearch">
  120. <title>Searching Yahoo! Site Explorer Inbound Links</title>
  121. <para>
  122. Searching Yahoo! Site Explorer Inbound Links is simple; just use the
  123. <methodname>inlinkDataSearch()</methodname> method, as in the following example. For
  124. full details, please see the <ulink
  125. url="http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html">Yahoo!
  126. Site Explorer Inbound Links Documentation</ulink>.
  127. </para>
  128. <example id="zend.service.yahoo.inlinkdatasearch.example-1">
  129. <title>Searching Yahoo! Site Explorer Inbound Links</title>
  130. <programlisting language="php"><![CDATA[
  131. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  132. $results = $yahoo->inlinkDataSearch('http://framework.zend.com/');
  133. foreach ($results as $result) {
  134. echo $result->Title .'<br />';
  135. }
  136. ]]></programlisting>
  137. </example>
  138. </sect2>
  139. <sect2 id="zend.service.yahoo.pagedatasearch">
  140. <title>Searching Yahoo! Site Explorer's PageData</title>
  141. <para>
  142. Searching Yahoo! Site Explorer's PageData is simple; just use the
  143. <methodname>pageDataSearch()</methodname> method, as in the following example. For full
  144. details, please see the <ulink
  145. url="http://developer.yahoo.com/search/siteexplorer/V1/pageData.html">Yahoo!
  146. Site Explorer PageData Documentation</ulink>.
  147. </para>
  148. <example id="zend.service.yahoo.pagedatasearch.example-1">
  149. <title>Searching Yahoo! Site Explorer's PageData</title>
  150. <programlisting language="php"><![CDATA[
  151. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  152. $results = $yahoo->pageDataSearch('http://framework.zend.com/');
  153. foreach ($results as $result) {
  154. echo $result->Title .'<br />';
  155. }
  156. ]]></programlisting>
  157. </example>
  158. </sect2>
  159. <sect2 id="zend.service.yahoo.classes">
  160. <title>Zend_Service_Yahoo Classes</title>
  161. <para>
  162. The following classes are all returned by the various Yahoo! searches. Each search type
  163. returns a type-specific result set which can be easily iterated, with each result being
  164. contained in a type result object. All result set classes implement the
  165. <classname>SeekableIterator</classname> interface, allowing for easy iteration and
  166. seeking to a specific result.
  167. <itemizedlist>
  168. <listitem>
  169. <para>
  170. <link
  171. linkend="zend.service.yahoo.classes.resultset"><classname>Zend_Service_Yahoo_ResultSet</classname></link>
  172. </para>
  173. </listitem>
  174. <listitem>
  175. <para>
  176. <link
  177. linkend="zend.service.yahoo.classes.webresultset"><classname>Zend_Service_Yahoo_WebResultSet</classname></link>
  178. </para>
  179. </listitem>
  180. <listitem>
  181. <para>
  182. <link
  183. linkend="zend.service.yahoo.classes.imageresultset"><classname>Zend_Service_Yahoo_ImageResultSet</classname></link>
  184. </para>
  185. </listitem>
  186. <listitem>
  187. <para>
  188. <link
  189. linkend="zend.service.yahoo.classes.videoresultset"><classname>Zend_Service_Yahoo_VideoResultSet</classname></link>
  190. </para>
  191. </listitem>
  192. <listitem>
  193. <para>
  194. <link
  195. linkend="zend.service.yahoo.classes.localresultset"><classname>Zend_Service_Yahoo_LocalResultSet</classname></link>
  196. </para>
  197. </listitem>
  198. <listitem>
  199. <para>
  200. <link
  201. linkend="zend.service.yahoo.classes.newsresultset"><classname>Zend_Service_Yahoo_NewsResultSet</classname></link>
  202. </para>
  203. </listitem>
  204. <listitem>
  205. <para>
  206. <link
  207. linkend="zend.service.yahoo.classes.inlinkdataresultset"><classname>Zend_Service_Yahoo_InlinkDataResultSet</classname></link>
  208. </para>
  209. </listitem>
  210. <listitem>
  211. <para>
  212. <link
  213. linkend="zend.service.yahoo.classes.pagedataresultset"><classname>Zend_Service_Yahoo_PageDataResultSet</classname></link>
  214. </para>
  215. </listitem>
  216. <listitem>
  217. <para>
  218. <link
  219. linkend="zend.service.yahoo.classes.result"><classname>Zend_Service_Yahoo_Result</classname></link>
  220. </para>
  221. </listitem>
  222. <listitem>
  223. <para>
  224. <link
  225. linkend="zend.service.yahoo.classes.webresult"><classname>Zend_Service_Yahoo_WebResult</classname></link>
  226. </para>
  227. </listitem>
  228. <listitem>
  229. <para>
  230. <link
  231. linkend="zend.service.yahoo.classes.imageresult"><classname>Zend_Service_Yahoo_ImageResult</classname></link>
  232. </para>
  233. </listitem>
  234. <listitem>
  235. <para>
  236. <link
  237. linkend="zend.service.yahoo.classes.videoresult"><classname>Zend_Service_Yahoo_VideoResult</classname></link>
  238. </para>
  239. </listitem>
  240. <listitem>
  241. <para>
  242. <link
  243. linkend="zend.service.yahoo.classes.localresult"><classname>Zend_Service_Yahoo_LocalResult</classname></link>
  244. </para>
  245. </listitem>
  246. <listitem>
  247. <para>
  248. <link
  249. linkend="zend.service.yahoo.classes.newsresult"><classname>Zend_Service_Yahoo_NewsResult</classname></link>
  250. </para>
  251. </listitem>
  252. <listitem>
  253. <para>
  254. <link
  255. linkend="zend.service.yahoo.classes.inlinkdataresult"><classname>Zend_Service_Yahoo_InlinkDataResult</classname></link>
  256. </para>
  257. </listitem>
  258. <listitem>
  259. <para>
  260. <link
  261. linkend="zend.service.yahoo.classes.pagedataresult"><classname>Zend_Service_Yahoo_PageDataResult</classname></link>
  262. </para>
  263. </listitem>
  264. <listitem>
  265. <para>
  266. <link
  267. linkend="zend.service.yahoo.classes.image"><classname>Zend_Service_Yahoo_Image</classname></link>
  268. </para>
  269. </listitem>
  270. </itemizedlist>
  271. </para>
  272. <sect3 id="zend.service.yahoo.classes.resultset">
  273. <title>Zend_Service_Yahoo_ResultSet</title>
  274. <para>
  275. Each of the search specific result sets is extended from this base class.
  276. </para>
  277. <para>
  278. Each of the specific result sets returns a search specific <link
  279. linkend="zend.service.yahoo.classes.result">Zend_Service_Yahoo_Result</link>
  280. objects.
  281. </para>
  282. <sect4 id="zend.service.yahoo.classes.resultset.totalResults">
  283. <title>Zend_Service_Yahoo_ResultSet::totalResults()</title>
  284. <para>
  285. <methodsynopsis>
  286. <type>int</type> <methodname>totalResults</methodname> <void />
  287. </methodsynopsis>
  288. </para>
  289. <para>
  290. Returns the number of results returned for the search.
  291. </para>
  292. </sect4>
  293. <sect4 id="zend.service.yahoo.classes.resultset.properties">
  294. <title>Properties</title>
  295. <table id="zend.service.yahoo.classes.resultset.properties.table-1">
  296. <title>Zend_Service_Yahoo_ResultSet</title>
  297. <tgroup cols="3">
  298. <thead>
  299. <row>
  300. <entry>Name</entry>
  301. <entry>Type</entry>
  302. <entry>Description</entry>
  303. </row>
  304. </thead>
  305. <tbody>
  306. <row>
  307. <entry>totalResultsAvailable</entry>
  308. <entry>int</entry>
  309. <entry>Total number of results found.</entry>
  310. </row>
  311. <row>
  312. <entry>totalResultsReturned</entry>
  313. <entry>int</entry>
  314. <entry>Number of results in the current result set</entry>
  315. </row>
  316. <row>
  317. <entry>firstResultPosition</entry>
  318. <entry>int</entry>
  319. <entry>
  320. Position of the first result in this set relative to the total
  321. number of results.
  322. </entry>
  323. </row>
  324. </tbody>
  325. </tgroup>
  326. </table>
  327. <para>
  328. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  329. </para>
  330. </sect4>
  331. </sect3>
  332. <sect3 id="zend.service.yahoo.classes.webresultset">
  333. <title>Zend_Service_Yahoo_WebResultSet</title>
  334. <para>
  335. <classname>Zend_Service_Yahoo_WebResultSet</classname> represents a Yahoo! Web
  336. Search result set.
  337. </para>
  338. <note>
  339. <para>
  340. <classname>Zend_Service_Yahoo_WebResultSet</classname> extends <link
  341. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  342. </para>
  343. </note>
  344. <para>
  345. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  346. </para>
  347. </sect3>
  348. <sect3 id="zend.service.yahoo.classes.imageresultset">
  349. <title>Zend_Service_Yahoo_ImageResultSet</title>
  350. <para>
  351. <classname>Zend_Service_Yahoo_ImageResultSet</classname> represents a Yahoo! Image
  352. Search result set.
  353. </para>
  354. <note>
  355. <para>
  356. <classname>Zend_Service_Yahoo_ImageResultSet</classname> extends <link
  357. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  358. </para>
  359. </note>
  360. <para>
  361. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  362. </para>
  363. </sect3>
  364. <sect3 id="zend.service.yahoo.classes.videoresultset">
  365. <title>Zend_Service_Yahoo_VideoResultSet</title>
  366. <para>
  367. <classname>Zend_Service_Yahoo_VideoResultSet</classname> represents a Yahoo! Video
  368. Search result set.
  369. </para>
  370. <note>
  371. <para>
  372. <classname>Zend_Service_Yahoo_VideoResultSet</classname> extends <link
  373. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  374. </para>
  375. </note>
  376. <para>
  377. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  378. </para>
  379. </sect3>
  380. <sect3 id="zend.service.yahoo.classes.localresultset">
  381. <title>Zend_Service_Yahoo_LocalResultSet</title>
  382. <para>
  383. <classname>Zend_Service_Yahoo_LocalResultSet</classname> represents a Yahoo! Local
  384. Search result set.
  385. </para>
  386. <table id="zend.service.yahoo.classes.localresultset.table-1">
  387. <title>Zend_Service_Yahoo_LocalResultSet Properties</title>
  388. <tgroup cols="3">
  389. <thead>
  390. <row>
  391. <entry>Name</entry>
  392. <entry>Type</entry>
  393. <entry>Description</entry>
  394. </row>
  395. </thead>
  396. <tbody>
  397. <row>
  398. <entry>resultSetMapURL</entry>
  399. <entry>string</entry>
  400. <entry>
  401. The <acronym>URL</acronym> of a webpage containing a map graphic
  402. with all returned results plotted on it.
  403. </entry>
  404. </row>
  405. </tbody>
  406. </tgroup>
  407. </table>
  408. <note>
  409. <para>
  410. <classname>Zend_Service_Yahoo_LocalResultSet</classname> extends <link
  411. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  412. </para>
  413. </note>
  414. <para>
  415. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  416. </para>
  417. </sect3>
  418. <sect3 id="zend.service.yahoo.classes.newsresultset">
  419. <title>Zend_Service_Yahoo_NewsResultSet</title>
  420. <para>
  421. <classname>Zend_Service_Yahoo_NewsResultSet</classname> represents a Yahoo! News
  422. Search result set.
  423. </para>
  424. <note>
  425. <para>
  426. <classname>Zend_Service_Yahoo_NewsResultSet</classname> extends <link
  427. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  428. </para>
  429. </note>
  430. <para>
  431. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  432. </para>
  433. </sect3>
  434. <sect3 id="zend.service.yahoo.classes.inlinkdataresultset">
  435. <title>Zend_Service_Yahoo_InlinkDataResultSet</title>
  436. <para>
  437. <classname>Zend_Service_Yahoo_InlinkDataResultSet</classname> represents a Yahoo!
  438. Inbound Link Search result set.
  439. </para>
  440. <note>
  441. <para>
  442. <classname>Zend_Service_Yahoo_InlinkDataResultSet</classname> extends <link
  443. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  444. </para>
  445. </note>
  446. <para>
  447. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  448. </para>
  449. </sect3>
  450. <sect3 id="zend.service.yahoo.classes.pagedataresultset">
  451. <title>Zend_Service_Yahoo_PageDataResultSet</title>
  452. <para>
  453. <classname>Zend_Service_Yahoo_PageDataResultSet</classname> represents a Yahoo!
  454. PageData Search result set.
  455. </para>
  456. <note>
  457. <para>
  458. <classname>Zend_Service_Yahoo_PageDataResultSet</classname> extends <link
  459. linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  460. </para>
  461. </note>
  462. <para>
  463. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  464. </para>
  465. </sect3>
  466. <sect3 id="zend.service.yahoo.classes.result">
  467. <title>Zend_Service_Yahoo_Result</title>
  468. <para>
  469. Each of the search specific results is extended from this base class.
  470. </para>
  471. <sect4 id="zend.service.yahoo.classes.result.properties">
  472. <title>Properties</title>
  473. <table id="zend.service.yahoo.classes.result.properties.table-1">
  474. <title>Zend_Service_Yahoo_Result Properties</title>
  475. <tgroup cols="3">
  476. <thead>
  477. <row>
  478. <entry>Name</entry>
  479. <entry>Type</entry>
  480. <entry>Description</entry>
  481. </row>
  482. </thead>
  483. <tbody>
  484. <row>
  485. <entry>Title</entry>
  486. <entry>string</entry>
  487. <entry>Title of the Result item</entry>
  488. </row>
  489. <row>
  490. <entry>Url</entry>
  491. <entry>string</entry>
  492. <entry>The <acronym>URL</acronym> of the result item</entry>
  493. </row>
  494. <row>
  495. <entry>ClickUrl</entry>
  496. <entry>string</entry>
  497. <entry>
  498. The <acronym>URL</acronym> for linking to the result item
  499. </entry>
  500. </row>
  501. </tbody>
  502. </tgroup>
  503. </table>
  504. <para>
  505. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  506. </para>
  507. </sect4>
  508. </sect3>
  509. <sect3 id="zend.service.yahoo.classes.webresult">
  510. <title>Zend_Service_Yahoo_WebResult</title>
  511. <para>
  512. Each Web Search result is returned as a
  513. <classname>Zend_Service_Yahoo_WebResult</classname> object.
  514. </para>
  515. <sect4 id="zend.service.yahoo.classes.webresult.properties">
  516. <title>Properties</title>
  517. <table id="zend.service.yahoo.classes.webresult.properties.table-1">
  518. <title>Zend_Service_Yahoo_WebResult Properties</title>
  519. <tgroup cols="3">
  520. <thead>
  521. <row>
  522. <entry>Name</entry>
  523. <entry>Type</entry>
  524. <entry>Description</entry>
  525. </row>
  526. </thead>
  527. <tbody>
  528. <row>
  529. <entry>Summary</entry>
  530. <entry>string</entry>
  531. <entry>Result summary</entry>
  532. </row>
  533. <row>
  534. <entry>MimeType</entry>
  535. <entry>string</entry>
  536. <entry>Result <acronym>MIME</acronym> type</entry>
  537. </row>
  538. <row>
  539. <entry>ModificationDate</entry>
  540. <entry>string</entry>
  541. <entry>
  542. The last modification date of the result as a
  543. <acronym>UNIX</acronym> timestamp.
  544. </entry>
  545. </row>
  546. <row>
  547. <entry>CacheUrl</entry>
  548. <entry>string</entry>
  549. <entry>
  550. Yahoo! web cache <acronym>URL</acronym> for the result, if it
  551. exists.
  552. </entry>
  553. </row>
  554. <row>
  555. <entry>CacheSize</entry>
  556. <entry>int</entry>
  557. <entry>The size of the Cache entry</entry>
  558. </row>
  559. </tbody>
  560. </tgroup>
  561. </table>
  562. <para>
  563. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  564. </para>
  565. </sect4>
  566. </sect3>
  567. <sect3 id="zend.service.yahoo.classes.imageresult">
  568. <title>Zend_Service_Yahoo_ImageResult</title>
  569. <para>
  570. Each Image Search result is returned as a
  571. <classname>Zend_Service_Yahoo_ImageResult</classname> object.
  572. </para>
  573. <sect4 id="zend.service.yahoo.classes.imageresult.properties">
  574. <title>Properties</title>
  575. <table id="zend.service.yahoo.classes.imageresult.properties.table-1">
  576. <title>Zend_Service_Yahoo_ImageResult Properties</title>
  577. <tgroup cols="3">
  578. <thead>
  579. <row>
  580. <entry>Name</entry>
  581. <entry>Type</entry>
  582. <entry>Description</entry>
  583. </row>
  584. </thead>
  585. <tbody>
  586. <row>
  587. <entry>Summary</entry>
  588. <entry>string</entry>
  589. <entry>Result summary</entry>
  590. </row>
  591. <row>
  592. <entry>RefererUrl</entry>
  593. <entry>string</entry>
  594. <entry>
  595. The <acronym>URL</acronym> of the page which contains the image
  596. </entry>
  597. </row>
  598. <row>
  599. <entry>FileSize</entry>
  600. <entry>int</entry>
  601. <entry>The size of the image file in bytes</entry>
  602. </row>
  603. <row>
  604. <entry>FileFormat</entry>
  605. <entry>string</entry>
  606. <entry>The format of the image (bmp, gif, jpeg, png, etc.)</entry>
  607. </row>
  608. <row>
  609. <entry>Height</entry>
  610. <entry>int</entry>
  611. <entry>The height of the image</entry>
  612. </row>
  613. <row>
  614. <entry>Width</entry>
  615. <entry>int</entry>
  616. <entry>The width of the image</entry>
  617. </row>
  618. <row>
  619. <entry>Thumbnail</entry>
  620. <entry>
  621. <link
  622. linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link>
  623. </entry>
  624. <entry>Image thumbnail</entry>
  625. </row>
  626. </tbody>
  627. </tgroup>
  628. </table>
  629. <para>
  630. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  631. </para>
  632. </sect4>
  633. </sect3>
  634. <sect3 id="zend.service.yahoo.classes.videoresult">
  635. <title>Zend_Service_Yahoo_VideoResult</title>
  636. <para>
  637. Each Video Search result is returned as a
  638. <classname>Zend_Service_Yahoo_VideoResult</classname> object.
  639. </para>
  640. <sect4 id="zend.service.yahoo.classes.videoresult.properties">
  641. <title>Properties</title>
  642. <table id="zend.service.yahoo.classes.videoresult.properties.table-1">
  643. <title>Zend_Service_Yahoo_VideoResult Properties</title>
  644. <tgroup cols="3">
  645. <thead>
  646. <row>
  647. <entry>Name</entry>
  648. <entry>Type</entry>
  649. <entry>Description</entry>
  650. </row>
  651. </thead>
  652. <tbody>
  653. <row>
  654. <entry>Summary</entry>
  655. <entry>string</entry>
  656. <entry>Result summary</entry>
  657. </row>
  658. <row>
  659. <entry>RefererUrl</entry>
  660. <entry>string</entry>
  661. <entry>
  662. The <acronym>URL</acronym> of the page which contains the video
  663. </entry>
  664. </row>
  665. <row>
  666. <entry>FileSize</entry>
  667. <entry>int</entry>
  668. <entry>The size of the video file in bytes</entry>
  669. </row>
  670. <row>
  671. <entry>FileFormat</entry>
  672. <entry>string</entry>
  673. <entry>
  674. The format of the video (avi, flash, mpeg, msmedia, quicktime,
  675. realmedia, etc.)
  676. </entry>
  677. </row>
  678. <row>
  679. <entry>Height</entry>
  680. <entry>int</entry>
  681. <entry>The height of the video in pixels</entry>
  682. </row>
  683. <row>
  684. <entry>Width</entry>
  685. <entry>int</entry>
  686. <entry>The width of the video in pixels</entry>
  687. </row>
  688. <row>
  689. <entry>Duration</entry>
  690. <entry>int</entry>
  691. <entry>The length of the video in seconds</entry>
  692. </row>
  693. <row>
  694. <entry>Channels</entry>
  695. <entry>int</entry>
  696. <entry>Number of audio channels in the video</entry>
  697. </row>
  698. <row>
  699. <entry>Streaming</entry>
  700. <entry>boolean</entry>
  701. <entry>Whether the video is streaming or not</entry>
  702. </row>
  703. <row>
  704. <entry>Thumbnail</entry>
  705. <entry>
  706. <link
  707. linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link>
  708. </entry>
  709. <entry>Image thumbnail</entry>
  710. </row>
  711. </tbody>
  712. </tgroup>
  713. </table>
  714. <para>
  715. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  716. </para>
  717. </sect4>
  718. </sect3>
  719. <sect3 id="zend.service.yahoo.classes.localresult">
  720. <title>Zend_Service_Yahoo_LocalResult</title>
  721. <para>
  722. Each Local Search result is returned as a
  723. <classname>Zend_Service_Yahoo_LocalResult</classname> object.
  724. </para>
  725. <sect4 id="zend.service.yahoo.classes.localresult.properties">
  726. <title>Properties</title>
  727. <table id="zend.service.yahoo.classes.localresult.properties.table-1">
  728. <title>Zend_Service_Yahoo_LocalResult Properties</title>
  729. <tgroup cols="3">
  730. <thead>
  731. <row>
  732. <entry>Name</entry>
  733. <entry>Type</entry>
  734. <entry>Description</entry>
  735. </row>
  736. </thead>
  737. <tbody>
  738. <row>
  739. <entry>Address</entry>
  740. <entry>string</entry>
  741. <entry>Street Address of the result</entry>
  742. </row>
  743. <row>
  744. <entry>City</entry>
  745. <entry>string</entry>
  746. <entry>City in which the result resides in</entry>
  747. </row>
  748. <row>
  749. <entry>State</entry>
  750. <entry>string</entry>
  751. <entry>State in which the result resides in</entry>
  752. </row>
  753. <row>
  754. <entry>Phone</entry>
  755. <entry>string</entry>
  756. <entry>Phone number for the result</entry>
  757. </row>
  758. <row>
  759. <entry>Rating</entry>
  760. <entry>int</entry>
  761. <entry>User submitted rating for the result</entry>
  762. </row>
  763. <row>
  764. <entry>Distance</entry>
  765. <entry>float</entry>
  766. <entry>
  767. The distance to the result from your specified location
  768. </entry>
  769. </row>
  770. <row>
  771. <entry>MapUrl</entry>
  772. <entry>string</entry>
  773. <entry>A <acronym>URL</acronym> of a map for the result</entry>
  774. </row>
  775. <row>
  776. <entry>BusinessUrl</entry>
  777. <entry>string</entry>
  778. <entry>
  779. The <acronym>URL</acronym> for the business website, if known
  780. </entry>
  781. </row>
  782. <row>
  783. <entry>BusinessClickUrl</entry>
  784. <entry>string</entry>
  785. <entry>
  786. The <acronym>URL</acronym> for linking to the business website,
  787. if known
  788. </entry>
  789. </row>
  790. </tbody>
  791. </tgroup>
  792. </table>
  793. <para>
  794. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  795. </para>
  796. </sect4>
  797. </sect3>
  798. <sect3 id="zend.service.yahoo.classes.newsresult">
  799. <title>Zend_Service_Yahoo_NewsResult</title>
  800. <para>
  801. Each News Search result is returned as a
  802. <classname>Zend_Service_Yahoo_NewsResult</classname> object.
  803. </para>
  804. <sect4 id="zend.service.yahoo.classes.newsresult.properties">
  805. <title>Properties</title>
  806. <table id="zend.service.yahoo.classes.newsresult.properties.table-1">
  807. <title>Zend_Service_Yahoo_NewsResult Properties</title>
  808. <tgroup cols="3">
  809. <thead>
  810. <row>
  811. <entry>Name</entry>
  812. <entry>Type</entry>
  813. <entry>Description</entry>
  814. </row>
  815. </thead>
  816. <tbody>
  817. <row>
  818. <entry>Summary</entry>
  819. <entry>string</entry>
  820. <entry>Result summary</entry>
  821. </row>
  822. <row>
  823. <entry>NewsSource</entry>
  824. <entry>string</entry>
  825. <entry>The company who distributed the article</entry>
  826. </row>
  827. <row>
  828. <entry>NewsSourceUrl</entry>
  829. <entry>string</entry>
  830. <entry>
  831. The <acronym>URL</acronym> for the company who distributed the
  832. article
  833. </entry>
  834. </row>
  835. <row>
  836. <entry>Language</entry>
  837. <entry>string</entry>
  838. <entry>The language the article is in</entry>
  839. </row>
  840. <row>
  841. <entry>PublishDate</entry>
  842. <entry>string</entry>
  843. <entry>
  844. The date the article was published as a <acronym>UNIX</acronym>
  845. timestamp
  846. </entry>
  847. </row>
  848. <row>
  849. <entry>ModificationDate</entry>
  850. <entry>string</entry>
  851. <entry>
  852. The date the article was last modified as a
  853. <acronym>UNIX</acronym> timestamp
  854. </entry>
  855. </row>
  856. <row>
  857. <entry>Thumbnail</entry>
  858. <entry>
  859. <link
  860. linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link>
  861. </entry>
  862. <entry>Image Thumbnail for the article, if it exists</entry>
  863. </row>
  864. </tbody>
  865. </tgroup>
  866. </table>
  867. <para>
  868. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  869. </para>
  870. </sect4>
  871. </sect3>
  872. <sect3 id="zend.service.yahoo.classes.inlinkdataresult">
  873. <title>Zend_Service_Yahoo_InlinkDataResult</title>
  874. <para>
  875. Each Inbound Link Search result is returned as a
  876. <classname>Zend_Service_Yahoo_InlinkDatabResult</classname> object.
  877. </para>
  878. <para>
  879. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  880. </para>
  881. </sect3>
  882. <sect3 id="zend.service.yahoo.classes.pagedataresult">
  883. <title>Zend_Service_Yahoo_PageDataResult</title>
  884. <para>
  885. Each Page Data Search result is returned as a
  886. <classname>Zend_Service_Yahoo_PageDatabResult</classname> object.
  887. </para>
  888. <para>
  889. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  890. </para>
  891. </sect3>
  892. <sect3 id="zend.service.yahoo.classes.image">
  893. <title>Zend_Service_Yahoo_Image</title>
  894. <para>
  895. All images returned either by the Yahoo! Image Search or the Yahoo! News Search
  896. are represented by <classname>Zend_Service_Yahoo_Image</classname> objects
  897. </para>
  898. <sect4 id="zend.service.yahoo.classes.image.properties">
  899. <title>Properties</title>
  900. <table id="zend.service.yahoo.classes.image.properties.table-1">
  901. <title>Zend_Service_Yahoo_Image Properties</title>
  902. <tgroup cols="3">
  903. <thead>
  904. <row>
  905. <entry>Name</entry>
  906. <entry>Type</entry>
  907. <entry>Description</entry>
  908. </row>
  909. </thead>
  910. <tbody>
  911. <row>
  912. <entry>Url</entry>
  913. <entry>string</entry>
  914. <entry>Image <acronym>URL</acronym></entry>
  915. </row>
  916. <row>
  917. <entry>Width</entry>
  918. <entry>int</entry>
  919. <entry>Image Width</entry>
  920. </row>
  921. <row>
  922. <entry>Height</entry>
  923. <entry>int</entry>
  924. <entry>Image Height</entry>
  925. </row>
  926. </tbody>
  927. </tgroup>
  928. </table>
  929. <para>
  930. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  931. </para>
  932. </sect4>
  933. </sect3>
  934. </sect2>
  935. </sect1>
  936. <!--
  937. vim:se ts=4 sw=4 et:
  938. -->