32,6 → 32,8 |
private $referentielDao = null; |
|
public function executer() { |
// Récupération de paramêtres |
$this->projet = $this->getParam('p'); |
$this->manuel = parse_ini_file(Config::get('chemin_appli').DS.'..'.DS.'configurations'.DS.'referentiel_v2.1.ini'); |
|
$this->resultatDao = new ResultatDao(); |
38,9 → 40,8 |
$this->traitementDao = new TraitementDao(); |
Debug::printr('Dans le script test'); |
// Récupération du dernier traitement demandé |
$this->traitement = $this->traitementDao->getDernierTraitement('tout', self::SCRIPT_NOM); |
$this->traitement = $this->traitementDao->getDernierTraitement($this->projet, self::SCRIPT_NOM); |
if (isset($this->traitement)) { |
$this->projet = $this->traitement['referentiel_code']; // Récupération du nom de projet |
Debug::printr($this->traitement); |
// Écriture de la date de début du traitement |
Debug::printr('Debute:'.$this->traitementDao->debuterTraitement($this->traitement['id_traitement'])); |
66,7 → 67,7 |
// Écriture de la date de fin du traitement |
Debug::printr('Termine:'.$this->traitementDao->terminerTraitement($this->traitement['id_traitement'])); |
} else { |
Debug::printr("Aucun dernier traitement trouvé pour le script '".self::SCRIPT_NOM."' !"); |
Debug::printr("Aucun dernier traitement trouvé pour le projet '{$this->projet}' et le script '".self::SCRIPT_NOM."' !"); |
} |
} |
|