symfony API

sfYamlInline Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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

Method Summary

  • string dump($value)
    Dumps PHP array to YAML.
  • string dumpArray($value)
    Dumps PHP array to YAML
  • string evaluateScalar($scalar)
    Evaluates scalars and replaces magic values.
  • getTimestampRegex()
  • array load($value)
    Load YAML into a PHP array.
  • string parseMapping($mapping, &$i, $i)
    Parses mapping.
  • string parseQuotedScalar($scalar, &$i, $i)
    Parses quotes scalar
  • string parseScalar((scalar) $scalar, $delimiters = null, $stringDelimiters = array('"', "'"), &$i, $evaluate = true, $stringDelimiter, $i)
    Parses scalar to yaml
  • string parseSequence($sequence, &$i, $i)
    Parse sequence to yaml

Method Details

  • (string) dump ($value) Browse code

    $value PHP

    Dumps PHP array to YAML.

    returns YAML

  • (string) dumpArray ($value) Browse code

    $value The array to dump

    Dumps PHP array to YAML

    returns YAML

  • (string) evaluateScalar ($scalar) Browse code

    $scalar

    Evaluates scalars and replaces magic values.

    returns YAML

  • getTimestampRegex () Browse code

  • (array) load ($value) Browse code

    $value YAML

    Load YAML into a PHP array.

    returns PHP array

  • (string) parseMapping ($mapping, &$i, $i) Browse code

    $mapping
    &$i
    $i

    Parses mapping.

    returns YAML

  • (string) parseQuotedScalar ($scalar, &$i, $i) Browse code

    $scalar
    &$i
    $i

    Parses quotes scalar

    returns YAML

  • (string) parseScalar ((scalar) $scalar, $delimiters = null, $stringDelimiters = array('"', "'"), &$i, $evaluate = true, $stringDelimiter, $i) Browse code

    $scalar
    $delimiters
    $stringDelimiters
    &$i
    $evaluate
    $stringDelimiter
    $i

    Parses scalar to yaml

    returns YAML

  • (string) parseSequence ($sequence, &$i, $i) Browse code

    $sequence
    &$i
    $i

    Parse sequence to yaml

    returns YAML