class Ajax

Properties

$ajax_call
$ajax_version

Methods

__construct()

No description

finish(null $jsonResponseHeader = null, ?int $error_code = null, bool $send_flash_messages = false)

No description

bool
is_ajax()

No description

response(array|string|bool $json_response, int $error_code = null)

No description

Details

at line 16
__construct()

No description

at line 66
finish(null $jsonResponseHeader = null, ?int $error_code = null, bool $send_flash_messages = false)

No description

Parameters

null $jsonResponseHeader
?int $error_code
bool $send_flash_messages

at line 54
bool is_ajax()

No description

Return Value

bool

at line 28
response(array|string|bool $json_response, int $error_code = null)

No description

Parameters

array|string|bool $json_response

JSON response value (array with values or status value (json.status) as bool [sucess|failure])

int $error_code

Error code (json.error_code)