to_yaml ()

Gets the current XML node as a YAML string.

Access

public

Returns

Type

Description

string

The current XML node as a YAML string.

Source

Method defined in utilities/simplexml.class.php | Toggle source view (4 lines) | View on GitHub

public function to_yaml()
{
    return sfYaml::dump(json_decode(json_encode($this), true), 5);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback