Rev 1169 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
247 | daniel-mar | 1 | <?php |
2 | |||
3 | /* |
||
4 | * OIDplus 2.0 |
||
511 | daniel-mar | 5 | * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
247 | daniel-mar | 6 | * |
7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
||
8 | * you may not use this file except in compliance with the License. |
||
9 | * You may obtain a copy of the License at |
||
10 | * |
||
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
||
12 | * |
||
13 | * Unless required by applicable law or agreed to in writing, software |
||
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
||
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
16 | * See the License for the specific language governing permissions and |
||
17 | * limitations under the License. |
||
18 | */ |
||
374 | daniel-mar | 19 | |
1050 | daniel-mar | 20 | use ViaThinkSoft\OIDplus\OIDplus; |
511 | daniel-mar | 21 | |
294 | daniel-mar | 22 | // Note: You can override these values in your userdata/baseconfig/config.inc.php file |
247 | daniel-mar | 23 | // Do NOT edit this file, because your changes would get overwritten |
24 | // by program updates! |
||
25 | |||
26 | // ----------------------------------------------------------------------------- |
||
27 | |||
28 | /** |
||
261 | daniel-mar | 29 | * LIMITS_MAX_ID_LENGTH |
374 | daniel-mar | 30 | * |
247 | daniel-mar | 31 | * Example: |
32 | * OID 2.999.123.456 has a length of 13 characters in dot notation. |
||
1169 | daniel-mar | 33 | * OIDplus adds the prefix "oid:" in front of every OID, |
34 | * so the overal length of the ID would be 17. |
||
374 | daniel-mar | 35 | * |
247 | daniel-mar | 36 | * Default value: |
37 | * 255 digits (OIDs 251 digits) |
||
374 | daniel-mar | 38 | * |
247 | daniel-mar | 39 | * Which value is realistic? |
40 | * In the oid-info.com database (April 2020), the OID with the greatest size is 65 characters (dot notation) |
||
374 | daniel-mar | 41 | * |
1207 | daniel-mar | 42 | * Maximum value: |
247 | daniel-mar | 43 | * OIDs may only have a size of max 251 characters in dot notation. |
44 | * Reason: The field defintion of *_objects.oid is defined as varchar(255), |
||
45 | * and the OID will have the prefix 'oid:' (4 bytes). |
||
46 | * You can increase the limit by changing the field definition in the database. |
||
47 | **/ |
||
261 | daniel-mar | 48 | OIDplus::baseConfig()->setValue('LIMITS_MAX_ID_LENGTH', 255); |
247 | daniel-mar | 49 | |
50 | // ----------------------------------------------------------------------------- |
||
51 | |||
52 | /** |
||
261 | daniel-mar | 53 | * LIMITS_MAX_OID_ASN1_ID_LEN |
247 | daniel-mar | 54 | * |
55 | * Default value: |
||
56 | * 255 characters |
||
57 | * |
||
1207 | daniel-mar | 58 | * Maximum value: |
247 | daniel-mar | 59 | * 255, as defined in the database fields *_asn1id.name |
60 | * You can change the database field definition if you really need more. |
||
61 | **/ |
||
261 | daniel-mar | 62 | OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ASN1_ID_LEN', 255); |
247 | daniel-mar | 63 | |
64 | // ----------------------------------------------------------------------------- |
||
65 | |||
66 | /** |
||
261 | daniel-mar | 67 | * LIMITS_MAX_OID_UNICODE_LABEL_LEN |
247 | daniel-mar | 68 | * |
69 | * Default value: |
||
374 | daniel-mar | 70 | * 255 bytes (UTF-8 encoded!) |
247 | daniel-mar | 71 | * |
1207 | daniel-mar | 72 | * Maximum value: |
247 | daniel-mar | 73 | * 255, as defined in the database fields *_iri.name |
74 | * You can change the database field definition if you really need more. |
||
75 | **/ |
||
261 | daniel-mar | 76 | OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_UNICODE_LABEL_LEN', 255); |
247 | daniel-mar | 77 | |
78 | // ----------------------------------------------------------------------------- |