\Hazaar\Controller
Response
Abstract
Summary
Methods Properties Constants
No constants
Properties
$content
$content
$content_type
$content_type
$controller
$controller
$headers
$headers
$headers_set
$headers_set
$status_code
$status_code
$tidy
$tidy
Methods
__construct()
__construct($type = '"text/html"', $status = 501)

Parameters

$type

No description

$status

No description

__writeOutput()
__writeOutput() : null
Write the response to the output buffer

Returns

null
addContent()
addContent($content)

Parameters

$content

No description

clearHeaders()
clearHeaders()
enableTidy()
enableTidy($state = true)

Parameters

$state

No description

getContent()
getContent()
getContentLength()
getContentLength()
getContentType()
getContentType()
Quick method to get the content type
getHeader()
getHeader($key)

Parameters

$key

No description

getStatus()
getStatus()
getStatusCode()
getStatusCode()
hasContent()
hasContent()
ignoreHeaders()
ignoreHeaders()
removeHeader()
removeHeader($key)

Parameters

$key

No description

setContent()
setContent($content)

Parameters

$content

No description

setContentType()
setContentType($type = null)
Quick method to set the content type

Parameters

$type

No description

setController()
setController($controller)

Parameters

$controller

No description

setHeader()
setHeader($key, $value, $overwrite = true)
Add Header Directive

Parameters

$key

No description

$value

No description

$overwrite

No description

setHeaders()
setHeaders($content_length = null)

Parameters

$content_length

No description

setStatus()
setStatus($status)

Parameters

$status

No description

setStatusCode()
setStatusCode($code)

Parameters

$code

No description