Klasse um .cfg Dateien zu parsen
| copyright | (c) Copyright 2008-2013 by ManuAdminMod (http://www.manuadminmod.de) |
|---|---|
| license | Creative Commons BY-NC-ND 3.0 (http://www.creativecommons.org/licenses/by-nc-nd/3.0/) |
| author | manu (manu@manuadminmod.de) |
| since | 1.0 |
| version | 1.0.1 |
__construct(string $filename)
parse(boolean $parse_sections) : array
Wenn Sections geparsed werden sollen, dann muss der Parameter true sein,
sonst false.
Sections sind Aufteilungen der .cfg-Datei mithilfe von [section_name]
boolean= true Sections parsen
\Daemon\Lib\Config\FileParseException |
|---|
arrayKonfigurationparseFile(string $file, boolean $parse_sections) : array
Wenn Sections geparsed werden sollen, dann muss der zweite Parameter true sein, sonst false
Sections sind Aufteilungen der .cfg-Datei mithilfe von [section_name]
stringDateiname
boolean
\Daemon\Lib\Config\FileParseException |
|---|
arrayDie Konfigurationerror(string $msg) : void
handleComment() : void
handleEOL() : void
isDigit(string $c) : boolean
string
booleanisDigitWithDotAndE(string $c) : boolean
string
booleanisDigitWithMinus(string $c) : boolean
string
booleanisDigitWithMinusAndDot(string $c) : boolean
string
booleanisWhiteSpaceWithNl(string $c) : boolean
\n ist
string
booleanisWhiteSpaceWithoutNl(string $c) : boolean
\n ist
string
booleanisWordOrDigit(string $c) : boolean
string
booleannextChar() : string
string$config : string
$curchar : \Daemon\Lib\Config\unknown
$filename : string
$line : integer
$sectionname : string
$sections : \Daemon\Lib\Config\unknown
$totalchars : int
EOF : string