Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 32 Rev 36
Line 7... Line 7...
7
    protected $contexteRef;
7
    protected $contexteRef;
8
    protected $blockdedonneesParent;
8
    protected $blockdedonneesParent;
9
    protected $collectionblockdedonnees;
9
    protected $collectionblockdedonnees;
10
    protected $idRes;
10
    protected $idRes;
Line 11... Line 11...
11
    
11
    
12
    function __construct($aConn,$aParentDataBlock,$identifiant)
12
    function __construct($une_connexion, $un_block_données_parent, $identifiant)
13
    {
13
    {
14
        $this->connexion = $aConn;
14
        $this->connexion = $une_connexion;
15
        $this->blockdedonneesParent = $aParentDataBlock;
15
        $this->blockdedonneesParent = $un_block_donn;
16
        $this->identifiantblockdedonnees = $identifiant;
16
        $this->identifiantblockdedonnees = $identifiant;
17
        $this->contexteRef = $this->blockdedonneesParent->recupererDonnees();
17
        $this->contexteRef = $this->blockdedonneesParent->recupererDonnees();
Line 18... Line 18...
18
    }
18
    }
19
    
19
    
20
    function construire() 
20
    function construire() 
21
    {
21
    {
22
        $sql=$this->getSQL();
22
        $sql = $this->getSQL();
23
        if(!is_NULL($sql)) {
23
        if(!is_null($sql)) {
24
            $this->openCursor($sql);
24
            $this->openCursor($sql);
25
            while ($this->fetch());
25
            while ($this->fetch());
26
            $this->closeCursor();
26
            $this->closeCursor();
Line 27... Line 27...
27
        }
27
        }
28
    }
28
    }
29
    
29
    
Line 30... Line 30...
30
    function contruireparrecursiviteplate()
30
    function contruireParRecursivitePlate()
Line 31... Line 31...
31
    {
31
    {
32
        construire();
32
        construire();
Line 33... Line 33...
33
        
33
        
34
        $this->$contexteRef = $this->blockdedonnees;
34
        $this->$contexteRef = $this->blockdedonnees;
Line 35... Line 35...
35
        
35
        
Line 36... Line 36...
36
        construire();
36
        construire();
Line 50... Line 50...
50
        $this->blockdedonneesParent->ajouterCollectionBlockFils($this->collectionblockdedonnees);
50
        $this->blockdedonneesParent->ajouterCollectionBlockFils($this->collectionblockdedonnees);
51
    }
51
    }
Line 52... Line 52...
52
    
52
    
53
    function fetch()
53
    function fetch()
54
    {
54
    {
55
        $res=mysql_fetch_assoc($this->idRes);
55
        $res = mysql_fetch_assoc($this->idRes);
Line 56... Line 56...
56
        if (!$res) {
56
        if (!$res) {
57
            
57
            
58
        } else {
58
        } else {