Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 151 | Rev 265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 236
Line 43... Line 43...
43
	protected $champs_table = array();
43
	protected $champs_table = array();
44
	private static $tri_multi_dimension = array();
44
	private static $tri_multi_dimension = array();
45
	private static $tri_type = '';
45
	private static $tri_type = '';
Line 46... Line 46...
46
 
46
 
47
	public function consulter($ressources, $parametres) {
47
	public function consulter($ressources, $parametres) {
48
			$this->ressources = $ressources;
48
		$this->ressources = $ressources;
49
			$this->parametres = $parametres;
49
		$this->parametres = $parametres;
Line 50... Line 50...
50
			$this->chargerNomDuService();
50
		$this->chargerNomDuService();
51
 
51
 
Line 52... Line 52...
52
			$this->traiterParametres();
52
		$this->traiterParametres();
53
			$this->traiterVersionProjet();
53
		$this->traiterVersionProjet();
54
 
54
 
55
			$resultats = '';
55
		$resultats = '';
56
			foreach ($this->table_version as $version) {
56
		foreach ($this->table_version as $version) {
57
				$this->table = $version; //on stocke le nom de la table correspondant à la version du projet en cours
57
			$this->table = $version; //on stocke le nom de la table correspondant à la version du projet en cours
58
				$this->recupererNomChamp($this->table); //on récupère les noms des champs disponibles (Ds Commun.php)
58
			$this->recupererNomChamp($this->table); //on récupère les noms des champs disponibles (Ds Commun.php)
59
				$this->traiterRessources(); //dans CommunNomsTaxons.php
59
			$this->traiterRessources(); //dans CommunNomsTaxons.php
60
				$requete = $this->assemblerLaRequete();
60
			$requete = $this->assemblerLaRequete();
61
				$resultat = $this->getBdd()->recupererTous($requete);
61
			$resultat = $this->getBdd()->recupererTous($requete);
62
				$versionResultat = $this->traiterResultat($resultat, $version, $requete);
62
			$versionResultat = $this->traiterResultat($resultat, $version, $requete);
63
				if (count($this->table_version) > 1) {
63
			if (count($this->table_version) > 1) {
64
					$resultats[$version] = $versionResultat;
-
 
65
				} else {
64
				$resultats[$version] = $versionResultat;
-
 
65
			} else {
Line 66... Line 66...
66
					$resultats = $versionResultat;
66
				$resultats = $versionResultat;
67
				}
67
			}
Line 68... Line 68...
68
			}
68
		}