Subversion Repositories Applications.referentiel

Rev

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

Rev 142 Rev 145
Line 13... Line 13...
13
* @link			http://www.tela-botanica.org/wikini/RTaxMethodo/wakka.php?wiki=MaNuel
13
* @link			http://www.tela-botanica.org/wikini/RTaxMethodo/wakka.php?wiki=MaNuel
14
* @licence		GPL v3 & CeCILL v2
14
* @licence		GPL v3 & CeCILL v2
15
* @version		$Id$
15
* @version		$Id$
16
*/
16
*/
17
// +-------------------------------------------------------------------------------------------------------------------+
17
// +-------------------------------------------------------------------------------------------------------------------+
18
// TODO : supprimer l'utilisation du paramêtres 'p' et chercher les infos depuis la bdd
18
// TODO : utilisation de array_key_exists à la place de isset dans creerFichierBdnt() ????
19
class Versionnage extends ScriptCommande {
19
class Versionnage extends ScriptCommande {
Line 20... Line 20...
20
	
20
	
21
	const SCRIPT_NOM = 'versionnage';
21
	const SCRIPT_NOM = 'versionnage';
Line 197... Line 197...
197
		$donnees = array();
197
		$donnees = array();
198
		$donnees['champs'] = $this->champs_nom;
198
		$donnees['champs'] = $this->champs_nom;
199
		foreach ($this->noms as $id => &$nom) {
199
		foreach ($this->noms as $id => &$nom) {
200
			$infos = array();
200
			$infos = array();
201
			foreach ($this->champs_ordre as $champ => $ordre) {
201
			foreach ($this->champs_ordre as $champ => $ordre) {
202
				if (isset($nom[$champ])) {
202
				if (array_key_exists($champ, $nom)) {
203
					$infos[$champ] = trim($nom[$champ]);
203
					$infos[$champ] = trim($nom[$champ]);
204
				} else {
204
				} else {
205
					$e = "Le champ '$champ' n'a pas été trouvé dans les données du nom : $id.";
205
					$e = "Le champ '$champ' n'a pas été trouvé dans les données du nom : $id.";
206
					$this->ajouterMessage($e);
206
					$this->ajouterMessage($e);
207
				}
207
				}