public function parseData($data) { $data = parent::parseData($data); $photos = array(); $items = $data['data']; $this->setTotalItems(count($data['data'])); foreach ($items as $entry) { $photos[] = $this->parseEntry($entry); } return $photos; }
public function parseData($data) { if ($channel = parent::parseData($data)) { if (isset($channel['channel']['items'])) { $videos = array(); $this->setTotalItems(count($channel['channel']['items'])); foreach ($channel['channel']['items'] as $entry) { $videos[] = $this->parseEntry($entry); } return $videos; } } }