\Hazaar\Controller\Response
Image
Summary
Methods Properties Constants
No constants
Properties
$quality
$quality
Inherited
$file
$file
Inherited
$fmtime
$fmtime
Inherited
$controller
$controller
Inherited
$headers
$headers
Inherited
$headers_set
$headers_set
Inherited
$status_code
$status_code
Inherited
$tidy
$tidy
Methods
__construct()
__construct($filename = null, $quality = null, $backend = null)

Parameters

$filename

No description

$quality

No description

$backend

No description

encodeDataStream()
encodeDataStream()
expand()
expand($width = null, $height = null, $align = 'topleft', $offsettop = 0, $offsetleft = 0)

Parameters

$width

No description

$height

No description

$align

No description

$offsettop

No description

$offsetleft

No description

filter()
filter($filters)

Parameters

$filters

No description

height()
height()
load()
load($file, $backend = null)

Parameters

$file

No description

$backend

No description

quality()
quality($quality = null)

Parameters

$quality

No description

resize()
resize($width = null, $height = null, $crop = false, $align = null, $keep_aspect = true, $reduce_only = true, $ratio = null, $offsetTop = 0, $offsetLeft = 0)

Parameters

$width

No description

$height

No description

$crop

No description

$align

No description

$keep_aspect

No description

$reduce_only

No description

$ratio

No description

$offsetTop

No description

$offsetLeft

No description

setContent()
setContent($data)

Parameters

$data

No description

setFormat()
setFormat($format)

Parameters

$format

No description

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

Parameters

$toggle

No description

$filename

No description

Inherited
setLastModified()
setLastModified($fmtime)

Parameters

$fmtime

No description

Inherited
setUnmodified()
setUnmodified($ifModifiedSince)

Parameters

$ifModifiedSince

No description

Inherited
modified()
modified()
Inherited
removeHeader()
removeHeader($key)

Parameters

$key

No description

Inherited
setCompression()
setCompression($toggle)

Parameters

$toggle

No description

Inherited
setContent()
setContent($content)

Parameters

$content

No description

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

Parameters

$type

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