예제 #1
0
 /**
  * Get latest builds and render as a table.
  */
 protected function getLatestBuildsHtml()
 {
     $builds = $this->buildStore->getWhere(array(), 5, 0, array(), array('id' => 'DESC'));
     $view = new b8\View('BuildsTable');
     foreach ($builds['items'] as &$build) {
         $build = BuildFactory::getBuild($build);
     }
     $view->builds = $builds['items'];
     return $view->render();
 }