Config/Writer/Yaml.php

Show: PublicProtectedPrivateinherited
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$  

\Zend_Config_Writer_Yaml

Package: Zend_Config
Abstract File Writer
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

>VPropertyprotectedcallable $_yamlEncoder = array('Zend_Config_Writer_Yaml', 'encode')
What to call when we need to decode some YAML?
Default valuearray('Zend_Config_Writer_Yaml', 'encode')Details
Type
callable

Methods

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

Service function for encoding YAML

Parameters
NameTypeDescription
$indentint

Current indent level

$dataarray

Data to encode

Returns
TypeDescription
string
methodpublicencode(array $data) : string
static

Very dumb YAML encoder

Until we have Zend_Yaml...
Parameters
NameTypeDescription
$dataarray

YAML data

Returns
TypeDescription
string
methodpublicgetYamlEncoder() : callable

Get callback for decoding YAML

Returns
TypeDescription
callable
methodpublicrender() : string

Render a Zend_Config into a YAML config string.

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

Set callback for decoding YAML

Parameters
NameTypeDescription
$yamlEncodercallable

the decoder to set

Returns
TypeDescription
\Zend_Config_Yaml
Documentation was generated by phpDocumentor 2.2.0 .