elemento)) { $round = $this->db->go("SELECT b_concorsi_round.* FROM b_concorsi_round WHERE b_concorsi_round.codice = :codice",[":codice"=>$this->elemento]); if ($round->rowCount() > 0) { $round = $round->fetch(PDO::FETCH_ASSOC); if (!empty($_SESSION["utente"]->oe)) { $oe = true; $concorso = publicConcorso::init($round["codice_concorso"],$round["codice"]); } else { $oe = false; $concorso = concorso::init($round["codice_concorso"],$round["codice"]); } if (!empty($concorso)) { if (!$oe) { $return = true; $this->lock = $concorso->checkLock("dgue"); } $time = time(); if (!empty($concorso->getRounds()[0]["pubblicazione"])) { $time = strtotime($concorso->getRounds()[0]["pubblicazione"]); } if (empty($this->selectedCriteria())) { $this->version = DGUE::findVersion($time); } $this->oggetto = $concorso->info["oggetto"] . " - " . __("Fase") . $concorso->round["oggetto"]; $this->descrizione = $concorso->info["oggetto"] . " - " . $concorso->round["descrizione"]; $ente = Ente::getInfoFromID($concorso->info["codice_ente"]); $this->ente = ! empty($ente) ? $ente[0]["denominazione"] : null; $this->codice_fiscale_ente = ! empty($ente) ? $ente[0]["cf"] : null; $this->id_appalto = $concorso->getIdAppalto(); $this->inputsBreadcrumb = ["codice"=>$concorso->info["codice"],"codice_round"=>$concorso->round["codice"]]; if ($returnObject) { $return = $concorso; } } } } ?>