YamlFormat::MIME); } public function getMIME(){ return YamlFormat::MIME; } public function getExtension(){ return YamlFormat::EXTENSION; } public function setMIME($mime){ } public function setExtension($extension){ } public function encode($data, $human_readable=false){ require_once 'sfyaml.php'; return sfYaml::dump(object_to_array($data)); } public function decode($data){ require_once 'sfyaml.php'; return sfYaml::load($data); } public function __toString(){ return $this->getExtension(); } }