1 | <?php |
||
9 | class SystemFacade |
||
10 | { |
||
11 | /** |
||
12 | * Turns on output buffering. |
||
13 | * |
||
14 | * @return bool |
||
15 | */ |
||
16 | 4 | public function startOutputBuffering() |
|
20 | |||
21 | /** |
||
22 | * @param callable $handler |
||
23 | * @param int $types |
||
24 | * |
||
25 | * @return callable|null |
||
26 | */ |
||
27 | 8 | public function setErrorHandler(callable $handler, $types = 'use-php-defaults') |
|
35 | |||
36 | /** |
||
37 | * @param callable $handler |
||
38 | * |
||
39 | * @return callable|null |
||
40 | */ |
||
41 | 7 | public function setExceptionHandler(callable $handler) |
|
45 | |||
46 | /** |
||
47 | * @return void |
||
48 | */ |
||
49 | 1 | public function restoreExceptionHandler() |
|
53 | |||
54 | /** |
||
55 | * @return void |
||
56 | */ |
||
57 | 1 | public function restoreErrorHandler() |
|
61 | |||
62 | /** |
||
63 | * @param callable $function |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | 7 | public function registerShutdownFunction(callable $function) |
|
71 | |||
72 | /** |
||
73 | * @return string|false |
||
74 | */ |
||
75 | 4 | public function cleanOutputBuffer() |
|
79 | |||
80 | /** |
||
81 | * @return int |
||
82 | */ |
||
83 | 1 | public function getOutputBufferLevel() |
|
87 | |||
88 | /** |
||
89 | * @return bool |
||
90 | */ |
||
91 | 1 | public function endOutputBuffering() |
|
95 | |||
96 | /** |
||
97 | * @return void |
||
98 | */ |
||
99 | 1 | public function flushOutputBuffer() |
|
103 | |||
104 | /** |
||
105 | * @return int |
||
106 | */ |
||
107 | 4 | public function getErrorReportingLevel() |
|
111 | |||
112 | /** |
||
113 | * @return array|null |
||
114 | */ |
||
115 | 1 | public function getLastError() |
|
119 | |||
120 | /** |
||
121 | * @param int $httpCode |
||
122 | * |
||
123 | * @return int |
||
124 | */ |
||
125 | 1 | public function setHttpResponseCode($httpCode) |
|
136 | |||
137 | /** |
||
138 | * @param int $exitStatus |
||
139 | */ |
||
140 | public function stopExecution($exitStatus) |
||
144 | } |
||
145 |