elemento)) { $round = $this->db->go("SELECT b_gare_round.codice, b_gare_round.codice_gara FROM b_gare_round WHERE b_gare_round.codice = :codice",[":codice"=>$this->elemento]); if ($round->rowCount() > 0) { $round = $round->fetch(PDO::FETCH_ASSOC); if (!empty($_SESSION["utente"]->oe)) { $oe = true; $gara = publicGara::init($round["codice_gara"],$round["codice"]); } else { $oe = false; $gara = gara::init($round["codice_gara"],$round["codice"]); } if (!empty($gara)) { if (!$oe) { $return = true; $this->lock = $gara->checkLock("dgue"); } $this->id_appalto = $gara->getIdAppalto(); $this->lotti = []; foreach($gara->getLotti() AS $lotto) { $this->lotti[] = ["numero"=>$lotto["numero"],"cig" => $lotto["cig"],"oggetto"=>$lotto["oggetto"]]; } $this->version = $gara->normaRiferimento; $this->abilitaSwitchVersion = false; $this->oggetto = $gara->info["oggetto"]; $this->descrizione = $gara->info["oggetto"] . " - " . $gara->round["infoFase"]["titolo"]; $ente = Ente::getInfoFromID($gara->info["codice_ente"]); $this->ente = ! empty($ente) ? $ente[0]["denominazione"] : null; $this->codice_fiscale_ente = ! empty($ente) ? $ente[0]["cf"] : null; $this->inputsBreadcrumb = ["codice"=>$gara->info["codice"],"codice_round"=>$gara->round["codice"]]; if ($returnObject) { $return = $gara; } } } } ?>