\Zend_Config_Writer_Yaml
- Copyright: Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Config_Writer_Yaml
extends Zend_Config_Writer_FileAbstract
{
- // members
- protected callable $_yamlEncoder;
- // Inherited members from Zend_Config_Writer_FileAbstract
- protected $_filename;
- protected $_exclusiveLock;
- // Inherited members from Zend_Config_Writer
- protected $_skipOptions;
- protected Zend_Config $_config;
- // methods
- public callable getYamlEncoder()
- public Zend_Config_Yaml setYamlEncoder()
- public string render()
- public static string encode()
- protected static string _encodeYaml()
- // Inherited methods from Zend_Config_Writer_FileAbstract
- public Zend_Config_Writer_Array setFilename()
- public Zend_Config_Writer_Array setExclusiveLock()
- public void write()
- public string render()
- // Inherited methods from Zend_Config_Writer
- public void __construct()
- public Zend_Config_Writer setConfig()
- public Zend_Config_Writer setOptions()
- public abstract void write()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
130+ | For 2.0 this should be redone into an abstract method. |
Members
protected
- $_config
—
Zend_Config
Config object to write - $_exclusiveLock
—
boolean
Wether to exclusively lock the file or not - $_filename
—
string
Filename to write to - $_skipOptions
—
array
Option keys to skip when calling setOptions() - $_yamlEncoder
—
callable
What to call when we need to decode some YAML?
Methods
protected
- _encodeYaml() — Service function for encoding YAML
public
- encode() — Very dumb YAML encoder
- getYamlEncoder() — Get callback for decoding YAML
- render() — Render a Zend_Config into a YAML config string.
- setYamlEncoder() — Set callback for decoding YAML
Inherited from Zend_Config_Writer_FileAbstract
public
- render() — Render a Zend_Config into a config file string.
- setExclusiveLock() — Set wether to exclusively lock the file or not
- setFilename() — Set the target filename
- write() — Write configuration to file.
Inherited from Zend_Config_Writer
public
- setConfig() — Set options via a Zend_Config instance
- setOptions() — Set options via an array
- write() — Write a Zend_Config object to it's target
History
-
2014-09-29T11:07:23+02:00 (commit #15b41ee)
Author: Sylvain Rayé (sylvain.raye@rissip.com) / Commiter: Sylvain Rayé (sylvain.raye@rissip.com)
Add dependency library Zend_Config. Useful only for Unit Testing