Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 139 Rev 140
Line 34... Line 34...
34
        for($i = 0; $i < count($collection_block_fils); $i++) {
34
        for($i = 0; $i < count($collection_block_fils); $i++) {
35
            $collection = $collection_block_fils[$i];
35
            $collection = $collection_block_fils[$i];
36
            if ($collection->recupererIdentifiant() == $this->identifiant_parent) {
36
            if ($collection->recupererIdentifiant() == $this->identifiant_parent) {
37
                return $collection->recupererBlocksDeDonnees();
37
                return $collection->recupererBlocksDeDonnees();
38
            } else if (is_object($un_block_donnees->recupererCollectionBlockFils())) {
38
            } else if (is_object($un_block_donnees->recupererCollectionBlockFils())) {
39
                return $this->attribuerContexteRef($un_block_donnees->recupererCollectionBlockFils());
39
                $this->attribuerContexteRef($un_block_donnees->recupererCollectionBlockFils());
40
            }
40
            }
41
        }
41
        }
42
    }
42
    }
Line 43... Line 43...
43
    
43
    
Line 76... Line 76...
76
        return null;
76
        return null;
77
    }
77
    }
Line 78... Line 78...
78
    
78
    
79
    function construire()
79
    function construire()
80
    {
-
 
81
        if (is_null($this->identifiant_parent)) {
80
    {
82
            $sql = $this->getSQL();
81
        $sql = $this->getSQL();
83
            if (!is_null($sql)) {
82
        if (!is_null($sql)) {
84
                $this->openCursor($sql);
83
            $this->openCursor($sql);
85
                while ($this->fetch());
84
            while ($this->fetch());
86
                $this->closeCursor();
-
 
87
            }
85
            $this->closeCursor();
88
        }
-
 
89
    }
-
 
90
    
-
 
91
    function contruireParRecursivitePlate()
-
 
92
    {
-
 
93
        construire();
-
 
94
        
-
 
95
        $this->$contexteRef = $this->blockdedonnees;
-
 
96
        
-
 
97
        construire();
86
        }
Line 98... Line 87...
98
    }
87
    }
99
    
88
    
100
    function construireParRecursivite($niveau_max, $aso_contexte = null, $id = null)
89
    function construireParRecursivite($niveau_max, $aso_contexte = null, $id = null)
Line 129... Line 118...
129
                $block = $blocks_de_donnees[$i];
118
                $block = $blocks_de_donnees[$i];
130
                $this->construireParRecursivite($niveau_max, $block->recupererDonnees(), $block->recupererIdentifiant());
119
                $this->construireParRecursivite($niveau_max, $block->recupererDonnees(), $block->recupererIdentifiant());
131
            }
120
            }
132
        }
121
        }
133
    }
122
    }
-
 
123
    
-
 
124
    function contruireParRecursivitePlate()
-
 
125
    {
-
 
126
        construire();
-
 
127
        
-
 
128
        $this->$contexteRef = $this->blockdedonnees;
-
 
129
        
-
 
130
        construire();
-
 
131
    }
Line 134... Line 132...
134
    
132
    
135
    function openCursor($sql, $id = null)
133
    function openCursor($sql, $id = null)
136
    {
134
    {
137
        $resultat = mysql_query($sql, $this->connexion);
135
        $resultat = mysql_query($sql, $this->connexion);