setDocumentComponent($object); $compilationDirectory->write( $path, $compactDoc->saveToString() ); } public function readCompilationData(\tao_models_classes_service_StorageDirectory $compilationDirectory, $path, $cacheInfo = '') { $path .= '.' . self::OUTPUT_FILE_TYPE; $compactDoc = new XmlCompactDocument(); $compactDoc->loadFromString($compilationDirectory->read($path)); return $compactDoc->getDocumentComponent(); } /** * @return string */ public function getOutputFileType() { return self::OUTPUT_FILE_TYPE; } }