task = $task; } /** * {@inheritdoc} */ public function getVersions() { return array('', '2015-12-21'); } /** * Returns the related Task entity. * * @return Task */ public function getTask() { return $this->task; } /** * {@inheritdoc} */ public function getPath($version) { $path = sprintf('%s/task_%d%s.log', $this->root, $this->task->getId(), $version ? ('-'.$version) : ''); file_put_contents("/tmp/phraseanet-log.txt", sprintf("%s (%d) %s\n", __FILE__, __LINE__, var_export($path, true)), FILE_APPEND); return sprintf('%s/task_%d%s.log', $this->root, $this->task->getId(), $version ? ('-'.$version) : ''); } }