Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 424 Rev 428
Line 41... Line 41...
41
					$this->nettoyerVersion1();
41
					$this->nettoyerVersion1();
42
					break;
42
					break;
43
				case 'creerDscTxt' :
43
				case 'creerDscTxt' :
44
					$this->creerDescriptionTxt();
44
					$this->creerDescriptionTxt();
45
					break;
45
					break;
-
 
46
				case 'statDscTxt' :
-
 
47
					$this->verifierDescriptionTxt();
-
 
48
					break;
-
 
49
				case 'correspondanceDsc' :
-
 
50
					$this->genererCorrespondanceDescription();
-
 
51
					break;
46
				default :
52
				default :
47
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
53
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
48
			}
54
			}
49
		} catch (Exception $e) {
55
		} catch (Exception $e) {
50
			$this->traiterErreur($e->getMessage());
56
			$this->traiterErreur($e->getMessage());
Line 136... Line 142...
136
					'IGNORE 1 LINES ';
142
					'IGNORE 1 LINES ';
137
		$this->getBdd()->requeter($requete);
143
		$this->getBdd()->requeter($requete);
138
	}
144
	}
Line 139... Line 145...
139
 
145
 
140
	private function creerDescriptionTxt() {
-
 
141
		$conteneur = new Conteneur();
-
 
142
		$conteneur->setParametre('-v', $this->getParametre('-v'));
-
 
143
		require_once dirname(__FILE__)."/Description.php";
146
	private function creerDescriptionTxt() {
144
		$description = new Description($conteneur);
147
		$description = $this->getClasseDescription();
145
		$description->genererDescriptionTxt();
148
		$description->genererDescriptionTxt();
-
 
149
	}
-
 
150
 
-
 
151
	private function verifierDescriptionTxt() {
-
 
152
		$description = $this->getClasseDescription();
-
 
153
		$description->verifierDescriptionTxt();
-
 
154
	}
-
 
155
 
-
 
156
	private function genererCorrespondanceDescription() {
-
 
157
		$description = $this->getClasseDescription();
-
 
158
		$description->genererCorrespondance();
-
 
159
	}
-
 
160
 
-
 
161
	private function  getClasseDescription() {
-
 
162
		$conteneur = new Conteneur();
-
 
163
		$conteneur->setParametre('-v', $this->getParametre('-v'));
-
 
164
		require_once dirname(__FILE__)."/Description.php";
-
 
165
		$description = new Description($conteneur);
-
 
166
		return $description;
146
	}
167
	}
147
}
168
}
148
?>
169
?>