XOOPS
2.6.0
|
Static Public Member Functions | |
static | dump ($var, $inline=4, $indent=4) |
static | dumpWrapped ($var, $inline=4, $indent=4) |
static | load ($yamlString) |
static | loadWrapped ($yamlString) |
static | read ($yamlFile) |
static | readWrapped ($yamlFile) |
static | save ($var, $yamlFile, $inline=4, $indent=4) |
static | saveWrapped ($var, $yamlFile, $inline=4, $indent=4) |
|
static |
Dump an PHP array as a YAML string
mixed | $var | Variable which will be dumped |
integer | $inline | Nesting level where you switch to inline YAML |
integer | $indent | Number of spaces to indent for nested nodes |
Definition at line 51 of file Yaml.php.
References $var, and Xoops\getInstance().
|
static |
Dump an PHP array as a YAML string with a php wrapper
The wrap is a php header that surrounds the yaml with section markers, '—' and '...' along with php comment markers. The php wrapper keeps the yaml file contents from being revealed by serving the file directly from a poorly configured server.
mixed | $var | Variable which will be dumped |
integer | $inline | Nesting level where you switch to inline YAML |
integer | $indent | Number of spaces to indent for nested nodes |
Definition at line 135 of file Yaml.php.
References $var, and Xoops\getInstance().
|
static |
Load a YAML string into a PHP array
string | $yamlString | YAML dump string |
Definition at line 69 of file Yaml.php.
References Xoops\getInstance().
|
static |
Load a YAML string with a php wrapper into a PHP array
The wrap is a php header that surrounds the yaml with section markers, '—' and '...' along with php comment markers. The php wrapper keeps the yaml file contents from being revealed by serving the file directly from a poorly configured server.
string | $yamlString | YAML dump string |
Definition at line 159 of file Yaml.php.
References Xoops\getInstance().
|
static |
Read a file containing YAML into a PHP array
string | $yamlFile | filename of YAML file |
Definition at line 87 of file Yaml.php.
References Xoops\getInstance().
Referenced by Xmf\Database\TableLoad\loadTableFromYamlFile(), Xoops\Core\Assets\readAssetsPrefs(), and Xoops\Core\Service\Manager\readYamlProviderPrefs().
|
static |
Read a file containing YAML with a php wrapper into a PHP array
The wrap is a php header that surrounds the yaml with section markers, '—' and '...' along with php comment markers. The php wrapper keeps the yaml file contents from being revealed by serving the file directly from a poorly configured server.
string | $yamlFile | filename of YAML file |
Definition at line 185 of file Yaml.php.
References Xoops\getInstance().
Referenced by Xoops\Core\Cache\CacheManager\__construct().
|
static |
Save a PHP array as a YAML file
array | $var | variable which will be dumped |
string | $yamlFile | filename of YAML file |
integer | $inline | Nesting level where you switch to inline YAML |
integer | $indent | Number of spaces to indent for nested nodes |
Definition at line 109 of file Yaml.php.
References $var, and Xoops\getInstance().
Referenced by Xoops\Core\Assets\saveAssetsPrefs(), and Xoops\Core\Service\Manager\saveProviderPrefs().
|
static |
Save a PHP array as a YAML file with a php wrapper
The wrap is a php header that surrounds the yaml with section markers, '—' and '...' along with php comment markers. The php wrapper keeps the yaml file contents from being revealed by serving the file directly from a poorly configured server.
array | $var | variable which will be dumped |
string | $yamlFile | filename of YAML file |
integer | $inline | Nesting level where you switch to inline YAML |
integer | $indent | Number of spaces to indent for nested nodes |
Definition at line 212 of file Yaml.php.
References $var, and Xoops\getInstance().
Referenced by Xoops\Core\Cache\CacheManager\__construct(), and Xoops\Core\Cache\CacheManager\createDefaultConfig().