PHP Class Zend_Config_Writer_FileAbstract

Inheritance: extends Zend_Config_Writer
Show file Open project: dbpatch/dbpatch

Protected Properties

Property Type Description
$_exclusiveLock boolean Wether to exclusively lock the file or not
$_filename string Filename to write to

Public Methods

Method Description
render ( ) : string Render a Zend_Config into a config file string.
setExclusiveLock ( boolean $exclusiveLock ) : Zend_Config_Writer_Array Set wether to exclusively lock the file or not
setFilename ( string $filename ) : Zend_Config_Writer_Array Set the target filename
write ( string $filename = null, Zend_Config $config = null, boolean $exclusiveLock = null ) : void Write configuration to file.

Method Details

render() public method

Render a Zend_Config into a config file string.
Since: 1.10
public render ( ) : string
return string

setExclusiveLock() public method

Set wether to exclusively lock the file or not
public setExclusiveLock ( boolean $exclusiveLock ) : Zend_Config_Writer_Array
$exclusiveLock boolean
return Zend_Config_Writer_Array

setFilename() public method

Set the target filename
public setFilename ( string $filename ) : Zend_Config_Writer_Array
$filename string
return Zend_Config_Writer_Array

write() public method

Write configuration to file.
public write ( string $filename = null, Zend_Config $config = null, boolean $exclusiveLock = null ) : void
$filename string
$config Zend_Config
$exclusiveLock boolean
return void

Property Details

$_exclusiveLock protected property

Wether to exclusively lock the file or not
protected bool $_exclusiveLock
return boolean

$_filename protected property

Filename to write to
protected string $_filename
return string