[ Index ]

PHP Cross Reference of DokuWiki




/lib/plugins/config/core/ -> ConfigParser.php (summary)

(no description)

File Size: 101 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ConfigParser:: (2 methods):

Class: ConfigParser  - X-Ref

A naive PHP file parser

This parses our very simple config file in PHP format. We use this instead of simply including
the file, because we want to keep expressions such as 24*60*60 as is.

parse($file)   X-Ref
Parse the given PHP file into an array

When the given files does not exist, this returns an empty array

param: string $file
return: array

readValue($value)   X-Ref
Convert php string into value

param: string $value
return: bool|string