code/libraries/joomlatools/library/object/config/yaml.php
public function toString()
    {
        $result = false;

        if ($encoder = $this->getEncoder())
        {
            $data   = $this->toArray();
            $result = call_user_func($encoder, $data);
        }
        else throw new RuntimeException("No Yaml encoder specified");

        return $result;
    }
public function toString()
    {
        $result = false;

        if ($encoder = $this->getEncoder())
        {
            $data   = $this->toArray();
            $result = call_user_func($encoder, $data);
        }
        else throw new RuntimeException("No Yaml encoder specified");

        return $result;
    }
public function toString ( ) { $ result = false ; if ( $ encoder = $ this -> getEncoder ( ) ) { $ data = $ this -> toArray ( ) ; $ result = call_user_func ( $ encoder , $ data ) ; } else throw new RuntimeException ( "No Yaml encoder specified" ) ; return $ result ; }
Write a config object to a YAML string.

@return string|false     Returns a YAML encoded string on success. False on failure.
Write a config object to a YAML string .