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 Escaper

Escaper encapsulates escaping rules for single and double-quoted YAML strings.

Namespace: Symfony\Component\Yaml
Author: Matthew Lewinski matthew@lewinski.org
Located at Escaper.php
Methods summary
public static boolean
# requiresDoubleQuoting( string $value )

Determines if a PHP value would require double quoting in YAML.

Determines if a PHP value would require double quoting in YAML.

Parameters

$value
A PHP value

Returns

boolean
True if the value would require double quotes.
public static string
# escapeWithDoubleQuotes( string $value )

Escapes and surrounds a PHP value with double quotes.

Escapes and surrounds a PHP value with double quotes.

Parameters

$value
A PHP value

Returns

string
The quoted, escaped string
public static boolean
# requiresSingleQuoting( string $value )

Determines if a PHP value would require single quoting in YAML.

Determines if a PHP value would require single quoting in YAML.

Parameters

$value
A PHP value

Returns

boolean
True if the value would require single quotes.
public static string
# escapeWithSingleQuotes( string $value )

Escapes and surrounds a PHP value with single quotes.

Escapes and surrounds a PHP value with single quotes.

Parameters

$value
A PHP value

Returns

string
The quoted, escaped string
Constants summary
string REGEX_CHARACTER_TO_ESCAPE
# "[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9"
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen