Lines Matching full:spyc
3 * Spyc -- A Simple PHP YAML Class
7 * @link https://github.com/mustangostang/spyc/
10 * @package Spyc
20 return Spyc::YAMLLoadString($string);
31 return Spyc::YAMLLoad($file);
42 return Spyc::YAMLDump($data, false, false, true);
46 if (!class_exists('Spyc')) {
57 * $Spyc = new Spyc;
58 * $array = $Spyc->load($file);
62 * $array = Spyc::YAMLLoad($file);
68 * @package Spyc
70 class Spyc { class
125 * Load a valid YAML string to Spyc.
134 * Load a valid YAML file to Spyc.
150 * $array = Spyc::YAMLLoad('lucky.yaml');
159 $Spyc = new Spyc;
161 if (property_exists($Spyc, $key)) {
162 $Spyc->$key = $value;
165 return $Spyc->_load($input);
180 * $array = Spyc::YAMLLoadString("---\n0: hello world\n");
189 $Spyc = new Spyc;
191 if (property_exists($Spyc, $key)) {
192 $Spyc->$key = $value;
195 return $Spyc->_loadString($input);
220 $spyc = new Spyc;
221 return $spyc->dump($array, $indent, $wordwrap, $no_opening_dashes);
1177 // Enable use of Spyc from command line
1178 // The syntax is the following: php Spyc.php spyc.yaml
1183 if (empty ($_SERVER['PHP_SELF']) || FALSE === strpos ($_SERVER['PHP_SELF'], 'Spyc.php') ) break;