\Zend_Config_Writer_Json
- 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_Json
extends Zend_Config_Writer_FileAbstract
{
- // members
- protected $_prettyPrint;
- // 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 the prettyPrint()
- public Zend_Config_Writer_Json setPrettyPrint()
- public string render()
- // 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 - $_prettyPrint
—
boolean
If we need to pretty-print JSON data - $_skipOptions
—
array
Option keys to skip when calling setOptions()
Methods
public
- prettyPrint() — Get prettyPrint flag
- render() — Render a Zend_Config into a JSON config string.
- setPrettyPrint() — Set prettyPrint flag
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