Exemplo n.º 1
0
 protected function debug($message) {
     $message .= ' (WORKER_'.$this->task->getWorkingAreaFrom().'-'.$this->task->getWorkingAreaTo() . ')';
     parent::debug($message);
 }
Exemplo n.º 2
0
 protected function debug($message) {
     parent::debug('Compress commission task: ' . $message);
 }
 protected function loadFromTask()
 {
     parent::loadFromTask();
     $json = new Gpf_Rpc_Json();
     $values = $json->decode($this->getParams());
     if (isset($values->isPending)) {
         $this->paramsArray['isPending'] = $values->isPending;
         if (isset($values->importedLinesCount)) {
             $this->paramsArray['importedLinesCount'] = $values->importedLinesCount;
         } else {
             $this->paramsArray['importedLinesCount'] = 0;
         }
         if (isset($values->importedLinesCount)) {
             $this->paramsArray['wrongLinesCount'] = $values->wrongLinesCount;
         } else {
             $this->paramsArray['wrongLinesCount'] = 0;
         }
     }
 }