Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 63 Rev 74
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
        
15
        
16
        $this->construireContexte();
16
        $this->construireContexte();
17
        $this->ajouterMacroElement();
17
        $this->ajouterMacroElement();
18
    }
18
    }
19
    
19
    
20
    function construireContexte()
20
    function construireContexte()
21
    {
21
    {
22
        
22
        
23
    }
23
    }
24
    
24
    
25
    function ajouterMacroElement()
25
    function ajouterMacroElement()
26
    {
26
    {
27
        /*balise:SYNTHESE*/
27
        /*balise:NOM_LATIN*/
28
        $un_macro_element = $this->macroElementFactory('NOM_SYNTHESE', $this->dblock);
28
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
29
        $un_macro_element->construire();
29
        $un_macro_element->construire();
-
 
30
        /*balise:NOM_SELECTION*/
-
 
31
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
-
 
32
        $un_macro_element->construire();
-
 
33
        $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
-
 
34
        $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nvp', 'eprv_id_version');
-
 
35
        /*balise:TAXON_NOMS*/
-
 
36
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
-
 
37
        $un_macro_element->construire();
-
 
38
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
-
 
39
        $un_macro_element->construire();
-
 
40
        //$this->dblock->afficher();
30
    }
41
    }
31
    
42
    
32
}
43
}
33
?>
44
?>