Example #1
0
 function processConfigForm(array $values)
 {
     if ($this->getPointFieldType() == self::POINT_DATE) {
         $this->setInterval($values['start'], $values['stop']);
         $quant = Am_Report_Quant::createById($values['quant'], $this->getPointFieldType());
         $this->setQuantity($quant);
     }
 }
Example #2
0
 protected function processConfigForm(array $values)
 {
     list($start, $stop) = $this->getStartStop($values);
     $this->setInterval($start, $stop);
     $quant = Am_Report_Quant::createById($values['quant'], $this->getPointFieldType());
     $this->setQuantity($quant);
     $this->period = $values['period'];
     foreach ($values as $k => $v) {
         if (strpos($k, 'shift_') === 0 && $v) {
             $this->shift[] = str_replace('shift_', '', $k);
         }
     }
 }
Example #3
0
 protected function processConfigForm(array $values)
 {
     list($start, $stop) = $this->getStartStop($values);
     $this->setInterval($start, $stop);
     $quant = Am_Report_Quant::createById($values['quant'], $this->getPointFieldType());
     $this->setQuantity($quant);
 }