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

  • Dumper
  • Inline
  • Parser
  • Yaml

Class Inline

Inline implements a YAML parser/dumper for the YAML inline syntax.

Namespace: Symfony\Component\Yaml
Author: Fabien Potencier <fabien@symfony.com>
Located at vendor/symfony/yaml/Inline.php

Methods summary

public static mixed
# parse( string $value, boolean $exceptionOnInvalidType = false, boolean $objectSupport = false, boolean $objectForMap = false, array $references = array() )

Converts a YAML string to a PHP value.

Converts a YAML string to a PHP value.

Parameters

$value
string - $value A YAML string
$exceptionOnInvalidType
boolean - $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
boolean - $objectSupport true if object support is enabled, false otherwise
$objectForMap
boolean - $objectForMap true if maps should return a stdClass instead of array()
$references
array - $references Mapping of variable names to values

Returns

mixed - A PHP value

Throws

Symfony\Component\Yaml\Exception\ParseException
public static string
# dump( mixed $value, boolean $exceptionOnInvalidType = false, boolean $objectSupport = false )

Dumps a given PHP variable to a YAML string.

Dumps a given PHP variable to a YAML string.

Parameters

$value
mixed - $value The PHP variable to convert
$exceptionOnInvalidType
boolean - $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
boolean - $objectSupport true if object support is enabled, false otherwise

Returns

string - The YAML string representing the PHP value

Throws

Symfony\Component\Yaml\Exception\DumpException - When trying to dump PHP resource

Magic methods summary

Constants summary

string REGEX_QUOTED_STRING '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')'
#
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.