validateConfig()) { if ($this->archive() !== false && file_exists($this->archive())) return true; // No new temp file given, old archive still exists, pretend it worked... return false; } $task = Taskmanager::submit('MoveFile', array( 'source' => $this->tmpFile, 'destination' => $tgz, 'parentTask' => $parent, 'failOnParentFail' => false )); return $task; } protected function moduleVersion() { return self::VERSION; } protected function validateConfig() { return $this->tmpFile !== false && file_exists($this->tmpFile); } public function setData($key, $value) { if ($key !== 'tmpFile' || !file_exists($value)) return false; $this->tmpFile = $value; } }