Ejemplo n.º 1
0
 protected function setPeriod($dateFrom, $dateTo)
 {
     parent::setPeriod($dateFrom, $dateTo);
     if (strtotime($this->dateFrom) < strtotime($this->campaign->date_start)) {
         $this->dateFrom = $this->campaign->date_start;
     }
     if (strtotime($this->dateTo) > strtotime($this->campaign->date_end)) {
         $this->dateTo = $this->campaign->date_end;
     }
 }