Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 89 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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