14,6 → 14,7 |
*/ |
class Versionnage extends AppliControleur { |
|
private $manuel = null; |
private $referentiel = null; |
|
public function __construct() { |
23,6 → 24,8 |
if (isset($_GET['ref'])) { // code du projet courrant |
$this->referentiel = strtolower($_GET['ref']); |
} |
|
$this->manuel = parse_ini_file(Config::get('chemin_appli').DS.'..'.DS.'configurations'.DS.'referentiel_v2.1.ini'); |
} |
|
//+----------------------------------------------------------------------------------------------------------------+ |
31,9 → 34,41 |
* Fonction d'affichage par défaut |
*/ |
public function executerActionParDefaut() { |
return $this->afficherInterface(); |
} |
|
/** |
* Affiche le formulaire de demande de versionnage |
*/ |
public function afficherInterface() { |
$donnees = array(); |
// Paramêtres pour l'url du formulaire |
$this->url->unsetVariablesRequete(array('module', 'action', 'ref')); |
$donnees['url_form'] = $this->url->getUrl(); |
$donnees['url_module'] = 'Versionnage'; |
$donnees['url_action_demande'] = 'demanderTraitement'; |
$donnees['url_action_rafraichir'] = 'afficherInterface'; |
|
// Date de production de la version |
$donnees['date_prod'] = date('Y-m-d'); |
|
// Récupération des paramètres de configuration du manuel des référentiels |
$donnees['domaine_geo'] = explode(';', $this->manuel['domaine_geo']); |
$donnees['domaine_taxo'] = explode(';', $this->manuel['domaine_taxo']); |
$donnees['domaine_code'] = explode(';', $this->manuel['domaine_code']); |
$licences = explode(';', $this->manuel['licences']); |
foreach ($licences as $licence) { |
if (preg_match('/^([^<]+)<([^>]+)>/', $licence, $match)) { |
$info_licence = array(); |
$info_licence['nom'] = $match[1]; |
$info_licence['url'] = $match[2]; |
$donnees['licences'][] = $info_licence; |
} |
} |
|
$this->setSortie(self::RENDU_CORPS, $this->getVue('form_version', $donnees), false); |
$this->construireMenu($this->referentiel); |
$this->construireFilAriane($this->referentiel); |
$this->setSortie(self::RENDU_CORPS, '<p>En cours de réalisation...</p>', false); |
} |
} |
} |
?> |