class Response (View source)

The Response class.

Properties

private $autocomplete The output buffer for autocomplete JSON data.
private $buffer The output buffer used by Composer commands.
private $cli The output buffer used by CLI commands.
private $debug The debug output buffer.
private $error The output buffer used for error notifications.
private $html The main rendered output of a view or component.
private $redirect The output buffer used to store a redirect URL.
private $reload The output buffer used to store the reload state.
private $status The status output buffer.
private $success The output buffer used for success notifications.
private $trigger The output buffer used to store the event name that is triggered after sending a response.

Methods

__construct()

The output constructor.

string
getBuffer()

Get the buffer property.

string
getCli()

Get the cli property.

string
getError()

Get the error property.

string
json()

Return a json encoded and filterd array of properties.

setAutocomplete(array $values)

Set the autocomplete property.

setBuffer(string $buffer = '')

Set the buffer property.

setCli(string $value = '')

Set the cli property.

setDebug(array $log)

Set the debug property.

setError(string $value = '')

Set the error property.

setHtml(string $html = '')

Set the html property.

setRedirect(string $url = '')

Set the redirect property.

setReload(bool $value)

Set the reload property.

setStatus(string $value = '')

Set the status property.

setSuccess(string $value = '')

Set the success property.

setTrigger(string $value)

Set the trigger property.

Details

__construct()

The output constructor.

string getBuffer()

Get the buffer property.

Return Value

string $buffer

See also

$buffer

string getCli()

Get the cli property.

Return Value

string $cli

See also

$cli

string getError()

Get the error property.

Return Value

string $error

See also

$error

string json()

Return a json encoded and filterd array of properties.

Return Value

string the json encoded array of response properties

setAutocomplete(array $values)

Set the autocomplete property.

Parameters

array $values

See also

$autocomplete

setBuffer(string $buffer = '')

Set the buffer property.

Parameters

string $buffer

See also

$buffer

setCli(string $value = '')

Set the cli property.

Parameters

string $value

See also

$cli

setDebug(array $log)

Set the debug property.

Parameters

array $log

See also

$debug

setError(string $value = '')

Set the error property.

Parameters

string $value

See also

$error

setHtml(string $html = '')

Set the html property.

Parameters

string $html

See also

$html

setRedirect(string $url = '')

Set the redirect property.

Parameters

string $url

See also

$redirect

setReload(bool $value)

Set the reload property.

Parameters

bool $value

See also

$reload

setStatus(string $value = '')

Set the status property.

Parameters

string $value

See also

$status

setSuccess(string $value = '')

Set the success property.

Parameters

string $value

See also

$success

setTrigger(string $value)

Set the trigger property.

Parameters

string $value

See also

$trigger