\midcom_response_json

Wrapper for HTTP responses

Summary

Methods
Properties
Constants
__get()
__set()
set_data()
__construct()
send()
$encoding
$code
$_data
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$encoding

$encoding : string

Character encoding to use

Type

string — Character encoding

$code

$code : integer

Response code to use

Type

integer — HTTP response code

$_data

$_data : array

The data to be transmitted

Type

array

Methods

__get()

__get(  $name) 

Parameters

$name

__set()

__set(  $name,   $value) 

Parameters

$name
$value

set_data()

set_data(  $data) 

Parameters

$data

__construct()

__construct(array  $data = array()) 

Parameters

array $data

send()

send() 

Sends the response to the client and shuts down the environment