Config/Writer/Yaml.php
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 [email protected] 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

Returns


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
Methods


_encodeYaml(int $indent, array $data) : string
static
Service function for encoding YAML
Parameters
Returns
Name | Type | Description |
---|---|---|
$indent | int | Current indent level |
$data | array | Data to encode |
Type | Description |
---|---|
string |


encode(array $data) : string
static
Very dumb YAML encoder
Until we have Zend_Yaml...
ParametersName | Type | Description |
---|---|---|
$data | array | YAML data |
Type | Description |
---|---|
string |


render() : string
Render a Zend_Config into a YAML config string.
Returns
Details
Type | Description |
---|---|
string |
- Since
- 1.10


setYamlEncoder(callable $yamlEncoder) : \Zend_Config_Yaml
Set callback for decoding YAML
Parameters
Returns
Name | Type | Description |
---|---|---|
$yamlEncoder | callable | the decoder to set |
Type | Description |
---|---|
\Zend_Config_Yaml |