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

Source for file GetProductFinderXSL.php

Documentation is available at GetProductFinderXSL.php

  1. <?PHP
  2. /**
  3.  * Get XSL stylesheet to transform product finder
  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/GetProductFinderXSL/GetProductFinderXSLLogic.htm
  10.  */
  11. {
  12.    /**
  13.     * verb of the API call
  14.     *
  15.     * @var  string 
  16.     */
  17.     protected $verb = 'GetProductFinderXSL';
  18.  
  19.    /**
  20.     * parameter map that is used, when scalar parameters are passed
  21.     *
  22.     * @var  array 
  23.     */
  24.     protected $paramMap = array(
  25.                                  'FileName',
  26.                                  'Version',
  27.                                 );
  28.  
  29.    /**
  30.     * arguments of the call
  31.     *
  32.     * @var  array 
  33.     */
  34.     protected $args = array(
  35.                             'DetailLevel' => 1
  36.                         );
  37.  
  38.    /**
  39.     * options that will be passed to the unserializer
  40.     *
  41.     * @var  array 
  42.     */
  43.     protected $unserializerOptions = array(
  44.                                             'parseAttributes' => true,
  45.                                             'contentName'     => 'Xsl',
  46.                                             'forceEnum'       => array('XslFile')
  47.                                         );
  48.  
  49.    /**
  50.     * make the API call
  51.     *
  52.     * @param    object Services_Ebay_Session 
  53.     * @return   string 
  54.     */
  55.     public function call(Services_Ebay_Session $session)
  56.     {
  57.         $return = parent::call($session);
  58.  
  59.         $result = array();
  60.         foreach ($return['ProductFinderXsl']['XslFile'as $xsl{
  61.             if (isset($xsl['Xsl'])) {
  62.                 $xsl['Xsl'base64_decode($xsl['Xsl']);
  63.             }
  64.             array_push($result$xsl);
  65.         }
  66.         return $result;
  67.     }
  68. }
  69. ?>

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