Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 36 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36 Rev 80
Line 22... Line 22...
22
    function recupererBlockDeDonnees()
22
    function recupererBlockDeDonnees()
23
    {
23
    {
24
        return $this->dblock;
24
        return $this->dblock;
25
    }
25
    }
Line 26... Line 26...
26
    
26
    
27
    function macroElementFactory($macro_element_nom, $block_donnees_parent)
27
    function macroElementFactory($chemin_macro_element, $block_donnees_parent)
-
 
28
    {
-
 
29
        $etape_chemin = array_reverse(explode('>', $chemin_macro_element));
28
    {
30
        $macro_element_nom = $etape_chemin[0];
29
        require_once EFSE_CHEMIN_MV_MACRO.$macro_element_nom.'.php';
31
        require_once EFSE_CHEMIN_MV_MACRO.$macro_element_nom.'.php';
30
        $un_macro_element = new $macro_element_nom($this->connexion, $block_donnees_parent, $macro_element_nom);
32
        $un_macro_element = new $macro_element_nom($this->connexion, $block_donnees_parent, $chemin_macro_element);
31
        return $un_macro_element;
33
        return $un_macro_element;
32
    }
34
    }
33
}
35
}
34
?>
36
?>