function send() { if (DEBUG) { sleep(1); } // Simula un ritardo nell'invio $response = array_merge(array("success" => $this->success), $this->values); Restful::PrintResponse($response, $this->format); }
public static function DieResponse($response, $format = "json") { Restful::PrintResponse($response, $format); die; }