コード例 #1
0
 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';
 }
コード例 #2
0
 private function fillRelease(array $data, PhoebiusRelease $release)
 {
     $release->setDate(new Date($data['date']))->setVersion($data['version'])->setDescription($data['description'])->setLink($data['link']);
     return $release;
 }