ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_hartddl Class Reference
+ Inheritance diagram for HFile_hartddl:
+ Collaboration diagram for HFile_hartddl:

Public Member Functions

 HFile_hartddl ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 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 7 of file HFile_hartddl.php.

Member Function Documentation

◆ donothing()

HFile_hartddl::donothing (   $keywordin)

Definition at line 335 of file HFile_hartddl.php.

336  {
337  return $keywordin;
338  }

◆ HFile_hartddl()

HFile_hartddl::HFile_hartddl ( )

Definition at line 9 of file HFile_hartddl.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // HART DDL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("{");
32  $this->unindent = array("}");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("\"", "'");
37  $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("//");
43  $this->blockcommenton = array("/*");
44  $this->blockcommentoff = array("*/");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "ARRAY" => "1",
50  "COMMAND" => "1",
51  "DEVICE" => "1",
52  "DEVICE_TYPE" => "1",
53  "DD_REVISION" => "1",
54  "DEVICE_REVISION" => "1",
55  "EDIT_DISPLAY" => "1",
56  "IMPORT" => "1",
57  "MANUFACTURER" => "1",
58  "MENU" => "1",
59  "METHOD" => "1",
60  "VARIABLE" => "1",
61  "WRITE_AS_ONE" => "1",
62  "ALL" => "2",
63  "AO" => "2",
64  "ARRAYS" => "2",
65  "AUTO" => "2",
66  "BAD" => "2",
67  "CASE" => "2",
68  "CLASS" => "2",
69  "COLLECTION" => "2",
70  "COMMANDS" => "2",
71  "COMM_ERROR" => "2",
72  "CONSTANT_UNIT" => "2",
73  "CORRECTABLE" => "2",
74  "DATA" => "2",
75  "DATA_ENTRY_ERROR" => "2",
76  "DATA_ENTRY_WARNING" => "2",
77  "DATE" => "2",
78  "DATE_AND_TIME" => "2",
79  "DEFAULT" => "2",
80  "DEFINITION" => "2",
81  "DETAIL" => "2",
82  "DISPLAY_ITEMS" => "2",
83  "DURATION" => "2",
84  "DV" => "2",
85  "EDIT_DISPLAYS" => "2",
86  "EDIT_ITEMS" => "2",
87  "ELEMENTS" => "2",
88  "ELSE" => "2",
89  "EVENT" => "2",
90  "EVERYTHING" => "2",
91  "FALSE" => "2",
92  "GOOD" => "2",
93  "HANDLING" => "2",
94  "HARDWARE" => "2",
95  "HELP" => "2",
96  "IF" => "2",
97  "IGNORE_IN_HANDHELD" => "2",
98  "INFO" => "2",
99  "ITEMS" => "2",
100  "LABEL" => "2",
101  "MANUAL" => "2",
102  "MEMBERS" => "2",
103  "MISC" => "2",
104  "MORE" => "2",
105  "NUMBER" => "2",
106  "OPERATION" => "2",
107  "POST_EDIT_ACTIONS" => "2",
108  "POST_READ_ACTIONS" => "2",
109  "POST_WRITE_ACTIONS" => "2",
110  "PRE_EDIT_ACTIONS" => "2",
111  "PRE_READ_ACTIONS" => "2",
112  "PRE_WRITE_ACTIONS" => "2",
113  "PROCESS" => "2",
114  "PROCESS_ERROR" => "2",
115  "READ_TIMEOUT" => "2",
116  "REDEFINITIONS" => "2",
117  "REFRESH" => "2",
118  "RELATIONS" => "2",
119  "RELEASED" => "2",
120  "RESPONSE_CODES" => "2",
121  "REVIEW" => "2",
122  "REVISION" => "2",
123  "SELECT" => "2",
124  "SELF_CORRECTING" => "2",
125  "SOFTWORE" => "2",
126  "STATE" => "2",
127  "SUMMARY" => "2",
128  "TIME" => "2",
129  "TRANSACTION" => "2",
130  "TRUE" => "2",
131  "TV" => "2",
132  "TYPE" => "2",
133  "UNCORRECTABLE" => "2",
134  "UNIT" => "2",
135  "VALIDITY" => "2",
136  "VARIABLES" => "2",
137  "WRITE_ITMEOUT" => "2",
138  "break" => "2",
139  "char" => "2",
140  "continue" => "2",
141  "default" => "2",
142  "do" => "2",
143  "double" => "2",
144  "else" => "2",
145  "float" => "2",
146  "for" => "2",
147  "if" => "2",
148  "int" => "2",
149  "long" => "2",
150  "return" => "2",
151  "short" => "2",
152  "signed" => "2",
153  "switch" => "2",
154  "unsigned" => "2",
155  "while" => "2",
156  "ABORT_ON_ALL_COMM_STATUS" => "3",
157  "ABORT_ON_ALL_DEVICE_STATUS" => "3",
158  "ABORT_ON_ALL_RESPONSE_CODES" => "3",
159  "ABORT_ON_COMM_ERROR" => "3",
160  "ABORT_ON_COMM_STATUS" => "3",
161  "ABORT_ON_DEVICE_STATUS" => "3",
162  "ABORT_ON_NO_DEVICE" => "3",
163  "ABORT_ON_RESPONSE_CODE" => "3",
164  "ACKNOWLEDGE" => "3",
165  "acknowledge" => "3",
166  "add_abort_method" => "3",
167  "assign_double" => "3",
168  "assign_float" => "3",
169  "assign_int" => "3",
170  "assign_var" => "3",
171  "DELAY" => "3",
172  "DELAY_TIME" => "3",
173  "dassign" => "3",
174  "delay" => "3",
175  "display" => "3",
176  "display_comm_status" => "3",
177  "display_device_status" => "3",
178  "display_response_status" => "3",
179  "display_xmtr_status" => "3",
180  "ext_send_command" => "3",
181  "ext_send_command_trans" => "3",
182  "fassign" => "3",
183  "fgetval" => "3",
184  "float_value" => "3",
185  "fsetval" => "3",
186  "fvar_value" => "3",
187  "GET_DEV_VAR_VALUE" => "3",
188  "GET_LOCAL_VAR_VALUE" => "3",
189  "get_dev_var_value" => "3",
190  "get_dictionary_string" => "3",
191  "get_local_var_value" => "3",
192  "get_more_status" => "3",
193  "get_status_code_string" => "3",
194  "IGNORE_ALL_COMM_STATUS" => "3",
195  "IGNORE_ALL_DEVICE_STATUS" => "3",
196  "IGNORE_ALL_RESPONSE_CODES" => "3",
197  "IGNORE_COMM_ERROR" => "3",
198  "IGNORE_COMM_STATUS" => "3",
199  "IGNORE_DEVICE_STATUS" => "3",
200  "IGNORE_NO_DEVICE" => "3",
201  "IGNORE_RESPONSE_CODE" => "3",
202  "iassign" => "3",
203  "igetval" => "3",
204  "int_value" => "3",
205  "isetval" => "3",
206  "ivar_value" => "3",
207  "lassign" => "3",
208  "lgetval" => "3",
209  "long_value" => "3",
210  "lsetval" => "3",
211  "lvar_value" => "3",
212  "PUT_MESSAGE" => "3",
213  "process_abort" => "3",
214  "put_message" => "3",
215  "RETRY_ON_ALL_COMM_STATUS" => "3",
216  "RETRY_ON_ALL_DEVICE_STATUS" => "3",
217  "RETRY_ON_ALL_RESPONSE_CODES" => "3",
218  "RETRY_ON_COMM_ERROR" => "3",
219  "RETRY_ON_COMM_STATUS" => "3",
220  "RETRY_ON_DEVICE_STATUS" => "3",
221  "RETRY_ON_NO_DEVICE" => "3",
222  "RETRY_ON_RESPONSE_CODE" => "3",
223  "remove_abort_method" => "3",
224  "remove_all_abort_methods" => "3",
225  "rspcode_string" => "3",
226  "SELECT_FROM_LIST" => "3",
227  "SET_NUMBER_OF_RETRIES" => "3",
228  "save_values" => "3",
229  "select_from_list" => "3",
230  "send" => "3",
231  "send_command" => "3",
232  "send_command_trans" => "3",
233  "send_trans" => "3",
234  "VARID" => "3",
235  "vassign" => "3",
236  "XMTR_ABORT_ON_ALL_COMM_STATUS" => "3",
237  "XMTR_ABORT_ON_ALL_DEVICE_STATUS" => "3",
238  "XMTR_ABORT_ON_ALL_RESPONSE_CODES" => "3",
239  "XMTR_ABORT_ON_COMM_ERROR" => "3",
240  "XMTR_ABORT_ON_COMM_STATUS" => "3",
241  "XMTR_ABORT_ON_DATA" => "3",
242  "XMTR_ABORT_ON_DEVICE_STATUS" => "3",
243  "XMTR_ABORT_ON_NO_DEVICE" => "3",
244  "XMTR_ABORT_ON_RESPONSE_CODE" => "3",
245  "XMTR_IGNORE_ALL_COMM_STATUS" => "3",
246  "XMTR_IGNORE_ALL_DEVICE_STATUS" => "3",
247  "XMTR_IGNORE_ALL_RESPONSE_CODES" => "3",
248  "XMTR_IGNORE_COMM_ERROR" => "3",
249  "XMTR_IGNORE_COMM_STATUS" => "3",
250  "XMTR_IGNORE_DEVICE_STATUS" => "3",
251  "XMTR_IGNORE_NO_DEVICE" => "3",
252  "XMTR_IGNORE_RESPONSE_CODE" => "3",
253  "XMTR_RETRY_ON_ALL_COMM_STATUS" => "3",
254  "XMTR_RETRY_ON_ALL_DEVICE_STATUS" => "3",
255  "XMTR_RETRY_ON_ALL_RESPONSE_CODES" => "3",
256  "XMTR_RETRY_ON_COMM_ERROR" => "3",
257  "XMTR_RETRY_ON_COMM_STATUS" => "3",
258  "XMTR_RETRY_ON_DATA" => "3",
259  "XMTR_RETRY_ON_DEVICE_STATUS" => "3",
260  "XMTR_RETRY_ON_NO_DEVICE" => "3",
261  "XMTR_RETRY_ON_RESPONSE_CODE" => "3",
262  "ANALOG_OUTPUT" => "4",
263  "ASCII" => "4",
264  "BIT_ENUMERATED" => "4",
265  "BITSTRING" => "4",
266  "CORRECTION" => "4",
267  "COMPUTATION" => "4",
268  "DISCRETE" => "4",
269  "DYNAMIC" => "4",
270  "DIAGNOSTIC" => "4",
271  "DISPLAY_FORMAT" => "4",
272  "DISPLAY_VALUE" => "4",
273  "DOUBLE" => "4",
274  "EDIT_FORMAT" => "4",
275  "ENUMERATED" => "4",
276  "FLOAT" => "4",
277  "FREQUENCY" => "4",
278  "HART" => "4",
279  "INDEX" => "4",
280  "INPUT" => "4",
281  "INTEGER" => "4",
282  "LOCAL" => "4",
283  "LOCAL_DISPLAY" => "4",
284  "MAX_VALUE" => "4",
285  "MIN_VALUE" => "4",
286  "MISC_ERROR" => "4",
287  "MISC_WARNING" => "4",
288  "MODE" => "4",
289  "MODE_ERROR" => "4",
290  "PACKED_ASCII" => "4",
291  "PASSWORD" => "4",
292  "READ" => "4",
293  "REPLY" => "4",
294  "REQUEST" => "4",
295  "READ_ONLY" => "4",
296  "SCALING_FACTOR" => "4",
297  "SERVICE" => "4",
298  "SUCCESS" => "4",
299  "UNSIGNED_INTEGER" => "4",
300  "USER_INTERFACE" => "4",
301  "WRITE" => "4",
302  "[]" => "5",
303  "ADD" => "5",
304  "DELETE" => "5",
305  "REDEFINE" => "5",
306  "+" => "5",
307  "-" => "5",
308  "=" => "5",
309  "//" => "5",
310  "/" => "5",
311  "%" => "5",
312  "&" => "5",
313  ">" => "5",
314  "<" => "5",
315  "^" => "5",
316  "!" => "5",
317  "|" => "5");
318 
319  // Special extensions
320 
321  // Each category can specify a PHP function that returns an altered
322  // version of the keyword.
323 
324 
325 
326  $this->linkscripts = array(
327  "1" => "donothing",
328  "2" => "donothing",
329  "3" => "donothing",
330  "4" => "donothing",
331  "5" => "donothing");
332  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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