data = $data; } else { $data = $this->data; } // Yaml class doesn't support objects, cast them to arrays $data = (array) $data; return YML::dump($data); } /** * Convert the encoded data to a native format * * @param string $data_string * @return object */ public function unserialize($data_string) { return YML::parse($data_string, FALSE, TRUE); } } // End of types/YAML.php