API Documentation

Zend/Config/Writer/Yaml.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Config  
Version
$Id: Yaml.php 23651 2011-01-21 21:51:00Z mikaelkael $  

\Zend_Config_Writer_Yaml

Package: Zend\Config

Parent(s)
\Zend_Config_Writer_FileAbstract < \Zend_Config_Writer
Category
Zend  
Copyright
Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotected\callable  $_yamlEncoder= 'array('Zend_Config_Writer_Yaml''

What to call when we need to decode some YAML?

Default valuearray('Zend_Config_Writer_Yaml'Details
Type
\callable

Methods

methodprotected_encodeYaml( int $indent, array $data ) : string
static

Service function for encoding YAML

Parameters
Name Type Description
$indent int

Current indent level

$data array

Data to encode

Returns
Type Description
string
methodpublicencode( array $data ) : string
static

Very dumb YAML encoder

Until we have Zend_Yaml...

Parameters
Name Type Description
$data array

YAML data

Returns
Type Description
string
methodpublicgetYamlEncoder( ) : \callable

Get callback for decoding YAML

Returns
Type Description
\callable
methodpublicrender( ) : string

Render a Zend_Config into a YAML config string.

Returns
Type Description
string
Details
Since
1.10  
methodpublicsetYamlEncoder( \callable $yamlEncoder ) : \Zend_Config_Yaml

Set callback for decoding YAML

Parameters
Name Type Description
$yamlEncoder \callable

the decoder to set

Returns
Type Description
\Zend_Config_Yaml
Documentation was generated by DocBlox 0.15.1.