Difference between revisions of "Prokee Module: settings"

From prokee
Jump to navigation Jump to search
(Created page with "This module provides methods to read and write ini-files. == Syntax of ini-Files == The ini-files are parsed line by line. ''line''[\n...] Each ''line'' may contain one of t...")
 
m (Text replacement - "http://www.andreaspollhammer.com/downloads/docu/html/" to "http://www.andreaspollhammer.com/lab/downloads/docu/html/")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
This module provides methods to read and write ini-files.
+
The module '''settings''' provides methods to read and write ini-files.
  
 
== Syntax of ini-Files ==
 
== Syntax of ini-Files ==
Line 11: Line 11:
 
  END|}
 
  END|}
  
  $|-[>]''name''[ [...]]=[ [...]]("''value''"[''comment''])|(''value''[;[''comment'']])
+
  ($|-)[>]''name''[ [...]]=[ [...]]("''value''"[''comment'']|''value''[;[''comment'']])
  
  [''comment'']
+
  ''comment''
  
 
=== Examples ===
 
=== Examples ===
Line 47: Line 47:
 
  ->file="test.txt";
 
  ->file="test.txt";
 
  ->file="main.txt";
 
  ->file="main.txt";
 +
 +
== Interfaces ==
 +
 +
=== AbsSettings ===
 +
 +
=== AbsMultiSettings ===
 +
 +
== Implementations ==
 +
* [http://www.andreaspollhammer.com/lab/downloads/docu/html/settings_v01.php settings (version v01)]
 +
 +
[[Category:Prokee Modules]]

Latest revision as of 18:10, 1 June 2019

The module settings provides methods to read and write ini-files.

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";

Interfaces

AbsSettings

AbsMultiSettings

Implementations