Esempio n. 1
0
 /**
  * Create a select box the user can choose the timeline interval from
  */
 private function setupIntervalBox()
 {
     $box = new SelectBox('intervalBox', array('4h' => mt('monitoring', '4 Hours'), '1d' => mt('monitoring', 'One day'), '1w' => mt('monitoring', 'One week'), '1m' => mt('monitoring', 'One month'), '1y' => mt('monitoring', 'One year')), mt('monitoring', 'TimeLine interval'), 'interval');
     $box->applyRequest($this->getRequest());
     $this->view->intervalBox = $box;
 }
 /**
  * Interval selector box
  *
  * @return SelectBox
  */
 private function createIntervalBox()
 {
     $box = new SelectBox('intervalBox', array('1d' => $this->translate('One day'), '1w' => $this->translate('One week'), '1m' => $this->translate('One month'), '1y' => $this->translate('One year')), $this->translate('Report interval'), 'interval');
     $box->applyRequest($this->getRequest());
     return $box;
 }