@@ -45,11 +45,12 @@ class AmazonFeedList extends AmazonFeedsCore implements Iterator
45
45
* The parameters are passed to the parent constructor, which are
46
46
* in turn passed to the AmazonCore constructor. See it for more information
47
47
* on these parameters and common methods.
48
- * @param string $s <p>Name for the store you want to use.</p>
49
- * @param bool $mock [optional] <p>This is a flag for enabling Mock Mode.
50
- * This defaults to <b>FALSE</b>.</p>
51
- * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p>
52
- * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p>
48
+ *
49
+ * @param string $s <p>Name for the store you want to use.</p>
50
+ * @param bool $mock [optional] <p>This is a flag for enabling Mock Mode.
51
+ * This defaults to <b>FALSE</b>.</p>
52
+ * @param array|string $m [optional] <p>The files (or file) to use in Mock Mode.</p>
53
+ * @param string $config [optional] <p>An alternate config file to set. Used for testing.</p>
53
54
*/
54
55
public function __construct ($ s , $ mock = false , $ m = null , $ config = null )
55
56
{
@@ -66,6 +67,7 @@ public function __construct($s, $mock = false, $m = null, $config = null)
66
67
67
68
/**
68
69
* Returns whether or not a token is available.
70
+ *
69
71
* @return bool
70
72
*/
71
73
public function hasToken ()
@@ -80,7 +82,8 @@ public function hasToken()
80
82
* the necessary operations to retrieve the rest of the list using tokens. If
81
83
* this option is off, the object will only ever retrieve the first section of
82
84
* the list.
83
- * @param bool $b [optional] <p>Defaults to <b>TRUE</b></p>
85
+ *
86
+ * @param bool $b [optional] <p>Defaults to <b>TRUE</b></p>
84
87
* @return bool <b>FALSE</b> if improper input
85
88
*/
86
89
public function setUseToken ($ b = true )
@@ -99,7 +102,7 @@ public function setUseToken($b = true)
99
102
* Setting this parameter tells Amazon to only return Feed Submissions that match
100
103
* the IDs in the list. If this parameter is set, all other parameters will be ignored.
101
104
*
102
- * @param array|string $s <p>A list of Feed Submission IDs, or a single ID string.</p>
105
+ * @param array|string $s <p>A list of Feed Submission IDs, or a single ID string.</p>
103
106
* @return bool <b>FALSE</b> if improper input
104
107
*/
105
108
public function setFeedIds ($ s )
@@ -142,7 +145,7 @@ public function resetFeedIds()
142
145
* the types in the list. If this parameter is not set, Amazon will return
143
146
* Feed Submissions of any type.
144
147
*
145
- * @param array|string $s <p>A list of Feed Types, or a single type string.</p>
148
+ * @param array|string $s <p>A list of Feed Types, or a single type string.</p>
146
149
* @return bool <b>FALSE</b> if improper input
147
150
*/
148
151
public function setFeedTypes ($ s )
@@ -185,8 +188,8 @@ public function resetFeedTypes()
185
188
* the statuses in the list. If this parameter is not set, Amazon will return
186
189
* Feed Submissions with any status.
187
190
*
188
- * @param array|string $s <p>A list of Feed Statuses, or a single status string.<br />
189
- * Valid values are "_SUBMITTED_", "_IN_PROGRESS_", "_CANCELLED_", and "_DONE_".</p>
191
+ * @param array|string $s <p>A list of Feed Statuses, or a single status string.<br />
192
+ * Valid values are "_SUBMITTED_", "_IN_PROGRESS_", "_CANCELLED_", and "_DONE_".</p>
190
193
* @return bool <b>FALSE</b> if improper input
191
194
*/
192
195
public function setFeedStatuses ($ s )
@@ -227,7 +230,7 @@ public function resetFeedStatuses()
227
230
* This method sets the maximum number of Feed Submissions for Amazon to return.
228
231
* If this parameter is not set, Amazon will only send ten.
229
232
*
230
- * @param array|string $s <p>Positive integer from 1 to 100.</p>
233
+ * @param array|string $s <p>Positive integer from 1 to 100.</p>
231
234
* @return bool <b>FALSE</b> if improper input
232
235
*/
233
236
public function setMaxCount ($ s )
@@ -248,8 +251,8 @@ public function setMaxCount($s)
248
251
* only return Feed Submissions that were submitted within the past 180 days.
249
252
* The parameters are passed through <i>strtotime</i>, so values such as "-1 hour" are fine.
250
253
*
251
- * @param string $s [optional] <p>A time string for the earliest time.</p>
252
- * @param string $e [optional] <p>A time string for the latest time.</p>
254
+ * @param string $s [optional] <p>A time string for the earliest time.</p>
255
+ * @param string $e [optional] <p>A time string for the latest time.</p>
253
256
*/
254
257
public function setTimeLimits ($ s = null , $ e = null )
255
258
{
@@ -282,6 +285,7 @@ public function resetTimeLimits()
282
285
* the list back as a response, which can be retrieved using <i>getFeedList</i>.
283
286
* Other methods are available for fetching specific values from the list.
284
287
* This operation can potentially involve tokens.
288
+ *
285
289
* @param bool <p>When set to <b>FALSE</b>, the function will not recurse, defaults to <b>TRUE</b></p>
286
290
* @return bool <b>FALSE</b> if something goes wrong
287
291
*/
@@ -363,7 +367,7 @@ protected function prepareToken()
363
367
*
364
368
* This is what reads the response XML and converts it into an array.
365
369
*
366
- * @param SimpleXMLObject $xml <p>The XML response from Amazon.</p>
370
+ * @param SimpleXMLObject $xml <p>The XML response from Amazon.</p>
367
371
* @return bool <b>FALSE</b> if no XML data is found
368
372
*/
369
373
protected function parseXML ($ xml )
@@ -395,6 +399,7 @@ protected function parseXML($xml)
395
399
*
396
400
* Submits a <i>GetFeedSubmissionCount</i> request to Amazon. Amazon will send
397
401
* the number back as a response, which can be retrieved using <i>getCount</i>.
402
+ *
398
403
* @return bool <b>FALSE</b> if something goes wrong
399
404
*/
400
405
public function countFeeds ()
@@ -453,6 +458,7 @@ protected function prepareCount()
453
458
* as a response the list of feeds that were cancelled, along with the count
454
459
* of the number of affected feeds. This data can be retrieved using the same
455
460
* methods as with <i>fetchFeedSubmissions</i> and <i>countFeeds</i>.
461
+ *
456
462
* @return bool <b>FALSE</b> if something goes wrong
457
463
*/
458
464
public function cancelFeeds ()
@@ -508,7 +514,7 @@ protected function prepareCancel()
508
514
*
509
515
* This method will return <b>FALSE</b> if the list has not yet been filled.
510
516
*
511
- * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
517
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
512
518
* @return string|bool single value, or <b>FALSE</b> if Non-numeric index
513
519
*/
514
520
public function getFeedId ($ i = 0 )
@@ -525,7 +531,7 @@ public function getFeedId($i = 0)
525
531
*
526
532
* This method will return <b>FALSE</b> if the list has not yet been filled.
527
533
*
528
- * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
534
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
529
535
* @return string|bool single value, or <b>FALSE</b> if Non-numeric index
530
536
*/
531
537
public function getFeedType ($ i = 0 )
@@ -543,7 +549,7 @@ public function getFeedType($i = 0)
543
549
* This method will return <b>FALSE</b> if the list has not yet been filled.
544
550
* The time will be in the ISO8601 date format.
545
551
*
546
- * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
552
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
547
553
* @return string|bool single value, or <b>FALSE</b> if Non-numeric index
548
554
*/
549
555
public function getDateSubmitted ($ i = 0 )
@@ -561,7 +567,7 @@ public function getDateSubmitted($i = 0)
561
567
* This method will return <b>FALSE</b> if the list has not yet been filled.
562
568
* See <i>setFeedStatuses</i> for a list of possible values.
563
569
*
564
- * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
570
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
565
571
* @return string|bool single value, or <b>FALSE</b> if Non-numeric index
566
572
*/
567
573
public function getFeedStatus ($ i = 0 )
@@ -585,7 +591,7 @@ public function getFeedStatus($i = 0)
585
591
* <li><b>FeedProcessingStatus</b> - see <i>setFeedStatuses</i> for a list of possible values</li>
586
592
* </ul>
587
593
*
588
- * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
594
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
589
595
* @return array|bool array of values, or <b>FALSE</b> if Non-numeric index
590
596
*/
591
597
public function getFeedInfo ($ i = 0 )
@@ -601,6 +607,7 @@ public function getFeedInfo($i = 0)
601
607
* Returns the full list.
602
608
*
603
609
* This method will return <b>FALSE</b> if the list has not yet been filled.
610
+ *
604
611
* @return array|bool multi-dimensional array, or <b>FALSE</b> if list not filled yet
605
612
*/
606
613
public function getFeedList ()
@@ -616,6 +623,7 @@ public function getFeedList()
616
623
* Returns the feed count from either countFeeds or cancelFeeds.
617
624
*
618
625
* This method will return <b>FALSE</b> if the count has not been set yet.
626
+ *
619
627
* @return number|bool number, or <b>FALSE</b> if count not set yet
620
628
*/
621
629
public function getFeedCount ()
@@ -629,6 +637,7 @@ public function getFeedCount()
629
637
630
638
/**
631
639
* Iterator function.
640
+ *
632
641
* @return type
633
642
*/
634
643
public function current ()
@@ -646,6 +655,7 @@ public function rewind()
646
655
647
656
/**
648
657
* Iterator function.
658
+ *
649
659
* @return type
650
660
*/
651
661
public function key ()
@@ -663,6 +673,7 @@ public function next()
663
673
664
674
/**
665
675
* Iterator function.
676
+ *
666
677
* @return type
667
678
*/
668
679
public function valid ()
0 commit comments