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

Source for file goods.php

Documentation is available at goods.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * Auction goods class
  6.  *
  7.  * PHP version 5
  8.  *
  9.  * LICENSE: This source file is subject to the New BSD license that is
  10.  * available through the world-wide-web at the following URI:
  11.  * http://www.opensource.org/licenses/bsd-license.php. If you did not receive
  12.  * a copy of the New BSD License and are unable to obtain it through the web,
  13.  * please send a note to license@php.net so we can mail you a copy immediately.
  14.  *
  15.  * @category  Services
  16.  * @package   Services_Yahoo_JP
  17.  * @author    Tetsuya Nakase <phpizer@gmail.com>
  18.  * @copyright 2008 Tetsuya Nakase
  19.  * @license   http://www.opensource.org/licenses/bsd-license.php BSD
  20.  * @version   CVS: $Id: goods.php,v 1.1 2008/04/28 15:59:30 tetsuya Exp $
  21.  * @link      http://phpize.net
  22.  */
  23.  
  24. require_once 'AbstractAuction.php';
  25.  
  26. /**
  27.  * Services_Yahoo_JP_Auction_goods
  28.  *
  29.  * This class implements an interface to Yahoo! JAPAN's Cateogry Tree by using
  30.  * the Yahoo API.
  31.  *
  32.  * @category  Services
  33.  * @package   Services_Yahoo_JP
  34.  * @author    Tetsuya Nakase <phpizer@gmail.com>
  35.  * @copyright 2008 Tetsuya Nakase
  36.  * @license   http://www.opensource.org/licenses/bsd-license.php BSD
  37.  * @version   Release: 0.0.1
  38.  * @link      http://phpize.net
  39.  */
  40. {
  41.     /**
  42.      * api url
  43.      *
  44.      * @access protected
  45.      * @var    string 
  46.      */
  47.     protected $requestURL =
  48.         'http://auctions.yahooapis.jp/AuctionWebService/V1/CategoryLeaf';
  49.  
  50.     /**
  51.      * submit
  52.      * This is override function in Services_Yahoo_JP_Auction_AbstractAuction.
  53.      *
  54.      * @return array A goods list.
  55.      */
  56.     public function submit()
  57.     {
  58.         $res = parent::submit();
  59.         $res->setIndexKey('item');
  60.         return $res;
  61.     }
  62. }
  63. ?>

Documentation generated on Fri, 19 Sep 2008 21:30:05 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.