public function executeInteressiDettaglio()
 {
     $carica_id = $this->getRequestParameter('carica_id');
     $tags_ids = explode(",", trim(strip_tags($this->getRequestParameter('tags_ids', '')), " ,"));
     // la data è passata come parametro o viene estratta l'ultima nella cache (per dati di tipo 'A', singoli atti)
     if ($this->hasRequestParameter('data')) {
         $data = $this->getRequestParameter('data');
     } else {
         $data = OppActHistoryCachePeer::fetchLastData();
     }
     $dettaglio = OppCaricaPeer::getDettaglioInteresseArgomenti($carica_id, $tags_ids, $data);
     $this->firme_p = $dettaglio['firme_p'];
     $this->totale_firme_p = $dettaglio['totale_firme_p'];
     $this->firme_r = $dettaglio['firme_r'];
     $this->totale_firme_r = $dettaglio['totale_firme_r'];
     $this->firme_c = $dettaglio['firme_c'];
     $this->totale_firme_c = $dettaglio['totale_firme_c'];
     $this->interventi = $dettaglio['interventi'];
     $this->totale_interventi = $dettaglio['totale_interventi'];
 }
 public function executeAttivitaPoliticoArgomento()
 {
     $dettaglio = OppCaricaPeer::getDettaglioInteresseArgomenti($this->carica_id, array($this->argomento_id), $this->data, false);
     $this->politico['firme_p'] = $dettaglio['firme_p'];
     $this->politico['firme_r'] = $dettaglio['firme_r'];
     $this->n_firme_pr = count($this->politico['firme_p']) + count($this->poitico['firme_r']);
 }