ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_acl.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_acl extends HFile
8 {
9 public function HFile_acl()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // ADEPT Command Language
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", "blue", "purple", "brown", "brown", "gray", "gray", "", "purple", "");
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 "append_catalog_path" => "1",
50 "append_graphics_path" => "1",
51 "append_load_path" => "1",
52 "append_path" => "1",
53 "buffer_create" => "1",
54 "buffer_doc" => "1",
55 "caller" => "1",
56 "catch" => "1",
57 "cmd_exists" => "1",
58 "count" => "1",
59 "defined" => "1",
60 "delete" => "1",
61 "eval" => "5",
62 "execute" => "5",
63 "high_bound" => "1",
64 "insert_buffer" => "1",
65 "low_bound" => "1",
66 "option" => "1",
67 "package_file" => "1",
68 "package_name" => "1",
69 "packages" => "1",
70 "require" => "5",
71 "throw" => "1",
72 "channel_set_callback" => "2",
73 "content_model" => "4",
74 "context_paths" => "2",
75 "context_string" => "2",
76 "in_context" => "2",
77 "in_context_list" => "2",
78 "open_accept" => "2",
79 "open_connect" => "2",
80 "open_listen" => "2",
81 "pack" => "8",
82 "read" => "7",
83 "tag_content" => "4",
84 "unpack" => "8",
85 "write" => "7",
86 "current_doc" => "3",
87 "doc_close" => "3",
88 "doc_list" => "3",
89 "doc_name" => "3",
90 "doc_open" => "3",
91 "doc_parent" => "3",
92 "doc_path" => "3",
93 "doc_set_path" => "3",
94 "doc_show" => "3",
95 "doc_valid" => "3",
96 "doc_window" => "3",
97 "file_selector" => "3",
98 "list_response" => "3",
99 "panel_popup" => "3",
100 "path_doc" => "3",
101 "response" => "3",
102 "save_some_docs" => "3",
103 "base_tag_name" => "4",
104 "char_entity_names" => "4",
105 "division_tag" => "4",
106 "dl_call" => "4",
107 "dl_error" => "4",
108 "dl_find" => "4",
109 "dl_load" => "4",
110 "dl_unload" => "4",
111 "doc_type" => "4",
112 "doc_type_dir" => "4",
113 "dtd_decl_path" => "4",
114 "dtd_tag" => "4",
115 "entity_tag" => "4",
116 "file_entity_tag" => "4",
117 "fosi_public_id" => "4",
118 "graphic_entity_attr_name" => "4",
119 "graphic_entity_tag" => "4",
120 "graphic_tag_name" => "4",
121 "graphic_file_attr_name" => "4",
122 "marked_section_tag" => "4",
123 "notation_tag" => "4",
124 "path_public_ids" => "4",
125 "procins_tag" => "4",
126 "public_id" => "4",
127 "public_id_path" => "4",
128 "sgml_feature" => "4",
129 "tag_attr_choices" => "4",
130 "tag_attr_default" => "4",
131 "tag_attr_required" => "4",
132 "tag_attr_type" => "4",
133 "tag_attr_value" => "4",
134 "tag_attrs" => "4",
135 "tag_display" => "5",
136 "tag_exists" => "4",
137 "tag_has_attr" => "4",
138 "tag_names" => "4",
139 "text_entity_tag" => "4",
140 "user_tag_names" => "4",
141 "addrequiredtags" => "5",
142 "alias" => "5",
143 "aliases" => "5",
144 "attribute" => "5",
145 "autoload" => "5",
146 "beep" => "5",
147 "bitmapdisplay" => "5",
148 "break" => "5",
149 "buffers" => "5",
150 "caret" => "5",
151 "case" => "5",
152 "change_entity" => "5",
153 "change_tag" => "5",
154 "characters" => "5",
155 "check_completeness" => "5",
156 "clear_mark" => "5",
157 "comments" => "5",
158 "context" => "5",
159 "continue" => "5",
160 "copy_file" => "5",
161 "copy_keymap" => "5",
162 "copy_mark" => "5",
163 "create_file_entity" => "5",
164 "declare_entity" => "5",
165 "declare_graphic_entity" => "5",
166 "declare_ms_parameter" => "5",
167 "declare_notation" => "5",
168 "declare_text_entity" => "5",
169 "define_keymap" => "5",
170 "define_tag" => "5",
171 "delete_buffer" => "5",
172 "delete_character" => "5",
173 "delete_entity" => "5",
174 "delete_mark" => "5",
175 "delete_tag" => "5",
176 "detail" => "5",
177 "dirdot" => "5",
178 "directory" => "5",
179 "dirfontpercent" => "5",
180 "dirheading" => "5",
181 "dironly" => "5",
182 "dirorder" => "5",
183 "dirtext" => "5",
184 "dirupdate" => "5",
185 "doctypespath" => "5",
186 "edit" => "5",
187 "editfontpercent" => "5",
188 "editor" => "5",
189 "expressions" => "5",
190 "fileentityfontcolor" => "5",
191 "fileentitymarkers" => "5",
192 "find" => "5",
193 "fontpercent" => "5",
194 "for" => "5",
195 "fosi" => "5",
196 "fosiwarnings" => "5",
197 "fulljust" => "5",
198 "fullkeymap" => "5",
199 "gentext" => "5",
200 "gentextfontcolor" => "5",
201 "gentexttagdisplay" => "5",
202 "graphicdisplay" => "5",
203 "help" => "5",
204 "helpfontpercent" => "5",
205 "hookname" => "5",
206 "ids" => "5",
207 "if/else" => "5",
208 "indent" => "5",
209 "inputmode" => "5",
210 "insert_accent" => "5",
211 "insert_entity" => "5",
212 "insert_graphic" => "5",
213 "insert_graphic_entity" => "5",
214 "insert_marked_section" => "5",
215 "insert_pi" => "5",
216 "insert_string" => "5",
217 "insert_table" => "5",
218 "insert_tag" => "9",
219 "invoke_processor" => "5",
220 "join" => "5",
221 "keymap" => "5",
222 "language" => "5",
223 "link" => "5",
224 "load_buffers" => "5",
225 "loadmessages" => "5",
226 "loadpath" => "5",
227 "lookup" => "5",
228 "map" => "5",
229 "mark" => "5",
230 "menu" => "5",
231 "menu_add" => "5",
232 "menu_change" => "5",
233 "menu_copy" => "5",
234 "menu_delete" => "5",
235 "menu_load" => "5",
236 "menu_move" => "5",
237 "menu_reset" => "5",
238 "menu_save" => "5",
239 "message" => "5",
240 "modified" => "6",
241 "modify_entity" => "5",
242 "modify_file_entities" => "5",
243 "modify_graphic_entities" => "5",
244 "modify_marked_section" => "5",
245 "modify_ms_parameters" => "5",
246 "modify_notation" => "5",
247 "modify_tag" => "9",
248 "modify_text_entities" => "5",
249 "more" => "5",
250 "move_file" => "5",
251 "new" => "5",
252 "newline" => "5",
253 "options" => "5",
254 "outline" => "5",
255 "package" => "5",
256 "paste" => "9",
257 "pendingdelete" => "5",
258 "print" => "5",
259 "printer" => "5",
260 "quit" => "9",
261 "readvar" => "5",
262 "redisplay" => "5",
263 "remove_file" => "5",
264 "rename_entity" => "5",
265 "rename_notation" => "5",
266 "rename_tag" => "5",
267 "repeat" => "5",
268 "replace" => "5",
269 "requireattrs" => "5",
270 "rochange" => "5",
271 "save" => "9",
272 "save_as" => "5",
273 "save_buffers" => "5",
274 "search" => "5",
275 "selectionsvc" => "5",
276 "selectscan" => "5",
277 "set" => "5",
278 "sgmlselection" => "5",
279 "sh" => "5",
280 "show" => "5",
281 "showattrs" => "5",
282 "showentities" => "5",
283 "shownewlines" => "5",
284 "source" => "5",
285 "spell" => "5",
286 "split" => "8",
287 "substitute" => "5",
288 "tabledisplay" => "5",
289 "tablefit" => "5",
290 "tagfontpercent" => "5",
291 "tagidisplay" => "5",
292 "tagnames" => "5",
293 "tagscan" => "5",
294 "textentityfontcolor" => "5",
295 "time" => "9",
296 "translate" => "5",
297 "unalias" => "5",
298 "undeclare_entity" => "5",
299 "undeclare_notation" => "5",
300 "undefine_keymap" => "5",
301 "undefine_tag" => "5",
302 "undo" => "5",
303 "units" => "5",
304 "unmap" => "5",
305 "unsetvar" => "5",
306 "usertags" => "5",
307 "variables" => "5",
308 "version" => "5",
309 "wait" => "5",
310 "while" => "5",
311 "window" => "5",
312 "windows" => "5",
313 "wrapscan" => "5",
314 "write8bit" => "5",
315 "writecheck" => "5",
316 "caret_at" => "6",
317 "current_tag_attr_value" => "6",
318 "current_tag_name" => "6",
319 "edit_id" => "6",
320 "edit_new_window" => "6",
321 "entity" => "6",
322 "entity_doc" => "6",
323 "entity_exists" => "6",
324 "entity_first" => "6",
325 "entity_last" => "6",
326 "entity_name" => "6",
327 "forward_char" => "6",
328 "goto_oid" => "8",
329 "insert" => "6",
330 "inside_tag" => "6",
331 "looking_at" => "6",
332 "mouse_in_selection" => "6",
333 "oid_delete_attr" => "8",
334 "oid_modify_attr" => "8",
335 "oid_top_pos" => "8",
336 "scroll_to_oid" => "8",
337 "selected" => "6",
338 "selection_balanced" => "6",
339 "selection_end" => "8",
340 "selection_start" => "8",
341 "absolute_file_name" => "7",
342 "access" => "7",
343 "basename" => "7",
344 "chr" => "8",
345 "close" => "7",
346 "dirname" => "7",
347 "eof" => "7",
348 "exit_editor" => "7",
349 "expand_file_name" => "7",
350 "file_directory" => "7",
351 "file_mtime" => "9",
352 "file_newer" => "7",
353 "file_size" => "7",
354 "file_system" => "7",
355 "flush" => "7",
356 "getline" => "7",
357 "getpid" => "7",
358 "glob" => "7",
359 "hex" => "8",
360 "init_done" => "7",
361 "key_cmd" => "7",
362 "keymap_exists" => "7",
363 "max" => "7",
364 "menu_checked" => "7",
365 "menu_cmd" => "7",
366 "menu_exists" => "7",
367 "menu_item_count" => "7",
368 "menu_popup" => "7",
369 "min" => "7",
370 "oct" => "8",
371 "open" => "7",
372 "ord" => "8",
373 "put" => "7",
374 "pwd" => "7",
375 "seek" => "7",
376 "tell" => "7",
377 "truncate" => "7",
378 "umask" => "7",
379 "chop" => "8",
380 "dupl" => "8",
381 "gsub" => "8",
382 "index" => "8",
383 "length" => "8",
384 "match" => "8",
385 "match_length" => "8",
386 "match_result" => "8",
387 "match_start" => "8",
388 "oid_attr" => "8",
389 "oid_attr_list" => "8",
390 "oid_attr_required" => "8",
391 "oid_attr_type" => "8",
392 "oid_backward" => "8",
393 "oid_caret" => "8",
394 "oid_caret_offset" => "8",
395 "oid_caret_pos" => "8",
396 "oid_check_attr" => "8",
397 "oid_child" => "8",
398 "oid_children" => "8",
399 "oid_content" => "8",
400 "oid_current_tag" => "8",
401 "oid_detailed" => "8",
402 "oid_doc" => "8",
403 "oid_emptyoid_entity_first" => "8",
404 "oid_entity_last" => "8",
405 "oid_first" => "8",
406 "oid_forward" => "8",
407 "oid_has_attr" => "8",
408 "oid_in_doc" => "8",
409 "oid_last" => "8",
410 "oid_level" => "8",
411 "oid_mouse_pos" => "8",
412 "oid_name" => "8",
413 "oid_next" => "8",
414 "oid_null" => "8",
415 "oid_parent" => "8",
416 "oid_prev" => "8",
417 "oid_protected" => "8",
418 "oid_same_doc" => "8",
419 "oid_select" => "8",
420 "oid_type" => "8",
421 "oid_valid" => "8",
422 "reverse" => "8",
423 "rindex" => "8",
424 "span" => "8",
425 "sub" => "8",
426 "substr" => "8",
427 "tolower" => "8",
428 "toupper" => "8",
429 "trim" => "8",
430 "context_error" => "9",
431 "create" => "9",
432 "ctime" => "9",
433 "cut" => "9",
434 "destroy" => "9",
435 "editbeforehook" => "9",
436 "editfilehook" => "9",
437 "elapsed_time" => "9",
438 "entity_path" => "9",
439 "exclude_tag" => "9",
440 "goto_cell" => "9",
441 "modify_graphic" => "9",
442 "newfilehook" => "9",
443 "print_panel" => "9",
444 "tbl_caret_col" => "9",
445 "tbl_caret_row" => "9",
446 "tbl_col_count" => "9",
447 "tbl_quit" => "9",
448 "tbl_resize" => "9",
449 "tbl_row_count" => "9",
450 "time_date" => "9",
451 "timer_add_callback" => "9",
452 "timer_remove_callback" => "9",
453 "times" => "9",
454 "window_class" => "9",
455 "window_close" => "9",
456 "window_create" => "9",
457 "window_destroy" => "9",
458 "window_doc" => "9",
459 "window_get" => "9",
460 "window_id" => "9",
461 "window_list" => "9",
462 "window_lower" => "9",
463 "window_mask" => "9",
464 "window_name" => "9",
465 "window_open" => "9",
466 "window_raise" => "9",
467 "window_set" => "9",
468 "window_show" => "9",
469 "window_state" => "9",
470 "window_sync" => "9",
471 "window_xid" => "9",
472 "$ENV" => "10",
473 "$ERROR" => "10",
474 "$OFS" => "10",
475 "$ORS" => "10",
476 "$SYMTAB" => "10",
477 "$adept_path" => "10",
478 "$currentcolumn" => "10",
479 "$currentline" => "10",
480 "$dirname" => "10",
481 "$dirselect" => "10",
482 "$docname" => "10",
483 "$doctype" => "10",
484 "$filename" => "10",
485 "$progname" => "10",
486 "$selection" => "10",
487 "$sh_status" => "10",
488 "$status" => "10",
489 "$system" => "10",
490 "$tagname" => "10",
491 "$topline" => "10",
492 "$version" => "10",
493 "$version_date" => "10",
494 "$winsys" => "10",
495 "APTACCEPTC" => "10",
496 "APTCATPATH" => "10",
497 "APTDICTPATH" => "10",
498 "APTGRPATH" => "10",
499 "APTLANGAPTMENUFILE" => "10",
500 "APTLOADPATH" => "10",
501 "APTMOUSE" => "10",
502 "APTPATH" => "10",
503 "APTRCFILE" => "10",
504 "APTSTARTUP" => "10",
505 "APTTBLWIDTH" => "10",
506 "APTUNDOLIM" => "10");
507
508 // Special extensions
509
510 // Each category can specify a PHP function that returns an altered
511 // version of the keyword.
512
513
514
515 $this->linkscripts = array(
516 "1" => "donothing",
517 "5" => "donothing",
518 "2" => "donothing",
519 "4" => "donothing",
520 "8" => "donothing",
521 "7" => "donothing",
522 "3" => "donothing",
523 "9" => "donothing",
524 "6" => "donothing",
525 "10" => "donothing");
526 }
527
528
529 public function donothing($keywordin)
530 {
531 return $keywordin;
532 }
533 }
$BEAUT_PATH
Definition: HFile_acl.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_acl.php:529
HFile_acl()
Definition: HFile_acl.php:9