Config_Lite::__construct PHP Method

__construct() public method

the save' and read' methods relies on a setted filename, but you can also use `setFilename' to set the filename.
public __construct ( string $filename = null, integer $flags = null, integer $mode )
$filename string - "INI Style" Text Config File
$flags integer - flags for file_put_contents, eg. FILE_APPEND
$mode integer - set scannermode
    public function __construct($filename = null, $flags = null, $mode = 0)
    {
        $this->sections = array();
        if (null !== $filename) {
            $this->setFilename($filename);
            if (file_exists($filename)) {
                $this->read($filename, $mode);
            }
        }
        if (null !== $flags) {
            $this->setFlags($flags);
        }
    }