Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 87 Rev 89
1
<?php
1
<?php
2
 
-
 
3
require_once 'eflore_macro_element.class.php';
-
 
4
 
2
 
5
abstract class groupeMacroElement implements iModel{
3
abstract class groupeMacroElement implements iModel{
6
    
4
    
7
    protected $connexion;
5
    protected $connexion;
8
    protected $contexte;
6
    protected $contexte;
9
    protected $newContexte;
7
    protected $newContexte;
10
    protected $dblock;
8
    protected $dblock;
11
    
9
    
12
    function __construct($une_connexion)
10
    function __construct($une_connexion)
13
    {
11
    {
14
        $this->connexion = $une_connexion;
12
        $this->connexion = $une_connexion;
15
    }
13
    }
16
   
14
   
17
    function contruire()
15
    function contruire()
18
    {
16
    {
19
        
17
        
20
    }
18
    }
21
    
19
    
22
    function recupererBlockDeDonnees()
20
    function recupererBlockDeDonnees()
23
    {
21
    {
24
        return $this->dblock;
22
        return $this->dblock;
25
    }
23
    }
26
    
24
    
27
    function macroElementFactory($chemin_macro_element, $block_donnees_parent)
25
    function macroElementFactory($chemin_macro_element, $block_donnees_parent)
28
    {
26
    {
29
        $etape_chemin = array_reverse(explode('>', $chemin_macro_element));
27
        $etape_chemin = array_reverse(explode('>', $chemin_macro_element));
30
        $macro_element_nom = $etape_chemin[0];
28
        $macro_element_nom = $etape_chemin[0];
31
        require_once EFSE_CHEMIN_MV_MACRO.$macro_element_nom.'.php';
29
        require_once EFSE_CHEMIN_MV_MACRO.$macro_element_nom.'.php';
32
        $un_macro_element = new $macro_element_nom($this->connexion, $block_donnees_parent, $chemin_macro_element);
30
        $un_macro_element = new $macro_element_nom($this->connexion, $block_donnees_parent, $chemin_macro_element);
33
        return $un_macro_element;
31
        return $un_macro_element;
34
    }
32
    }
35
}
33
}
36
?>
34
?>