Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 468 → Rev 469

/trunk/scripts/modules/coste/Coste.php
49,6 → 49,9
case 'correspondanceDsc' :
$this->genererCorrespondanceDescription();
break;
case 'fusionIndex' :
$this->fusionnerIndex();
break;
default :
throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
}
158,12 → 161,27
$description->genererCorrespondance();
}
 
private function getClasseDescription() {
private function getClasseDescription() {
$description = $this->getClasse('Description');
return $description;
}
 
private function fusionnerIndex() {
$description = $this->getClasseIndex();
$description->fusionnerIndex();
}
 
private function getClasseIndex() {
$index = $this->getClasse('Index');
return $index;
}
 
private function getClasse($classeNom) {
$conteneur = new Conteneur();
$conteneur->setParametre('-v', $this->getParametre('-v'));
require_once dirname(__FILE__)."/Description.php";
$description = new Description($conteneur);
return $description;
require_once dirname(__FILE__).'/'.$classeNom.'.php';
$objet = new $classeNom($conteneur);
return $objet;
}
}
?>