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

Public Member Functions

 HFile_mysql ()
 
 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_mysql.php.

Member Function Documentation

◆ donothing()

HFile_mysql::donothing (   $keywordin)

Definition at line 321 of file HFile_mysql.php.

322  {
323  return $keywordin;
324  }

◆ HFile_mysql()

HFile_mysql::HFile_mysql ( )

Definition at line 9 of file HFile_mysql.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // MySQL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray");
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  "add" => "1",
50  "all" => "1",
51  "alter" => "1",
52  "and" => "1",
53  "as" => "1",
54  "asc" => "1",
55  "auto_increment" => "1",
56  "between" => "1",
57  "binary" => "1",
58  "both" => "1",
59  "by" => "1",
60  "change" => "1",
61  "check" => "1",
62  "column" => "1",
63  "columns" => "1",
64  "create" => "1",
65  "cross" => "1",
66  "data" => "1",
67  "database" => "1",
68  "databases" => "1",
69  "default" => "1",
70  "delayed" => "1",
71  "delete" => "1",
72  "desc" => "1",
73  "describe" => "1",
74  "distinct" => "1",
75  "drop" => "1",
76  "enclosed" => "1",
77  "escaped" => "1",
78  "exists" => "1",
79  "explain" => "1",
80  "field" => "1",
81  "fields" => "1",
82  "flush" => "1",
83  "for" => "1",
84  "foreign" => "1",
85  "from" => "1",
86  "function" => "1",
87  "grant" => "1",
88  "group" => "1",
89  "having" => "1",
90  "identified" => "1",
91  "if" => "1",
92  "ignore" => "1",
93  "index" => "1",
94  "insert" => "1",
95  "infile" => "1",
96  "into" => "1",
97  "join" => "1",
98  "key" => "1",
99  "keys" => "1",
100  "kill" => "1",
101  "leading" => "1",
102  "left" => "1",
103  "like" => "1",
104  "limit" => "1",
105  "lines" => "1",
106  "load" => "1",
107  "local" => "1",
108  "lock" => "1",
109  "low_priority" => "1",
110  "modify" => "1",
111  "natural" => "1",
112  "not" => "1",
113  "null" => "1",
114  "on" => "1",
115  "optimize" => "1",
116  "option" => "1",
117  "optionally" => "1",
118  "or" => "1",
119  "order" => "1",
120  "outer" => "1",
121  "outfile" => "1",
122  "primary" => "1",
123  "proceedure" => "1",
124  "read" => "1",
125  "references" => "1",
126  "regexp" => "1",
127  "rename" => "1",
128  "replace" => "1",
129  "returns" => "1",
130  "revoke" => "1",
131  "rlike" => "1",
132  "select" => "1",
133  "set" => "1",
134  "show" => "1",
135  "soname" => "1",
136  "status" => "1",
137  "straight_join" => "1",
138  "table" => "1",
139  "tables" => "1",
140  "teminated" => "1",
141  "to" => "1",
142  "trailing" => "1",
143  "unique" => "1",
144  "unlock" => "1",
145  "unsigned" => "1",
146  "update" => "1",
147  "use" => "1",
148  "using" => "1",
149  "values" => "1",
150  "variables" => "1",
151  "where" => "1",
152  "with" => "1",
153  "write" => "1",
154  "zerofill" => "1",
155  "xor" => "1",
156  "abs" => "2",
157  "acos" => "2",
158  "adddate" => "2",
159  "ascii" => "2",
160  "asin" => "2",
161  "atan" => "2",
162  "atan2" => "2",
163  "avg" => "2",
164  "bin" => "2",
165  "bit_and" => "2",
166  "bit_count" => "2",
167  "bit_or" => "2",
168  "ceiling" => "2",
169  "char_lengh" => "2",
170  "character_length" => "2",
171  "concat" => "2",
172  "conv" => "2",
173  "cos" => "2",
174  "cot" => "2",
175  "count" => "2",
176  "curdate" => "2",
177  "curtime" => "2",
178  "current_time" => "2",
179  "current_timestamp" => "2",
180  "date_add" => "2",
181  "date_format" => "2",
182  "date_sub" => "2",
183  "dayname" => "2",
184  "dayofmonth" => "2",
185  "dayofweek" => "2",
186  "dayofyear" => "2",
187  "degrees" => "2",
188  "elt" => "2",
189  "encrypt" => "2",
190  "exp" => "2",
191  "find_in_set" => "2",
192  "floor" => "2",
193  "format" => "2",
194  "from_days" => "2",
195  "from_unixtime" => "2",
196  "get_lock" => "2",
197  "greatest" => "2",
198  "hex" => "2",
199  "hour" => "2",
200  "ifnull" => "2",
201  "instr" => "2",
202  "isnull" => "2",
203  "interval" => "2",
204  "last_insert_id" => "2",
205  "lcase" => "2",
206  "lower" => "2",
207  "least" => "2",
208  "length" => "2",
209  "locate" => "2",
210  "log" => "2",
211  "log10" => "2",
212  "lpad" => "2",
213  "ltrim" => "2",
214  "max" => "2",
215  "mid" => "2",
216  "min" => "2",
217  "minute" => "2",
218  "mod" => "2",
219  "month" => "2",
220  "monthname" => "2",
221  "now" => "2",
222  "oct" => "2",
223  "octet_length" => "2",
224  "password" => "2",
225  "period_add" => "2",
226  "period_diff" => "2",
227  "pi" => "2",
228  "position" => "2",
229  "pow" => "2",
230  "quarter" => "2",
231  "radians" => "2",
232  "rand" => "2",
233  "release_lock" => "2",
234  "repeat" => "2",
235  "reverse" => "2",
236  "right" => "2",
237  "round" => "2",
238  "rpad" => "2",
239  "rtrim" => "2",
240  "second" => "2",
241  "sec_to_time" => "2",
242  "session_user" => "2",
243  "sign" => "2",
244  "sin" => "2",
245  "soundex" => "2",
246  "space" => "2",
247  "sqrt" => "2",
248  "strcmp" => "2",
249  "substring" => "2",
250  "substring_index" => "2",
251  "sysdate" => "2",
252  "system_user" => "2",
253  "std" => "2",
254  "sum" => "2",
255  "tan" => "2",
256  "time_format" => "2",
257  "time_to_sec" => "2",
258  "to_days" => "2",
259  "trim" => "2",
260  "truncate" => "2",
261  "ucase" => "2",
262  "unix_timestamp" => "2",
263  "user" => "2",
264  "version" => "2",
265  "week" => "2",
266  "weekday" => "2",
267  "year" => "2",
268  "bigint" => "3",
269  "blob" => "3",
270  "char" => "3",
271  "date" => "3",
272  "datetime" => "3",
273  "decimal" => "3",
274  "double" => "3",
275  "doubleprecision" => "3",
276  "enum" => "3",
277  "float" => "3",
278  "float4" => "3",
279  "float8" => "3",
280  "int" => "3",
281  "int1" => "3",
282  "int2" => "3",
283  "int3" => "3",
284  "int4" => "3",
285  "int8" => "3",
286  "integer" => "3",
287  "long" => "3",
288  "longblob" => "3",
289  "longtext" => "3",
290  "mediumblob" => "3",
291  "mediumint" => "3",
292  "mediumtext" => "3",
293  "middleint" => "3",
294  "numeric" => "3",
295  "real" => "3",
296  "smallint" => "3",
297  "text" => "3",
298  "time" => "3",
299  "timestamp" => "3",
300  "tinyint" => "3",
301  "tinytext" => "3",
302  "tinyblob" => "3",
303  "varbinary" => "3",
304  "varchar" => "3",
305  "varying" => "3");
306 
307  // Special extensions
308 
309  // Each category can specify a PHP function that returns an altered
310  // version of the keyword.
311 
312 
313 
314  $this->linkscripts = array(
315  "1" => "donothing",
316  "2" => "donothing",
317  "3" => "donothing");
318  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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