Constants.php 1.67 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * Created by PhpStorm.
 * User: crose
 * Date: 1/1/16
 * Time: 8:35 PM
 */

// Sanatize Classifier
const SANATIZE_ALNUMX = "alnumx";
const SANATIZE_DIGIT = "digit";
const SANATIZE_ALL = "all";
const SANATIZE_DEFAULT = SANATIZE_DIGIT;

// QFQ Error Codes
const ERROR_UNKNOW_SANATIZE_CLASS = 1001;
const ERROR_STORE_NOT_IMPLEMENTED = 1002;
const ERROR_UNKNOWN_STORE = 1003;
Carsten  Rose's avatar
Carsten Rose committed
19
20
const ERROR_VALUES_ALREADY_CODPIED = 1004;
const ERROR_SETVARARRAY_NOT_IMPLEMENTED = 1005;
Carsten  Rose's avatar
Carsten Rose committed
21
const ERROR_MISSING_FORM_NAME = 1006;
22
const ERROR_IN_SQL_STATEMENT = 1007;
23

24
// store Identifier
25
26
const STORE_FORM = "F";  // form, still not saved in database
const STORE_SIP = "S"; // SIP
Carsten  Rose's avatar
Carsten Rose committed
27
const STORE_RECORD = "R"; // selected record from primary table.
28
const STORE_TABLE_DEFINITION = "T"; // table definition in database of primary table
29
const STORE_CLIENT = "C"; // Client: POST variable, if not found: GET variable
Carsten  Rose's avatar
Carsten Rose committed
30
const STORE_T3_BODYTEXT = "B"; // Typo3 > Page content record > bodytext
31
const STORE_ZERO = "0"; // value: 0, might helpfull if variable is empty but used in an SQL statement, which might produce a SQL error otherwise if substituted with an empty string
32
const STORE_SETUP = "P"; // various setup values like db connection credentials
33

34
const USE_STORE_DEFAULT = "FSRT";
35

36

Carsten  Rose's avatar
Carsten Rose committed
37
// URL variables
38
39
40
41
42
43
44
45
const CLIENT_FORM = 'form';
const CLIENT_SIP = 's';
const CLIENT_RECORD_ID = 'r ';
const CLIENT_KEY_SEM_ID = 'keySemId';
const CLIENT_KEY_SEM_ID_USER = 'keySemIdUser';
const CLIENT_PAGE_ID = 'pageId';
const CLIENT_PAGE_TYPE = 'pageType';
const CLIENT_PAGE_LANGUAGE = 'pageLanguage';
Carsten  Rose's avatar
Carsten Rose committed
46
47
48
49
50

// T3 Bodytext Keywords
const T3_BODYTEXT_FORM = CLIENT_FORM;
const T3_BODYTEXT_DEBUG_LOAD = 'debugLoad';
const T3_BODYTEXT_DEBUG_SAVE = 'debugSave';