8 && $ora < 19 && empty(getQueueLog($_SESSION["ente"]->codice, "anac_fvoe-H{$ora}")))) { writeQueueLog($_SESSION["ente"]->codice, "anac_fvoe-H{$ora}"); $fove_records = $pdo->go("SELECT * FROM b_fvoe WHERE stato <= 10"); $count = $fove_records->rowCount(); if($count > 0) { alertManager::printCliInfo("Verifica accesso a {$count} schede."); while($fvoe = $fove_records->fetch(PDO::FETCH_ASSOC)) { try { $npa = NuovaPiattaformaAppalti::init($fvoe["codice_npa"]); if (!$npa) { alertManager::printCliAlert("Impossibile inizializzare NuovaPiattaformaAppalti per la scheda {$scheda['codice']}"); continue; } $participants = $npa->getPartecipanti(false, $fvoe["codice_lotto_npa"]); if(! empty($participants)) { $participants = array_column($participants, null, 'codice'); $participant = $participants[$fvoe]["codice_partecipante"]; $npa->requestFVOEAccess($participant); $npa = null; } } catch (\Throwable $t) { $alert = <<getMessage()} {$t->getTraceAsString()} ERR; alertManager::printCliAlert($alert); ec_create_ticket("Eccezione in NPA::ACCESSOFVOE", $alert, $ente->codice ?? 0); } $npa = null; } } else { alertManager::printCliInfo("Nessuna fascicolo da controllare"); } } else { alertManager::printCliInfo("Salto la verifica pubblicazione ANAC per l'ora {$ora}"); } }