Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

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