Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 74 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
63 jpm 1
<?php
2
class synthese extends groupeMacroElement {
3
    function __construct($une_connexion)
4
    {
5
        parent::__construct($une_connexion);
6
    }
7
 
8
    function construire()
9
    {
10
        $this->dblock = new blockdedonnees('FICHE_SYNTHESE');
11
 
12
        if (array_key_exists('nn', $_REQUEST)) {
13
            $this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
14
        }
15
 
16
        $this->construireContexte();
17
        $this->ajouterMacroElement();
18
    }
19
 
20
    function construireContexte()
21
    {
22
 
23
    }
24
 
25
    function ajouterMacroElement()
26
    {
74 jpm 27
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
63 jpm 28
        $un_macro_element->construire();
74 jpm 29
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
30
        $un_macro_element->construire();
82 jpm 31
        if (!isset($_REQUEST['nt'])) {
32
            $this->dblock->attribuerContexte('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
        }
37
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
38
        $un_macro_element->construire();
74 jpm 39
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
40
        $un_macro_element->construire();
82 jpm 41
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
74 jpm 42
        $un_macro_element->construire();
82 jpm 43
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
44
        $un_macro_element->construire();
45
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
74 jpm 46
        //$this->dblock->afficher();
63 jpm 47
    }
48
 
49
}
50
?>