0) { $response['erroreDescrizione'] = "Hai giĆ  espresso il voto"; exit(json_encode($response)); } CustomerSatisfaction::checkVerificaDatiPreSalvataggio(); $customer = new CustomerSatisfaction(); $customer->CODICE_FISCALE = $LoggedAccount->CODICE_FISCALE; $customer->VALORE = $_POST['valore']; $controlliDomanda = $customer->checkDatiPreSave(); if ($controlliDomanda['checkDati']) { $response = $customer->Save(); if ($response['esito'] == 1) { $return['esito'] = 1; } } else { $response['erroreDescrizione'] = ("" . $controlliDomanda['txt_dati_mancanti'] . ""); } exit(json_encode($response)); } function getData() { global $con; $response = Utils::initDefaultResponse(-999, ''); $dati = CustomerSatisfaction::getData(); $response['esito']=1; $response['dati']=$dati; exit(json_encode($response)); }