webCOMAND

ajax::clear()

Clear any previously set response data, so that it will not be sent with the response.

Prototype

void clear()

Example

$ajax = new \io_comand_web\ajax();
$ajax->result = 'ok';
$ajax->clear(); // result will NOT be included in response