[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/registry/src/Format/ -> Ini.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: 368 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Ini:: (3 methods):
  objectToString()
  stringToObject()
  getValueAsIni()


Class: Ini  - X-Ref

INI format handler for Registry.

objectToString($object, array $options = [])   X-Ref
Converts an object into an INI formatted string
- Unfortunately, there is no way to have ini values nested further than two
levels deep.  Therefore we will only go through the first two levels of
the object.

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

stringToObject($data, array $options = [])   X-Ref
Parse an INI formatted string and convert it into an object.

param: string  $data     INI formatted string to convert.
param: array   $options  An array of options used by the formatter, or a boolean setting to process sections.
return: object   Data object.

getValueAsIni($value)   X-Ref
Method to get a value in an INI format.

param: mixed  $value  The value to convert to INI format.
return: string  The value in INI format.



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