JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • Ini
  • Json
  • Php
  • Xml
  • Yaml

Class Ini

INI format handler for Registry.

Joomla\Registry\AbstractRegistryFormat implements Joomla\Registry\FormatInterface
Extended by Joomla\Registry\Format\Ini
Namespace: Joomla\Registry\Format
Since: 1.0
Located at vendor/joomla/registry/src/Format/Ini.php

Methods summary

public string
# objectToString( object $object, array $options = array() )

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.

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.

Parameters

$object
object - $object Data source object.
$options
array - $options Options used by the formatter.

Returns

string - INI formatted string.

Since

1.0
public object
# stringToObject( string $data, array $options = array() )

Parse an INI formatted string and convert it into an object.

Parse an INI formatted string and convert it into an object.

Parameters

$data
string - $data INI formatted string to convert.
$options
array - $options An array of options used by the formatter, or a boolean setting to process sections.

Returns

object - Data object.

Since

1.0
protected string
# getValueAsIni( mixed $value )

Method to get a value in an INI format.

Method to get a value in an INI format.

Parameters

$value
mixed - $value The value to convert to INI format.

Returns

string - The value in INI format.

Since

1.0

Methods inherited from Joomla\Registry\AbstractRegistryFormat

getInstance()

Magic methods summary

Properties summary

protected static array $options
#

Default options array

Default options array

Since

1.3.0
protected static array $cache
#

A cache used by stringToobject.

A cache used by stringToobject.

Since

1.0

Properties inherited from Joomla\Registry\AbstractRegistryFormat

$instances

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.