doWork() защищенный Метод

Actually copies the files
protected doWork ( ) : void
Результат void
Пример #1
0
 /**
  * Method executed to copy all the files. After copy it intercepts the file list
  * and calculate the checksum for each file, storing in the specified file.
  *
  * @return void
  */
 protected function doWork()
 {
     parent::doWork();
     $checksumFile = fopen($this->checksumFile, 'a');
     // Run the file map calculating the checksum
     foreach ($this->fileCopyMap as $source => $dest) {
         $relativePath = str_replace($this->addTrailingSlash($this->destDir), '', $dest);
         $sum = sha1_file($source);
         fwrite($checksumFile, $relativePath . ':' . $sum . "\n");
     }
     fclose($checksumFile);
 }