symfony API

sfYamlParser Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 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.

sfYamlParser class.

Method Summary

Method Details

  • (string) cleanup () Browse code

    Cleanups a YAML string to be parsed.

    returns A cleaned up YAML string

  • getCurrentLineIndentation () Browse code

    Returns the current line indentation.

  • getNextEmbedBlock () Browse code

    Returns the next embed block of YAML.

  • (integer) getRealCurrentLineNb () Browse code

    Returns the current line number (takes the offset into account).

    returns The current line number

  • (Boolean) isCurrentLineBlank () Browse code

    Returns true if the current line is blank.

    returns Returns true if the current line is blank, false otherwise

  • (Boolean) isCurrentLineComment () Browse code

    Returns true if the current line is a comment line.

    returns Returns true if the current line is a comment line, false otherwise

  • (Boolean) isCurrentLineEmpty () Browse code

    Returns true if the current line is blank or if it is a comment line.

    returns Returns true if the current line is empty or if it is a comment line, false otherwise

  • (Boolean) isNextLineIndented () Browse code

    Returns true if the next line is indented.

    returns Returns true if the next line is indented, false otherwise

  • moveToNextLine () Browse code

    Moves the parser to the next line.

  • moveToPreviousLine () Browse code

    Moves the parser to the previous line.

  • (mixed) parse () Browse code

    Parses a YAML string to a PHP value.

    returns A PHP value

  • (string) parseFoldedScalar (, , ) Browse code

    Parses a folded scalar.

    returns The text value

  • (mixed) parseValue () Browse code

    Parses a YAML value.

    returns A PHP value

  • __construct () Browse code

    Constructor