public static function factory(Storage $storage, $process, $row) { $handler = parent::factory($storage, $process, $row); if (isset($row["tempfileid"])) { $handler->setTempFile($storage->getTempFile($row["tempfileid"])); } return $handler; }