-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions_example.php
More file actions
76 lines (69 loc) · 3.01 KB
/
options_example.php
File metadata and controls
76 lines (69 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
*
* @package Config Editor
* @copyright (c) 2014 gameserver-admin.de
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
$options = array(
'spacer' => ' ', //Wird zwischen der Option und dem wert angegeben, ' ' ergibt "option wert", '=' ergibt "option=wert"
'line_end' => "\n", //Wird am Ende von jedem Eintrag verwendet, "\n" ergibt eine neue Zeile
array(
'name' => 'Kategorie 1',
'options' => array(
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => 'Standard Wert',
'type' => 'text', // Einzeiliger Text
'quote' => true, //Der Wert wird in der config Datei in Anfürungszeichen geschrienen (key="wert")
),
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => 'Standard Wert',
'type' => 'textarea', // Mehrzeiliger Text
),
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => '',
'type' => 'password', // Passwortfeld
),
),
),
array(
'name' => 'Kategorie 2',
'options' => array(
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => 0,
'type' => 'int', // Ganzzahl
),
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => 0,
'type' => 'select', // Auswal Box
'selects' => array(
'0' => 'Option1', // 1. Option der Auswahlbox
'1' => 'Option2', // usw...
),
),
array(
'value' => 'option_in_config',
'name' => 'Name im Editor',
'description' => 'Beschreibung der Variable im Editor',
'default' => 0,
'type' => 'bool', // Checkbox, kann 0 oder 1 sein
),
),
),
);