[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/registry/src/Format/ -> Yaml.php (summary)

Part of the Joomla Framework Registry Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 95 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Yaml:: (3 methods):
  __construct()
  objectToString()
  stringToObject()


Class: Yaml  - X-Ref

YAML format handler for Registry.

__construct()   X-Ref
Construct to set up the parser and dumper


objectToString($object, array $options = [])   X-Ref
Converts an object into a YAML formatted string.
We use json_* to convert the passed object to an array.

param: object  $object   Data source object.
param: array   $options  Options used by the formatter.
return: string  YAML formatted string.

stringToObject($data, array $options = [])   X-Ref
Parse a YAML formatted string and convert it into an object.
We use the json_* methods to convert the parsed YAML array to an object.

param: string  $data     YAML formatted string to convert.
param: array   $options  Options used by the formatter.
return: object  Data object.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer