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 Yaml

YAML format handler for Registry.

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

Methods summary

public
# __construct( )

Construct to set up the parser and dumper

Construct to set up the parser and dumper

Since

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

Converts an object into a YAML formatted string. We use json_* to convert the passed object to an array.

Converts an object into a YAML formatted string. We use json_* to convert the passed object to an array.

Parameters

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

Returns

string - YAML formatted string.

Since

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

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.

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.

Parameters

$data
string - $data YAML formatted string to convert.
$options
array - $options Options used by the formatter.

Returns

object - Data object.

Since

1.0

Methods inherited from Joomla\Registry\AbstractRegistryFormat

getInstance()

Magic methods summary

Properties summary

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.