Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 672 Rev 740
Line 274... Line 274...
274
		$requete = 'SELECT '.$this->retournerChamps().' '.
274
		$requete = 'SELECT '.$this->retournerChamps().' '.
275
			"FROM {$this->table} ".
275
			"FROM {$this->table} ".
276
			$this->retournerRequeteCondition().' '.
276
			$this->retournerRequeteCondition().' '.
277
			$this->requete_group_by.' '.
277
			$this->requete_group_by.' '.
278
			$this->retournerOrderBy().' '.
278
			$this->retournerOrderBy().' '.
279
			$this->formerRequeteLimite();
279
			$this->formerRequeteLimite() .
-
 
280
			' -- ' . __FILE__ . ':' . __LINE__ ;
280
		return $requete;
281
		return $requete;
281
	}
282
	}
Line 282... Line 283...
282
 
283
 
283
	public function retournerChamps() {
284
	public function retournerChamps() {
Line 370... Line 371...
370
 
371
 
Line 371... Line 372...
371
 
372
 
-
 
373
//-------------------FONCTIONS POUR LE FORMATAGE EN JSON----------------------------------------------------------------
372
//-------------------FONCTIONS POUR LE FORMATAGE EN JSON----------------------------------------------------------------
374
 
373
 
375
	public function retournerResultatFormate($resultat) {
374
	public function retournerResultatFormate($resultat) {
376
 
375
		switch ($this->format_reponse) {
377
		switch ($this->format_reponse) {
376
			case 'noms/relations' :
378
			case 'noms/relations' :
Line 533... Line 535...
533
						'WHERE num_nom_retenu = '.
535
						'WHERE num_nom_retenu = '.
534
						'('.
536
						'('.
535
						'SELECT num_nom_retenu FROM '.$this->table.' WHERE num_nom = "'.$num_nom.'"'.
537
						'SELECT num_nom_retenu FROM '.$this->table.' WHERE num_nom = "'.$num_nom.'"'.
536
						')';
538
						')';
Line 537... Line 539...
537
 
539
 
538
		return $this->getBdd()->recupererTous($requete);
540
		return $this->getBdd()->recupererTous($requete . ' -- ' . __FILE__ . ':' . __LINE__ );
Line 539... Line 541...
539
	}
541
	}
540
 
542
 
541
	public function formaterIdFlores($resultat) {
543
	public function formaterIdFlores($resultat) {