pageId = $pageId; } /** * @return int */ public function getPageId() { return $this->pageId; } public function getContent() { return array( 'limit' => self::LIMIT, 'logs' => $this->getByFeedId($this->getPageId()), ); } public function getByFeedId($feedId) { $result = Db::getInstance()->executeS('SELECT l.* FROM '._DB_PREFIX_.'blmod_xml_access_log l WHERE l.feed_id = "'.(int)$feedId.'" ORDER BY l.id DESC LIMIT '.(int)self::LIMIT); return $result; } }