Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
170 jpm 1
<?php
2
class formulairenomenclatural extends groupeMacroElement {
3
    function __construct($une_connexion)
4
    {
5
        parent::__construct($une_connexion);
6
    }
7
 
8
    function construire()
9
    {
10
        $this->dblock = new blockdedonnees('FORMULAIRE_NOMENCLATURAL');
11
 
12
        // Numéro de version du projet
13
        if (array_key_exists('nvp', $_REQUEST)) {
14
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
15
        }
16
 
17
        $this->construireContexte();
18
        $this->ajouterMacroElement();
19
    }
20
 
21
    function construireContexte()
22
    {
23
 
24
    }
25
 
26
    function ajouterMacroElement()
27
    {
28
        if (!isset($_REQUEST['nvp'])) {
29
            // La valeur par défaut 3 qui correspond à la BDNFF.
30
            $this->dblock->attribuerContexteValeur('FORMULAIRE_NOMENCLATURAL', 'nvp', 3);
31
        }
32
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION_TOUS', $this->dblock);
33
        $un_macro_element->construire();
34
    }
35
 
36
}
37
?>