1 | <?php |
||
13 | class SparkPlug |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $globals = []; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $path = ''; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $server = []; |
||
29 | |||
30 | /** |
||
31 | * @param array $globals |
||
32 | * @param array $server |
||
33 | * @param string $path |
||
34 | */ |
||
35 | 12 | public function __construct(array &$globals, array $server, $path = '') |
|
41 | |||
42 | /** |
||
43 | * Returns the instance of CodeIgniter. |
||
44 | * |
||
45 | * @return \CI_Controller |
||
46 | */ |
||
47 | 12 | public function getCodeIgniter() |
|
64 | |||
65 | /** |
||
66 | * Loads the Common and the Base Controller class. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | 12 | protected function loadCommonClasses() |
|
76 | |||
77 | /** |
||
78 | * Loads the framework constants. |
||
79 | * |
||
80 | * @return void |
||
81 | */ |
||
82 | 12 | protected function defineConstants() |
|
90 | |||
91 | /** |
||
92 | * Loads the CodeIgniter's core classes. |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | 12 | protected function loadCoreClasses() |
|
103 | |||
104 | /** |
||
105 | * Sets the base path. |
||
106 | * |
||
107 | * @return void |
||
108 | */ |
||
109 | 3 | protected function setBasePath() |
|
126 | |||
127 | /** |
||
128 | * Sets up important charset-related stuff. |
||
129 | * |
||
130 | * @return void |
||
131 | */ |
||
132 | 12 | protected function setCharacterSets() |
|
148 | |||
149 | /** |
||
150 | * Sets up the current environment. |
||
151 | * |
||
152 | * @return void |
||
153 | */ |
||
154 | 12 | protected function prepareEnvironment() |
|
164 | |||
165 | /** |
||
166 | * Sets global configurations. |
||
167 | * |
||
168 | * @return void |
||
169 | */ |
||
170 | 12 | protected function setConfigurations() |
|
176 | |||
177 | /** |
||
178 | * Sets up ICONV. |
||
179 | * |
||
180 | * @return void |
||
181 | */ |
||
182 | 12 | protected function setIconv() |
|
193 | |||
194 | /** |
||
195 | * Sets up the APPPATH, VENDOR, and BASEPATH constants. |
||
196 | * |
||
197 | * @return void |
||
198 | */ |
||
199 | 12 | protected function setPathConstants() |
|
213 | } |
||
214 |