Exemplo n.º 1
0
 /**
  * set the needed request-params
  *
  * @author KM
  *
  * @param $context
  * @param $module
  * @param $action
  */
 public function initialize($context, $module, $action)
 {
     $parentRet = parent::initialize($context, $module, $action);
     $request = $context->getRequest();
     $this->pVerifiedDomains = DomainProfileTable::retrieveVerifiedForUser($this->getUser()->getGuardUser());
     $this->pHostId = $request->getParameter('host_id', $this->pVerifiedDomains[0]->getId());
     $this->pAggregation = $request->getParameter('aggregation', 'daily');
     $this->pDateFrom = $request->getParameter('date-from', date('Y-m-d', strtotime("6 days ago")));
     $this->pDateTo = $request->getParameter('date-to', date('Y-m-d'));
     return $parentRet;
 }