[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

Defines 1 class

Php:: (4 methods):
  objectToString()
  stringToObject()
  formatValue()
  getArrayString()


Class: Php  - X-Ref

PHP class format handler for Registry

objectToString($object, array $params = [])   X-Ref
Converts an object into a php class string.
- NOTE: Only one depth level is supported.

param: object  $object  Data Source Object
param: array   $params  Parameters used by the formatter
return: string  Config class formatted string

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

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

formatValue($value)   X-Ref
Format a value for the string conversion

param: mixed  $value  The value to format
return: mixed  The formatted value

getArrayString($a)   X-Ref
Method to get an array as an exported string.

param: array  $a  The array to get as a string.
return: string



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