Constants.php 1.55 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
23
24
25

// Store Identifier
const STORE_FORM = "F";  // form, still not saved in database
const STORE_SIP = "S"; // SIP
Carsten  Rose's avatar
Carsten Rose committed
26
const STORE_RECORD = "R"; // selected record from primary table.
27
28
const STORE_DATABASE_DEFINITION = "D"; // Default definition in database
const STORE_CLIENT = "C"; // Client: POST variable, if not found: GET variable
Carsten  Rose's avatar
Carsten Rose committed
29
const STORE_T3_BODYTEXT = "B"; // Typo3 > Page content record > bodytext
30
31
32
33
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

const USE_STORE_DEFAULT = "FSRD";

34

Carsten  Rose's avatar
Carsten Rose committed
35
// URL variables
36
37
38
39
40
41
42
43
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
44
45
46
47
48

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