Updated Spyc library

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-21 22:29:44 +02:00
parent 80488784f9
commit 2f1e37ce6c

View File

@ -10,6 +10,28 @@
* @package Spyc
*/
if (!function_exists('spyc_load')) {
/**
* Parses YAML to array.
* @param string $string YAML string.
* @return array
*/
function spyc_load ($string) {
return Spyc::YAMLLoadString($string);
}
}
if (!function_exists('spyc_load_file')) {
/**
* Parses YAML to array.
* @param string $file Path to YAML file.
* @return array
*/
function spyc_load_file ($file) {
return Spyc::YAMLLoad($file);
}
}
/**
* The Simple PHP YAML Class.
*