Пример #1
0
 public function __construct($taskName, SourceFile $sourceFile, array $targetFiles, $taskID = NULL, $userID = 'nobody', $executeMode = 0, $callback = '', $priority = 0)
 {
     $this->taskName = $taskName;
     $this->sourceFile = $sourceFile->toXML();
     $this->targetFiles = '';
     foreach ($targetFiles as $targetFile) {
         if ($targetFile instanceof TargetFileInterface) {
             $this->targetFiles .= $targetFile->toXML();
         }
     }
     if (is_null($taskID)) {
         $this->taskID = \Hoge\gen_uuid();
     } else {
         $this->taskID = $taskID;
     }
     $this->userID = $userID;
     $this->executeMode = $executeMode;
     $this->callbackAddressInfo = $callback;
     $this->priority = $priority;
 }