Beispiel #1
0
 /**
  * AmazonFeed submits a Feed to Amazon.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * @param string $s <p>Name for the store you want to use.</p>
  * @param boolean $mock [optional] <p>This is a flag for enabling Mock Mode.
  * This defaults to <b>FALSE</b>.</p>
  * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p>
  * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p>
  */
 public function __construct($s, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
     include $this->env;
     $this->options['Action'] = 'SubmitFeed';
     if (isset($THROTTLE_LIMIT_FEEDSUBMIT)) {
         $this->throttleLimit = $THROTTLE_LIMIT_FEEDSUBMIT;
     }
     if (isset($THROTTLE_TIME_FEEDSUBMIT)) {
         $this->throttleTime = $THROTTLE_TIME_FEEDSUBMIT;
     }
     $this->throttleGroup = 'SubmitFeed';
 }
Beispiel #2
0
 /**
  * AmazonFeedResult gets the result of a Feed from Amazon.
  *
  * The parameters are passed to the parent constructor, which are
  * in turn passed to the AmazonCore constructor. See it for more information
  * on these parameters and common methods.
  * Please note that an extra parameter comes before the usual Mock Mode parameters,
  * so be careful when setting up the object.
  * @param string $s <p>Name for the store you want to use.</p>
  * @param string $id [optional] <p>The Feed Submission ID to set for the object.</p>
  * @param boolean $mock [optional] <p>This is a flag for enabling Mock Mode.
  * This defaults to <b>FALSE</b>.</p>
  * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p>
  * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p>
  */
 public function __construct($s, $id = null, $mock = false, $m = null, $config = null)
 {
     parent::__construct($s, $mock, $m, $config);
     include $this->env;
     if ($id) {
         $this->options['FeedSubmissionId'] = $id;
     }
     $this->options['Action'] = 'GetFeedSubmissionResult';
     if (isset($THROTTLE_LIMIT_FEEDRESULT)) {
         $this->throttleLimit = $THROTTLE_LIMIT_FEEDRESULT;
     }
     if (isset($THROTTLE_TIME_FEEDRESULT)) {
         $this->throttleTime = $THROTTLE_TIME_FEEDRESULT;
     }
     $this->throttleGroup = 'GetFeedSubmissionResult';
 }