1 <?php namespace Modulework\Modules\Http\Utilities;
2 3 4 5 6
7
8 9 10
11 class implements HeaderWrapperInterface
12 {
13 14 15
16 public static function headers_sent(&$file = null, &$line = null)
17 {
18 if ($file === null && $line === null) return headers_sent();
19
20 return headers_sent($file, $line);
21 }
22
23 24 25
26 public static function header($string, $replace = true, $http_response_code = null)
27 {
28 if ($http_response_code === null) {
29 return header($string, $replace);
30 } else {
31 return header($string, $replace, $http_response_code);
32 }
33 }
34
35 36 37
38 public static function setcookie($name, $value = null, $expire = 0, $path = null, $domain = null, $secure = false, $httponly = false)
39 {
40 return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
41 }
42 }