class Ajax

Properties

$ajax_call
$ajax_version

Methods

__construct()

No description

finish(string $json_response = 'NONE', bool $error_code = false, $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(string $json_response = 'NONE', bool $error_code = false, $send_flash_messages = false)

No description

Parameters

string $json_response
bool $error_code
$send_flash_messages

at line 55
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)