summaryrefslogtreecommitdiff
path: root/vendor/aferrandini/phpqrcode/lib/PHPQRCode/Constants.php
blob: 49fc6434f36efd8b517a9f3e233715b7019a6cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
 * Constants.php
 *
 * Created by arielferrandini
 */

namespace PHPQRCode;

class Constants
{
    const QR_CACHEABLE = false;
    const QR_CACHE_DIR = ''; //dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR;
    const QR_LOG_DIR   = '/tmp/qrcode_log/';

    const QR_FIND_BEST_MASK = true;
    const QR_FIND_FROM_RANDOM = false;
    const QR_DEFAULT_MASK = 2;

    const QR_PNG_MAXIMUM_SIZE =  1024;

    // Encoding modes
	const QR_MODE_NUL = -1;
	const QR_MODE_NUM = 0;
	const QR_MODE_AN = 1;
	const QR_MODE_8 = 2;
	const QR_MODE_KANJI = 3;
	const QR_MODE_STRUCTURE = 4;

	// Levels of error correction.
	const QR_ECLEVEL_L = 0;
	const QR_ECLEVEL_M = 1;
	const QR_ECLEVEL_Q = 2;
	const QR_ECLEVEL_H = 3;

	// Supported output formats
	const QR_FORMAT_TEXT = 0;
	const QR_FORMAT_PNG =  1;

    const QR_IMAGE =  true;

    const STRUCTURE_HEADER_BITS =  20;
    const MAX_STRUCTURED_SYMBOLS = 16;

    // Maks
    const N1 = 3;
	const N2 = 3;
	const N3 = 40;
	const N4 = 10;

    const QRSPEC_VERSION_MAX = 40;
    const QRSPEC_WIDTH_MAX =   177;

    const QRCAP_WIDTH =        0;
    const QRCAP_WORDS =        1;
    const QRCAP_REMINDER =     2;
    const QRCAP_EC =           3;
}