Source for file Ini.class.php
Documentation is available at Ini.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD Libary. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Config INI Writer
gumbo_load ("Interface_Config_Writer");
* Writes the supplied values into the configuration file
* @param Gumbo_Interface_Composite $tree
* @param string $file file name to write to
* @param bool $replace replaces current file
* @throws Gumbo_Exception
public function write (Gumbo_Interface_Composite $tree, $file, $replace=
true) {
// check for valid variable type
if (!is_bool ($replace)) { $replace =
true; }
// write the contents to the file
$e->setFunction (__METHOD__
);