private static function getInfoCompraById() { $details = new DetalleCompra(); $result = $details->allDetails(self::post("id")); print json_encode($result); }