Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 123 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 136
1
<?php
1
<?php
2
class formulairetaxonomique extends groupeMacroElement {
2
class formulairetaxonomique 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('FORMULAIRE_TAXONOMIQUE');
10
        $this->dblock = new blockdedonnees('FORMULAIRE_TAXONOMIQUE');
11
        
11
        
12
        // Numéro de version du projet
12
        // Numéro de version du projet
13
        if (array_key_exists('nvp', $_REQUEST)) {
13
        if (array_key_exists('nvp', $_REQUEST)) {
14
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
14
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
15
        }
15
        }
16
        
16
        
17
        // Rang
17
        // Rang
18
        if (array_key_exists('rg',$_REQUEST)) {
18
        if (array_key_exists('rg',$_REQUEST)) {
19
            $this->dblock->ajouterDonnee('rg', $_REQUEST['rg']);
19
            $this->dblock->ajouterDonnee('rg', $_REQUEST['rg']);
20
        }
20
        }
21
        
21
        
22
        // Ordre
22
        // Ordre
23
        if (array_key_exists('od',$_REQUEST)) {
23
        if (array_key_exists('od',$_REQUEST)) {
24
            $this->dblock->ajouterDonnee('od', $_REQUEST['od']);
24
            $this->dblock->ajouterDonnee('od', $_REQUEST['od']);
25
        }
25
        }
26
        
26
        
27
        // Lettre du début du nom
27
        // Lettre du début du nom
28
        if (array_key_exists('le',$_REQUEST)) {
28
        if (array_key_exists('le',$_REQUEST)) {
29
            $this->dblock->ajouterDonnee('le', $_REQUEST['le']);
29
            $this->dblock->ajouterDonnee('le', $_REQUEST['le']);
30
        }
30
        }
31
        
31
        
32
        $this->construireContexte();
32
        $this->construireContexte();
33
        $this->ajouterMacroElement();
33
        $this->ajouterMacroElement();
34
    }
34
    }
35
    
35
    
36
    function construireContexte()
36
    function construireContexte()
37
    {
37
    {
38
        
38
        
39
    }
39
    }
40
    
40
    
41
    function ajouterMacroElement()
41
    function ajouterMacroElement()
42
    {
42
    {
43
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
43
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION_TOUS', $this->dblock);
44
        $un_macro_element->construire();
44
        $un_macro_element->construire();
45
        $un_macro_element = $this->macroElementFactory('TAXON_RECHERCHE', $this->dblock);
45
        $un_macro_element = $this->macroElementFactory('TAXON_RECHERCHE', $this->dblock);
46
        $un_macro_element->construire();
46
        $un_macro_element->construire();
47
    }
47
    }
48
    
48
    
49
}
49
}
50
?>
50
?>