/** * @static * @param $processId * @return int */ public static function getProgress($processId) { $instance = new self(); $instance->setProcessId($processId); if (is_file($instance->getJobFile())) { $instance = Pimcore_Tool_Serialize::unserialize(file_get_contents($instance->getJobFile())); } return $instance->getStatus(); }