public function showAction()
 {
     $this->createTabs('event', 'show');
     $id = $this->getParam('id');
     if ($id === null) {
         throw new IcingaException('You need to specify the event id!');
     }
     $repository = EventBackend::fromConfig();
     $query = $repository->select();
     $this->view->event = Event::fromRepository($query, $id);
     $this->render('events/show', null, true);
 }
 /**
  * Return a pre-filtered Query for EventBackend
  *
  * @return  RepositoryQuery
  */
 public function getEventQuery()
 {
     $repository = EventBackend::fromConfig();
     $query = $repository->select();
     $query->addFilter($this->getFilter());
     return $query;
 }