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

Source for file LeaveFeedback.php

Documentation is available at LeaveFeedback.php

  1. <?PHP
  2. /**
  3.  * Leave feedback for a user
  4.  *
  5.  * $Id$
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/LeaveFeedback/LeaveFeedbackLogic.htm
  10.  */
  11. {
  12.    /**
  13.     * verb of the API call
  14.     *
  15.     * @var  string 
  16.     */
  17.     protected $verb = 'LeaveFeedback';
  18.  
  19.    /**
  20.     * parameter map that is used, when scalar parameters are passed
  21.     *
  22.     * @var  array 
  23.     */
  24.     protected $paramMap = array(
  25.                                  'TargetUser',
  26.                                  'ItemId',
  27.                                  'CommentType',
  28.                                  'Comment',
  29.                                  'TransactionId'
  30.                                 );
  31.     
  32.    /**
  33.     * make the API call
  34.     *
  35.     * @param    object Services_Ebay_Session 
  36.     * @return   string  feedback ID
  37.     */
  38.     public function call(Services_Ebay_Session $session)
  39.     {
  40.         $return = parent::call($session);
  41.         if ($return['LeaveFeedback']['Status'=== 'Success'{
  42.             return $return['LeaveFeedback']['FeedbackId'];
  43.         }
  44.         return false;
  45.     }
  46. }
  47. ?>

Documentation generated on Mon, 11 Mar 2019 15:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.