Class for displaying output and setting http headers

package miniMVC
subpackage System

 Methods

Initialize the output class

__construct() : void

PHP magic method called when ending the script Used for outputing HTML

__destruct() : void

Adds text to the output buffer

append_output(string $string) 

Parameters

$string

string

Sends headers and then removes them

flush_headers() 

Sets a header for later output

set_header(string $key, string $val) 

Parameters

$key

string

$val

string

Sets the output buffer

set_output(string $string) 

Parameters

$string

string

 Properties

 

Content for outputting

$buffer : string

 

HTTP headers to send

$headers : array