function action_index() { $announcements = EntityQuery::create(Announcement::orm())->orderBy(OrderBy::desc('date'))->setLimit(self::LIMIT_ENTRIES_PER_PAGE)->setOffset(0)->getList(); $release = PhoebiusRelease::query()->orderBy(OrderBy::desc('date'))->setLimit(1)->getEntity(); $this->getModel()->append(array('release' => $release, 'announcements' => $announcements, 'breadScrumbs' => array())); return 'index'; }
private function fillRelease(array $data, PhoebiusRelease $release) { $release->setDate(new Date($data['date']))->setVersion($data['version'])->setDescription($data['description'])->setLink($data['link']); return $release; }