Subversion Repositories eFlore/Applications.del

Rev

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

Rev 883 Rev 924
Line 204... Line 204...
204
			if (isset($this->parametres[$nomFinal]) && $this->parametres[$nomFinal] != null) {
204
			if (isset($this->parametres[$nomFinal]) && $this->parametres[$nomFinal] != null) {
205
				$entete[] = $nomOriginal;
205
				$entete[] = $nomOriginal;
206
			}
206
			}
207
		}
207
		}
Line -... Line 208...
-
 
208
		
208
		
209
		$entete[] = 'date';	
209
		return implode(', ', $entete);
210
		return implode(', ', $entete);
Line 210... Line 211...
210
	}
211
	}
211
	
212
	
212
	private function genererValues() {
213
	private function genererValues() {
213
		$valeurs = array();
214
		$valeurs = array();
214
		foreach ($this->mappingCommentaire as $nomOriginal => $nomFinal) {
215
		foreach ($this->mappingCommentaire as $nomOriginal => $nomFinal) {
215
			if (isset($this->parametres[$nomFinal]) && $this->parametres[$nomFinal] != null) {
216
			if (isset($this->parametres[$nomFinal]) && $this->parametres[$nomFinal] != null) {
216
				$valeurs[] = $this->bdd->proteger($this->parametres[$nomFinal]);
217
				$valeurs[] = $this->bdd->proteger($this->parametres[$nomFinal]);
-
 
218
			}
-
 
219
		}
217
			}
220
		
218
		}
221
		$valeurs[] = 'NOW()';
219
		return implode(', ', $valeurs);
222
		return implode(', ', $valeurs);
220
	}
223
	}
221
}
224
}