Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • Dumper
  • Escaper
  • Inline
  • Parser
  • Unescaper
  • Yaml
  • Overview
  • Namespace
  • Class
  • Tree

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 Inline.php
Methods summary
public static array
# parse( string $value, boolean $exceptionOnInvalidType = false, boolean $objectSupport = false, boolean $objectForMap = false, array $references = array() )

Converts a YAML string to a PHP array.

Converts a YAML string to a PHP array.

Parameters

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

Returns

array
A PHP array representing the YAML string

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
The PHP variable to convert
$exceptionOnInvalidType
true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
true if object support is enabled, false otherwise

Returns

string
The YAML string representing the PHP array

Throws

Symfony\Component\Yaml\Exception\DumpException
When trying to dump PHP resource
public static string
# parseScalar( string $scalar, string $delimiters = null, array $stringDelimiters = array('"', "'"), integer & $i = 0, boolean $evaluate = true, array $references = array() )

Parses a scalar to a YAML string.

Parses a scalar to a YAML string.

Parameters

$scalar
$delimiters
$stringDelimiters
$i
$i
$evaluate
$references

Returns

string
A YAML string

Throws

Symfony\Component\Yaml\Exception\ParseException
When malformed inline YAML string is parsed
Constants summary
string REGEX_QUOTED_STRING
# '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\']*(?:\'\'[^\']*)*)\')'
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen