ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_ldif.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_ldif extends HFile
8  {
9  public function HFile_ldif()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // LDIF for Netscape Directory Server
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", "brown");
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  "aci" => "1",
50  "audio" => "1",
51  "binary" => "1",
52  "businesscategory" => "1",
53  "carlicense" => "1",
54  "changetype" => "1",
55  "cn" => "1",
56  "commonname" => "1",
57  "departmentNumber" => "1",
58  "description" => "1",
59  "dn" => "1",
60  "employeenumber" => "1",
61  "employeeType" => "1",
62  "facsimileTelephoneNumber" => "1",
63  "givenname" => "1",
64  "homePhone" => "1",
65  "homePostalAddress" => "1",
66  "initials" => "1",
67  "internationalIsdnNumber" => "1",
68  "jpegPhoto" => "1",
69  "l" => "1",
70  "labeledURI" => "1",
71  "locality" => "1",
72  "mail" => "1",
73  "mailalternateaddress" => "1",
74  "maildeliveryoption" => "1",
75  "mailhost" => "1",
76  "manager" => "1",
77  "mobile" => "1",
78  "objectclass" => "1",
79  "pager" => "1",
80  "photo" => "1",
81  "postOfficeBox" => "1",
82  "preferredDeliveryMethod" => "1",
83  "preferredLanguage" => "1",
84  "physicaldeliveryofficename" => "1",
85  "postaladdress" => "1",
86  "postalcode" => "1",
87  "registeredAddress" => "1",
88  "roleOccupant" => "1",
89  "roomnumber" => "1",
90  "secretary" => "1",
91  "seeAlso" => "1",
92  "sn" => "1",
93  "st" => "1",
94  "street" => "1",
95  "surname" => "1",
96  "telephonenumber" => "1",
97  "title" => "1",
98  "uid" => "1",
99  "userpassword" => "1",
100  "userCertificate" => "1",
101  "userSMIMECertificate" => "1",
102  "x500UniqueIdentifier" => "1",
103  "add" => "2",
104  "c" => "2",
105  "dc" => "2",
106  "delete" => "2",
107  "modify" => "2",
108  "o" => "2",
109  "ou" => "2",
110  "crypt" => "4",
111  "inetOrgPerson" => "4",
112  "mailRecipient" => "4",
113  "nsLicenseUser" => "4",
114  "organizationalPerson" => "4",
115  "organizationalRole" => "4",
116  "residentialPerson" => "4",
117  "person" => "4",
118  "SHA" => "4",
119  "top" => "4");
120 
121  // Special extensions
122 
123  // Each category can specify a PHP function that returns an altered
124  // version of the keyword.
125 
126 
127 
128  $this->linkscripts = array(
129  "1" => "donothing",
130  "2" => "donothing",
131  "4" => "donothing");
132  }
133 
134 
135  public function donothing($keywordin)
136  {
137  return $keywordin;
138  }
139  }
$BEAUT_PATH
Definition: HFile_ldif.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
donothing($keywordin)
Definition: HFile_ldif.php:135