Difference between revisions of "Prokee Module: settings"
Jump to navigation
Jump to search
m (Text replacement - "http://www.andreaspollhammer.com/downloads/docu/html/" to "http://www.andreaspollhammer.com/lab/downloads/docu/html/") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
($|-)[>]''name''[ [...]]=[ [...]]("''value''"[''comment'']|''value''[;[''comment'']]) | ($|-)[>]''name''[ [...]]=[ [...]]("''value''"[''comment'']|''value''[;[''comment'']]) | ||
| − | + | ''comment'' | |
=== Examples === | === Examples === | ||
| Line 55: | Line 55: | ||
== Implementations == | == Implementations == | ||
| − | * [http://www.andreaspollhammer.com/lab/docu/html/settings_v01.php settings (version v01)] | + | * [http://www.andreaspollhammer.com/lab/downloads/docu/html/settings_v01.php settings (version v01)] |
[[Category:Prokee Modules]] | [[Category:Prokee Modules]] | ||
Latest revision as of 18:10, 1 June 2019
The module settings provides methods to read and write ini-files.
Contents
Syntax of ini-Files
The ini-files are parsed line by line.
line[\n...]
Each line may contain one of the following contents:
DEF title[:[comment]]
\[title\][comment]
END|}
($|-)[>]name[ [...]]=[ [...]]("value"[comment]|value[;[comment]])
comment
Examples
Example 1:
DEF window:SETTINGS
{
$show_window="maximize";
}
DEF files:SETTINGS
{
$file="info.txt";
$file="test.txt";
$file="main.txt";
}
Example 2:
DEF window
$show_window="maximize";
END
DEF files
$file="info.txt";
$file="test.txt";
$file="main.txt";
END
Example 3:
[window] ->show_window="maximize"; [files] ->file="info.txt"; ->file="test.txt"; ->file="main.txt";