Source for file Reader.class.php
Documentation is available at Reader.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. 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
* Config Reader Interface
* A Config Reader is responsible for reading a particular type of configuration
* file into memory, and returning the details in a Composite form. The class
* should indicate what type of file it is responsible for reading. This will a
* allow the programmer to define various types of Readers.
* In order to apply a Config Reader to Library, simply create a new class inside
* the '/gumbo/config/reader/*' directory. The class name should be defined as
* 'Gumbo_Config_Reader_[type]' where 'type' is the type of configuration file
* it will be responsible for reading. For example, supplied with the Library
* is a Gumbo_Config_Reader_Ini class. This class will read INI files into
* memory. The Config Type does not have to be a file format.
* The only requirement is to return a Composite object. This will provide a common
* interface for other systems to use. Please refer to the Composite Package for
* @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 Reader Interface
* @see Gumbo_Interface_Composite
* Reads given config file into a Composite
* @precondition file_exists($file)
* @param string $file file to read (full path)
* @return Gumbo_Interface_Composite
public function read ($file);