\Hazaar\Controller\Response
File
Summary
Methods Properties Constants
No constants
Properties
$backend
$backend
$file
$file
Inherited
$controller
$controller
Inherited
$headers
$headers
Inherited
$headers_set
$headers_set
Methods
__construct()
__construct($file = null, $backend = null)
\Hazaar\File Constructor

Parameters

$filemixed

Either a string filename to use or a \Hazaar\File object.

$backend

No description

__writeOutput()
__writeOutput()
getContent()
getContent()
getContentLength()
getContentLength()
getContentType()
getContentType()
getFile()
getFile()
getLastModified()
getLastModified()
hasContent()
hasContent()
load()
load($file, $backend = null)

Parameters

$file

No description

$backend

No description

match()
match($pattern, $matches = null, $flags = 0, $offset = 0)

Parameters

$pattern

No description

$matches

No description

$flags

No description

$offset

No description

modified()
modified()
replace()
replace($pattern, $replacement, $limit = 1, $count = null)

Parameters

$pattern

No description

$replacement

No description

$limit

No description

$count

No description

setContent()
setContent($data, $content_type = null)

Parameters

$data

No description

$content_type

No description

setDownloadable()
setDownloadable($toggle = true, $filename = null)

Parameters

$toggle

No description

$filename

No description

setLastModified()
setLastModified($fmdate)

Parameters

$fmdate

No description

setUnmodified()
setUnmodified($ifModifiedSince)

Parameters

$ifModifiedSince

No description

Inherited
setController()
setController($controller)

Parameters

$controller

No description

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

Parameters

$key

No description

$value

No description

$overwrite

No description

Inherited
setHeaders()
setHeaders($content_length = null)

Parameters

$content_length

No description

Inherited
setStatus()
setStatus($status)

Parameters

$status

No description

Inherited
setStatusCode()
setStatusCode($code)

Parameters

$code

No description