blob: c68a964b3220161a5a8f5ef0c6cc1be3d64a0aa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
/**
* SSRS_Object_Abstract
*
* @author arron
*/
class SSRS_Object_CatalogItems extends SSRS_Object_ArrayIterator {
public $iteratorKey = 'CatalogItems';
public function init() {
$this->data['CatalogItems'] = array();
}
public function setCatalogItems(stdClass $items) {
foreach ($items->CatalogItem AS $item) {
$this->addCatalogItem(new SSRS_Object_CatalogItem($item));
}
}
public function addCatalogItem(SSRS_Object_CatalogItem $item) {
$this->data['CatalogItems'][] = $item;
}
}
|