BaseController
class BaseController extends Controller
Base controller
Properties
static boolean | $batchMode | Controller is in batch mode | |
static array | $batchedResponses | Stack for batched responses |
Methods
int
getStatusCode()
Return status code
array
getHeaders()
Return current headers
string
getPayload()
Return payload
setStatusCode(int $code)
Set status code
setHeaders(string $key, string $value)
Set header value
setPayload(string $payload)
Set payload
static
startBatchMode()
Static method to enable batch mode return handling
static
endBatchMode()
Static method to disable batch mode return handling
Details
at line line 60
int
getStatusCode()
Return status code
at line line 69
array
getHeaders()
Return current headers
at line line 78
string
getPayload()
Return payload
at line line 87
setStatusCode(int $code)
Set status code
at line line 97
setHeaders(string $key, string $value)
Set header value
at line line 106
setPayload(string $payload)
Set payload
at line line 294
static
startBatchMode()
Static method to enable batch mode return handling
at line line 302
static
endBatchMode()
Static method to disable batch mode return handling