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|null $buffer = null)

Set the buffer property.

setCli(string|null $value = null)

Set the cli property.

setDebug(array $log)

Set the debug property.

setError(string|null $value = null)

Set the error property.

setHtml(string|null $html = null)

Set the html property.

setRedirect(string|null $url = null)

Set the redirect property.

setReload(bool $value)

Set the reload property.

setStatus(string|null $value = null)

Set the status property.

setSuccess(string|null $value = null)

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|null $buffer = null)

Set the buffer property.

Parameters

string|null $buffer

See also

$buffer

setCli(string|null $value = null)

Set the cli property.

Parameters

string|null $value

See also

$cli

setDebug(array $log)

Set the debug property.

Parameters

array $log

See also

$debug

setError(string|null $value = null)

Set the error property.

Parameters

string|null $value

See also

$error

setHtml(string|null $html = null)

Set the html property.

Parameters

string|null $html

See also

$html

setRedirect(string|null $url = null)

Set the redirect property.

Parameters

string|null $url

See also

$redirect

setReload(bool $value)

Set the reload property.

Parameters

bool $value

See also

$reload

setStatus(string|null $value = null)

Set the status property.

Parameters

string|null $value

See also

$status

setSuccess(string|null $value = null)

Set the success property.

Parameters

string|null $value

See also

$success

setTrigger(string $value)

Set the trigger property.

Parameters

string $value

See also

$trigger