Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 72 Rev 80
Line 10... Line 10...
10
    {
10
    {
11
        $this->identifiant = $identifiant;
11
        $this->identifiant = $identifiant;
12
        $this->collection = array();
12
        $this->collection = array();
13
    }
13
    }
Line 14... Line 14...
14
   
14
   
15
   function affecterIdentifiant($identifiant) 
15
   function affecterIdentifiant($identifiant)
16
    {
16
    {
17
        $this->identifiant = $identifiant;
17
        $this->identifiant = $identifiant;
Line 18... Line 18...
18
    }
18
    }
Line 22... Line 22...
22
        $block = new blockdedonnees($this->identifiant);
22
        $block = new blockdedonnees($this->identifiant);
23
        $block->affecterDonnees($donnees);
23
        $block->affecterDonnees($donnees);
24
        $this->affecterBlockDeDonnees($block);
24
        $this->affecterBlockDeDonnees($block);
25
    }
25
    }
Line 26... Line 26...
26
    
26
    
27
    function affecterBlockDeDonnees($blockdonnees) 
27
    function affecterBlockDeDonnees($block_donnees)
28
    {
28
    {
29
        array_push($this->collection,$blockdonnees);
29
        array_push($this->collection,$block_donnees);
Line 30... Line 30...
30
    }
30
    }
31
    
31
    
32
    function recupererBlocksDeDonnees()
32
    function recupererBlocksDeDonnees()
Line 42... Line 42...
42
    function recupererErreur()
42
    function recupererErreur()
43
    {
43
    {
44
        return $this->erreur;
44
        return $this->erreur;
45
    }
45
    }
Line 46... Line 46...
46
    
46
    
47
    function afficherPattern($chemin, $nom_fonction)
47
    function afficherPattern($chemin, $nom_fonction, $recuperer_descendance = FALSE, $aso_parametres = array())
48
    {
48
    {
-
 
49
        $retour = '';
49
        $retour = '';
50
        $collection = $this->recupererBlocksDeDonnees();
50
        for($i = 0; $i < count($this->collection); $i++) {
51
        for($i = 0; $i < count($collection); $i++) {
51
            $block_donnees = $this->collection[$i];
52
            $block_donnees = $collection[$i];
52
            $retour .= $block_donnees->afficherPattern($chemin, $nom_fonction);
53
            $retour .= $block_donnees->afficherPattern($chemin, $nom_fonction, $recuperer_descendance, $aso_parametres);
53
        }
54
        }
54
        return $retour;
55
        return $retour;
Line 55... Line 56...
55
    }
56
    }