ILIAS  release_4-4 Revision
HFile_patrol Class Reference
+ Inheritance diagram for HFile_patrol:
+ Collaboration diagram for HFile_patrol:

Public Member Functions

 HFile_patrol ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 HFile ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 5 of file HFile_patrol.php.

Member Function Documentation

◆ donothing()

HFile_patrol::donothing (   $keywordin)

Definition at line 214 of file HFile_patrol.php.

215 {
216  return $keywordin;
217 }

◆ HFile_patrol()

HFile_patrol::HFile_patrol ( )

Definition at line 6 of file HFile_patrol.php.

References HFile\HFile().

6  {
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Patrol Scripting
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("{");
28 $this->unindent = array("}");
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array();
33 $this->delimiters = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("#");
39 $this->blockcommenton = array("");
40 $this->blockcommentoff = array("");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "{" => "1",
46  "else" => "1",
47  "elsif" => "1",
48  "exit" => "1",
49  "export" => "1",
50  "foreach" => "1",
51  "function" => "1",
52  "if" => "1",
53  "last" => "1",
54  "local" => "1",
55  "main" => "1",
56  "next" => "1",
57  "requires" => "1",
58  "return" => "1",
59  "switch" => "1",
60  "while" => "1",
61  "}" => "1",
62  "acos" => "2",
63  "annotate" => "2",
64  "annotate_get" => "2",
65  "asctime" => "2",
66  "asin" => "2",
67  "atan" => "2",
68  "blackout" => "2",
69  "cat" => "2",
70  "ceil" => "2",
71  "chan_exists" => "2",
72  "change_state" => "2",
73  "close" => "2",
74  "cond_signal" => "2",
75  "cond_wait" => "2",
76  "console_type" => "2",
77  "convert_date" => "2",
78  "cos" => "2",
79  "cosh" => "2",
80  "create" => "2",
81  "date" => "2",
82  "debugger" => "2",
83  "destroy" => "2",
84  "destroy_lock" => "2",
85  "difference" => "2",
86  "event_archive" => "2",
87  "event_catalog_get" => "2",
88  "event_check" => "2",
89  "event_query" => "2",
90  "event_range_manage" => "2",
91  "event_range_query" => "2",
92  "event_report" => "2",
93  "event_schedule" => "2",
94  "event_trigger" => "2",
95  "event_trigger2" => "2",
96  "execute" => "2",
97  "exists" => "2",
98  "exp" => "2",
99  "fabs" => "2",
100  "file" => "2",
101  "floor" => "2",
102  "fmod" => "2",
103  "fopen" => "2",
104  "fseek" => "2",
105  "ftell" => "2",
106  "full_discovery" => "2",
107  "get" => "2",
108  "get_chan_info" => "2",
109  "getenv" => "2",
110  "getpid" => "2",
111  "get_ranges" => "2",
112  "get_vars" => "2",
113  "grep" => "2",
114  "history" => "2",
115  "history_get_retention" => "2",
116  "index" => "2",
117  "int" => "2",
118  "internal" => "2",
119  "intersection" => "2",
120  "in_transition" => "2",
121  "isnumber" => "2",
122  "is_var" => "2",
123  "kill" => "2",
124  "length" => "2",
125  "lines" => "2",
126  "lock" => "2",
127  "log" => "2",
128  "loge" => "2",
129  "log10" => "2",
130  "ntharg" => "2",
131  "nthargf" => "2",
132  "nthline" => "2",
133  "nthlinef" => "2",
134  "num_consoles" => "2",
135  "pconfig" => "2",
136  "popen" => "2",
137  "pow" => "2",
138  "print" => "2",
139  "printf" => "2",
140  "proc_exists" => "2",
141  "process" => "2",
142  "Pslexecute" => "2",
143  "random" => "2",
144  "read" => "2",
145  "readln" => "2",
146  "refresh_parameters" => "2",
147  "remote_close" => "2",
148  "remote_event_query" => "2",
149  "remote_event_trigger" => "2",
150  "remote_file_send" => "2",
151  "remote_open" => "2",
152  "response" => "2",
153  "response_get_value" => "2",
154  "rindex" => "2",
155  "set" => "2",
156  "share" => "2",
157  "sin" => "2",
158  "sinh" => "2",
159  "sleep" => "2",
160  "snmp_agent_config" => "2",
161  "snmp_agent_stop" => "2",
162  "snmp_close" => "2",
163  "snmp_config" => "2",
164  "_snmp_debug" => "2",
165  "snmp_get" => "2",
166  "snmp_get_next" => "2",
167  "snmp_h_get" => "2",
168  "snmp__h_get_next" => "2",
169  "snmp_h_set" => "2",
170  "snmp_open" => "2",
171  "snmp_set" => "2",
172  "snmp_trap_ignore" => "2",
173  "snmp_trap_listen" => "2",
174  "snmp_trap_raise_std_trap" => "2",
175  "snmp_trap_receive" => "2",
176  "snmp_trap_register_im" => "2",
177  "snmp_trap_send" => "2",
178  "snmp_walk" => "2",
179  "sort" => "2",
180  "sprintf" => "2",
181  "sqrt" => "2",
182  "srandom" => "2",
183  "subset" => "2",
184  "substr" => "2",
185  "system" => "2",
186  "tail" => "2",
187  "tanh" => "2",
188  "time" => "2",
189  "tmpnam" => "2",
190  "tolower" => "2",
191  "toupper" => "2",
192  "trim" => "2",
193  "union" => "2",
194  "unique" => "2",
195  "unlock" => "2",
196  "unset" => "2",
197  "va_arg" => "2",
198  "va_start" => "2",
199  "write" => "2");
200 
201 // Special extensions
202 
203 // Each category can specify a PHP function that returns an altered
204 // version of the keyword.
205 
206 
207 
208 $this->linkscripts = array(
209  "1" => "donothing",
210  "2" => "donothing");
211 }
HFile()
Definition: HFile.php:24
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: