Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 428 Rev 469
Line 47... Line 47...
47
					$this->verifierDescriptionTxt();
47
					$this->verifierDescriptionTxt();
48
					break;
48
					break;
49
				case 'correspondanceDsc' :
49
				case 'correspondanceDsc' :
50
					$this->genererCorrespondanceDescription();
50
					$this->genererCorrespondanceDescription();
51
					break;
51
					break;
-
 
52
				case 'fusionIndex' :
-
 
53
					$this->fusionnerIndex();
-
 
54
					break;
52
				default :
55
				default :
53
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
56
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
54
			}
57
			}
55
		} catch (Exception $e) {
58
		} catch (Exception $e) {
56
			$this->traiterErreur($e->getMessage());
59
			$this->traiterErreur($e->getMessage());
Line 156... Line 159...
156
	private function genererCorrespondanceDescription() {
159
	private function genererCorrespondanceDescription() {
157
		$description = $this->getClasseDescription();
160
		$description = $this->getClasseDescription();
158
		$description->genererCorrespondance();
161
		$description->genererCorrespondance();
159
	}
162
	}
Line 160... Line 163...
160
 
163
 
-
 
164
	private function getClasseDescription() {
-
 
165
		$description = $this->getClasse('Description');
-
 
166
		return $description;
-
 
167
	}
-
 
168
 
-
 
169
	private function fusionnerIndex() {
-
 
170
		$description = $this->getClasseIndex();
-
 
171
		$description->fusionnerIndex();
-
 
172
	}
-
 
173
 
-
 
174
	private function getClasseIndex() {
-
 
175
		$index = $this->getClasse('Index');
-
 
176
		return $index;
-
 
177
	}
-
 
178
 
161
	private function  getClasseDescription() {
179
	private function getClasse($classeNom) {
162
		$conteneur = new Conteneur();
180
		$conteneur = new Conteneur();
163
		$conteneur->setParametre('-v', $this->getParametre('-v'));
181
		$conteneur->setParametre('-v', $this->getParametre('-v'));
164
		require_once dirname(__FILE__)."/Description.php";
182
		require_once dirname(__FILE__).'/'.$classeNom.'.php';
165
		$description = new Description($conteneur);
183
		$objet = new $classeNom($conteneur);
166
		return $description;
184
		return $objet;
167
	}
185
	}
168
}
186
}
169
?>
187
?>