Subversion Repositories Applications.referentiel

Rev

Rev 288 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 288 Rev 289
Line 50... Line 50...
50
			$referentiel = array();
50
			$referentiel = array();
51
			foreach ($infos as $info) {
51
			foreach ($infos as $info) {
52
				$referentiel['nom'] = $info;
52
				$referentiel['nom'] = $info;
53
				$referentiel['titre'] = $this->referentielDao->getNom($info);
53
				$referentiel['titre'] = $this->referentielDao->getNom($info);
54
				$referentiel['url'] = $this->obtenirUrlMenuConsultation($info);
54
				$referentiel['url'] = $this->obtenirUrlMenuConsultation($info);
55
				$referentiel['date'] = $this->formaterDate($this->referentielDao->getDateMiseAJour($info));
55
				$referentiel['date'] = $this->referentielDao->getDateMiseAJour($info);
Line 56... Line 56...
56
				
56
				
57
				$donnees['referentiels'][] = $referentiel;
57
				$donnees['referentiels'][] = $referentiel;
58
			}
58
			}
59
		} else {
59
		} else {
Line 64... Line 64...
64
		$this->traiterEsperluette($donnees);
64
		$this->traiterEsperluette($donnees);
65
		$this->setSortie(self::RENDU_CORPS, $this->getVue('accueil', $donnees), false);
65
		$this->setSortie(self::RENDU_CORPS, $this->getVue('accueil', $donnees), false);
66
		$this->construireFilAriane();
66
		$this->construireFilAriane();
67
	}
67
	}
Line 68... Line -...
68
	
-
 
69
	public function formaterDate($date) {
-
 
70
		$date = new DateTime($date);
-
 
71
		return $date->format('d/m/Y');
68
	
72
	}
69
	
73
}
70
}
74
?>
71
?>