3 // @role user-defined extension (used in Config, et al)
4 // @author Matt Todd <matt@matttoddphoto.com>
6 // @desc Handles parsing YAML formatted documents
7 // @refer_to "SPYC":http://spyc.sourceforge.net/
8 // @requires YAML/spyc.php5 (YAML PHP5 parser class)
9 // @requires extexception.php (StdException class)
11 include_once('YAML/spyc.php');
12 include_once('stdexception.php');
16 // loads and parses a YAML document
17 public static function load($yaml) {
18 $output = Spyc
::YAMLLoad($yaml);
23 class YAMLFileNotFound
extends StdException
{}
24 class YAMLException
extends StdException
{}