-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
maartenvanvliet
committed
Mar 29, 2008
1 parent
cba659c
commit cd842fb
Showing
3 changed files
with
187 additions
and
215 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
class Response_Core{ | ||
|
||
private static $response=array(); | ||
|
||
public static function get_response_headers($key) | ||
{ | ||
return self::$response; | ||
} | ||
public static function clear_headers($header) | ||
{ | ||
self::$response=array(); | ||
} | ||
public static function add_header($header) | ||
{ | ||
self::$response[]=$header; | ||
return true; | ||
} | ||
public static function send_headers() | ||
{ | ||
foreach(self::$response as $response){ | ||
header($response); | ||
} | ||
} | ||
} |
Oops, something went wrong.