cvs: peardoc /ja/package/webservices/services-yahoo examples.xml

From: Date: Fri, 20 Apr 2007 21:58:20 +0000
Subject: cvs: peardoc /ja/package/webservices/services-yahoo examples.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9652@lists.php.net to get a copy of this message
takagi Fri Apr 20 21:58:20 2007 UTC Modified files: /peardoc/ja/package/webservices/services-yahoo examples.xml Log: sync with en. http://cvs.php.net/viewvc.cgi/peardoc/ja/package/webservices/services-yahoo/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/webservices/services-yahoo/examples.xml diff -u peardoc/ja/package/webservices/services-yahoo/examples.xml:1.1 peardoc/ja/package/webservices/services-yahoo/examples.xml:1.2 --- peardoc/ja/package/webservices/services-yahoo/examples.xml:1.1 Sat Dec 31 03:56:04 2005 +++ peardoc/ja/package/webservices/services-yahoo/examples.xml Fri Apr 20 21:58:20 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.webservices.services-yahoo.examples"> <refnamediv> <refname>例</refname> @@ -64,10 +64,8 @@ require_once "Services/Yahoo/Search.php"; try { - $search = Services_Yahoo_Search::factory("web"); - $search->setQuery("Steve Fossett"); - - $results = $search->submit(); + $client = Services_Yahoo_Search::factory("web"); + $results = $client->searchFor("Steve Fossett"); echo "結果の総数: " . $results->getTotalResultsReturned() . "\n\n"; @@ -96,11 +94,10 @@ require_once "Services/Yahoo/Search.php"; try { - $search = Services_Yahoo_Search::factory("web"); - $search->setQuery("Steve Fossett"); + $client = Services_Yahoo_Search::factory("web"); // 一度に 20 件ずつ結果を返します - $search->setResultNumber(20); + $results = $client->withResults(20)->searchFor("Steve Fossett"); /* ... */ ]]> @@ -123,10 +120,8 @@ require_once "Services/Yahoo/Search.php"; try { - $search = Services_Yahoo_Search::factory("web"); - $search->setQuery("Steve Fossett"); - - $results = $search->submit(); + $client = Services_Yahoo_Search::factory("web"); + $results = $client->searchFor("Steve Fossett"); if ($results->getTotalResultsReturned() > 0) { $info = $results->current();

« previous php.pear.doc (#9652) next »