public function check()
 {
     $this->out('Check running tasks.');
     Queue::check();
 }
Exemple #2
0
                 if ($objEditItem->check()) {
                     if ($objEditItem->isLoaded()) {
                         //$objEditItem->save($oldPriority, $testbed);
                         $objEditItem->save();
                         $pMessage = $arrLanguageMessage['done_updated'];
                     } else {
                         $objEditItem->add();
                         $pMessage = $arrLanguageMessage['done_added'];
                     }
                     $objEditItem = new Queue();
                 } else {
                     $hasErrors = 1;
                 }
             }
         } else {
             if ($objEditItem->check()) {
                 if ($objEditItem->isLoaded()) {
                     //$objEditItem->save($oldPriority, $testbed);
                     $objEditItem->save();
                     $pMessage = $arrLanguageMessage['done_updated'];
                 } else {
                     $objEditItem->add();
                     $pMessage = $arrLanguageMessage['done_added'];
                 }
                 $objEditItem = new Queue();
             } else {
                 $hasErrors = 1;
             }
         }
     }
 } else {