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

Tags

Throws

\Hazaar\Exception\FileNotFound

Parameters

$filemixed

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

$backend

No description

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

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($fmtime)

Parameters

$fmtime

No description

setUnmodified()
setUnmodified($ifModifiedSince)

Parameters

$ifModifiedSince

No description