public function parseData($data) { $items = array(); if (!($feed = parent::parseData($data, true))) { return $items; } if (isset($feed['channel'])) { $items = $this->parseChannel($feed['channel']); } else { throw new KurogoException("Don't know how to parse this feed yet"); } if (is_null($this->totalItems)) { $this->setTotalItems(count($items)); } return $items; }