Пример #1
0
 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);
 }
Пример #2
0
 public static function DieResponse($response, $format = "json")
 {
     Restful::PrintResponse($response, $format);
     die;
 }