YamlExtension

class YamlExtension extends Twig_Extension Provides integration of the Yaml component with Twig. Methods getFilters() {@inheritdoc} encode($input, $inline, $dumpObjects) dump($value, $inline, $dumpObjects = false) getName() {@inheritdoc} Details getFilters() {@inheritdoc} encode($input, $inline, $dumpObjects) Parameters $input $inline $dumpObjects

YamlDumper

class YamlDumper extends Dumper YamlDumper dumps a service container as a YAML string. Methods __construct(ContainerBuilder $container) from Dumper string dump(array $options = array()) Dumps the service container as an YAML string. Details __construct(ContainerBuilder $container) Parameters ContainerBuilder $container The service container to dump string dump(array $options = array()) Dumps the s

Yaml::parse()

static mixed parse(string $input, int $flags) Parses YAML into a PHP value. Usage: $array = Yaml::parse(filegetcontents('config.yml')); print_r($array); Parameters string $input A string containing YAML int $flags A bit field of PARSE_* constants to customize the YAML parser behavior Return Value mixed The YAML converted to a PHP value Exceptions ParseException If the YAML is not valid

Yaml::dump()

static string dump(mixed $input, int $inline = 2, int $indent = 4, int $flags) Dumps a PHP value to a YAML string. The dump method, when supplied with an array, will do its best to convert the array into friendly YAML. Parameters mixed $input The PHP value int $inline The level where you switch to inline YAML int $indent The amount of spaces to use for indentation of nested nodes int $flags A bit field of DUMP_* constants to customize the dumped YAML string Return Va

Yaml

class Yaml Yaml offers convenience methods to load and dump YAML. Constants DUMP_OBJECT PARSE_EXCEPTION_ON_INVALID_TYPE PARSE_OBJECT PARSE_OBJECT_FOR_MAP DUMP_EXCEPTION_ON_INVALID_TYPE PARSE_DATETIME DUMP_OBJECT_AS_MAP DUMP_MULTI_LINE_LITERAL_BLOCK Methods static mixed parse(string $input, int $flags) Parses YAML into a PHP value. static string dump(mixed $input, int $inline = 2, int $indent = 4, int $flags) Dumps a PHP value to a YAML string. D

XPathExpr::join()

XPathExpr join(string $combiner, XPathExpr $expr) Joins another XPathExpr with a combiner. Parameters string $combiner XPathExpr $expr Return Value XPathExpr

XPathExpr::getElement()

string getElement() Return Value string

XPathExpr::getCondition()

string getCondition() Return Value string

XPathExpr::addStarPrefix()

XPathExpr addStarPrefix() Return Value XPathExpr

XPathExpr::addNameTest()

XPathExpr addNameTest() Return Value XPathExpr