Issues (2756)

includes/Config/InitDefaults.php (19 issues)

Labels
Severity
1
<?php
2
3
/**
4
 * YOURLS defaut actions upon instantiating
5
 *
6
 * This class defines all the default actions to be performed when instantiating YOURLS. The idea
7
 * is that this is easily tuneable depending on the scenario, namely when running YOURLS for
8
 * unit tests.
9
 *
10
 * @see \YOURLS\Config\Init
11
 */
12
13
namespace YOURLS\Config;
14
15
class InitDefaults {
16
17
    /**
18
     * Whether to include core function files
19
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
20
     */
21
    public $include_core_funcs = true;
22
23
    /**
24
     * Whether to include auth function files
25
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
26
     */
27
    public $include_install_upgrade_funcs = false;  // by default do not load
28
29
    /**
30
     * Whether to set default time zone
31
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
32
     */
33
    public $default_timezone = true;
34
35
    /**
36
     * Whether to load default text domain
37
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
38
     */
39
    public $load_default_textdomain = true;
40
41
    /**
42
     * Whether to check for maintenance mode and maybe die here
43
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
44
     */
45
    public $check_maintenance_mode = true;
46
47
    /**
48
     * Whether to fix $_REQUEST for IIS
49
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
50
     */
51
    public $fix_request_uri = true;
52
53
    /**
54
     * Whether to redirect to SSL if needed
55
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
56
     */
57
    public $redirect_ssl = true;
58
59
    /**
60
     * Whether to include DB engine
61
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
62
     */
63
    public $include_db = true;
64
65
    /**
66
     * Whether to include cache layer
67
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
68
     */
69
    public $include_cache = true;
70
71
    /**
72
     * Whether to end instantiating early if YOURLS_FAST_INIT is defined and true
73
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
74
     */
75
    public $return_if_fast_init = true;
76
77
    /**
78
     * Whether to read all options at once during starting
79
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
80
     */
81
    public $get_all_options = true;
82
83
    /**
84
     * Whether to register shutdown action
85
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
86
     */
87
    public $register_shutdown = true;
88
89
    /**
90
     * Whether to trigger action 'init' after core is loaded
91
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
92
     */
93
    public $core_loaded = true;
94
95
    /**
96
     * Whether to redirect to install procedure if needed
97
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
98
     */
99
    public $redirect_to_install = true;
100
101
    /**
102
     * Whether to redirect to upgrade procedure if needed
103
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
104
     */
105
    public $check_if_upgrade_needed = true;
106
107
    /**
108
     * Whether to load all plugins
109
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
110
     */
111
    public $load_plugins = true;
112
113
    /**
114
     * Whether to trigger the "plugins_loaded" action
115
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
116
     */
117
    public $plugins_loaded_action = true;
118
119
    /**
120
     * Whether to check if a new version if available
121
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
122
     */
123
    public $check_new_version = true;
124
125
    /**
126
     * Whether to trigger 'admin_init' if applicable
127
     * @var bool
0 ignored issues
show
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
128
     */
129
    public $init_admin = true;
130
131
}
132