Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1204 Rev 1205
Line 147... Line 147...
147
		$cheminRdf = $this->obtenirCheminImageRDF($this->idImg);
147
		$cheminRdf = $this->obtenirCheminImageRDF($this->idImg);
148
		file_put_contents($cheminRdf, $this->metaComplet);
148
		file_put_contents($cheminRdf, $this->metaComplet);
149
	}
149
	}
Line 150... Line 150...
150
 
150
 
151
	private function mettreAJourBdd() {
151
	private function mettreAJourBdd() {
-
 
152
		$idImg = $this->bdd->proteger($this->idImg);
-
 
153
		$exif = $this->bdd->proteger($this->exif);
-
 
154
		$iptc = $this->bdd->proteger($this->iptc);
-
 
155
		$xmp = $this->bdd->proteger($this->xmp);
152
		$requete = "SELECT nom_utilisateur FROM cel_images WHERE id_image = {$this->idImg} ";
156
		$makerNotes = $this->bdd->proteger($this->makerNotes);
-
 
157
		$autres = $this->bdd->proteger($this->metaAutres);
-
 
158
 
-
 
159
		$requete = 'UPDATE cel_images SET '.
153
		$resultats = $this->bdd->requeter($requete, Bdd::SQL_RETOUR_COLONNE);
160
			"	meta_exif = $exif, ".
154
		print_r($resultats);
161
			"	meta_iptc = $iptc, ".
-
 
162
			"	meta_xmp = $xmp, ".
-
 
163
			"	meta_makernote = $makerNotes, ".
-
 
164
			"	meta_autres = $autres ".
-
 
165
			"WHERE id_image = $idImg ";
-
 
166
		$resultat = $this->bdd->executer($requete);
-
 
167
 
155
		echo "\n";
168
		echo "Mise à jour image '{$this->idImg}' : $resultat\n";
156
	}
169
	}
157
}
170
}
158
?>
171
?>