Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 82 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 82 Rev 98
1
<?php
1
<?php
2
class synthese extends groupeMacroElement {
2
class synthese extends groupeMacroElement {
3
    function __construct($une_connexion)
3
    function __construct($une_connexion)
4
    {
4
    {
5
        parent::__construct($une_connexion);
5
        parent::__construct($une_connexion);
6
    }
6
    }
7
    
7
    
8
    function construire()
8
    function construire()
9
    {
9
    {
10
        $this->dblock = new blockdedonnees('FICHE_SYNTHESE');
10
        $this->dblock = new blockdedonnees('FICHE_SYNTHESE');
11
        
11
        
12
        if (array_key_exists('nn', $_REQUEST)) {
12
        if (array_key_exists('nn', $_REQUEST)) {
13
            $this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
13
            $this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
14
        }
14
        }
-
 
15
        
-
 
16
        if (array_key_exists('nvp', $_REQUEST)) {
-
 
17
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
-
 
18
        }
15
        
19
        
16
        $this->construireContexte();
20
        $this->construireContexte();
17
        $this->ajouterMacroElement();
21
        $this->ajouterMacroElement();
18
    }
22
    }
19
    
23
    
20
    function construireContexte()
24
    function construireContexte()
21
    {
25
    {
22
        
26
        
23
    }
27
    }
24
    
28
    
25
    function ajouterMacroElement()
29
    function ajouterMacroElement()
26
    {
30
    {
27
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
31
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
28
        $un_macro_element->construire();
32
        $un_macro_element->construire();
-
 
33
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION_PROJETS', $this->dblock);
-
 
34
        $un_macro_element->construire();
-
 
35
        if (!isset($_REQUEST['nvp'])) {
-
 
36
            // La valeur par défaut 3 qui correspond à la BDNFF.
-
 
37
            $this->dblock->attribuerContexteValeur('FICHE_SYNTHESE', 'nvp', 3);
-
 
38
        }
29
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
39
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
30
        $un_macro_element->construire();
40
        $un_macro_element->construire();
31
        if (!isset($_REQUEST['nt'])) {
41
        if (!isset($_REQUEST['nt'])) {
32
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
42
            $this->dblock->attribuerContexteSql('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
33
        }
-
 
34
        if (!isset($_REQUEST['nvp'])) {
-
 
35
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nvp', 'eprv_id_version');
-
 
36
        }
43
        }
37
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
44
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
38
        $un_macro_element->construire();
45
        $un_macro_element->construire();
39
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
46
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
40
        $un_macro_element->construire();
47
        $un_macro_element->construire();
41
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
48
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
42
        $un_macro_element->construire();
49
        $un_macro_element->construire();
43
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
50
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
44
        $un_macro_element->construire();
51
        $un_macro_element->construire();
45
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
52
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
46
        //$this->dblock->afficher();
53
        //$this->dblock->afficher();
47
    }
54
    }
48
    
55
    
49
}
56
}
50
?>
57
?>