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 39
Line 51... Line 51...
51
    
51
    
52
    function ajouterCollectionBlockFils($collection_block)
52
    function ajouterCollectionBlockFils($collection_block)
53
    {
53
    {
54
        array_push($this->collectionBlocksfils, $collection_block);
54
        array_push($this->collectionBlocksfils, $collection_block);
-
 
55
    }
-
 
56
    
-
 
57
    function recupererCollectionBlockFils()
-
 
58
    {
-
 
59
        return $this->collectionBlocksfils;
Line 55... Line 60...
55
    }
60
    }
56
    
61
    
57
    function afficherPattern($chemin, $fonction)
62
    function afficherPattern($chemin, $fonction)
Line 58... Line 63...
58
    {
63
    {
59
        if ($chemin == $this->identifiant) {
64
        if ($chemin == $this->identifiant) {
60
        
65
        
61
        } else {
66
        } else {
62
            $etape_chemin = explode('>', $chemin);
67
            $etape_chemin = explode('>', $chemin);
63
            if($chemin == $etape_chemin[0]) {
68
            if($chemin == $etape_chemin[0]) {
64
                for($i = 0; $i < count($this->collectionBlocksfils); $i++) {
69
                for ($i = 0; $i < count($this->collectionBlocksfils); $i++) {
65
                    $collection = $this->collectionBlocksfils[$i];
70
                    $collection = $this->collectionBlocksfils[$i];
66
                    if ($collection->recupererIdentifiant() == $etape_chemin[1]) {
71
                    if ($collection->recupererIdentifiant() == $etape_chemin[1]) {
Line 73... Line 78...
73
    }
78
    }
Line 74... Line 79...
74
    
79
    
75
    function afficher()
80
    function afficher()
76
    {
81
    {
77
        echo '<ol>';
82
        echo '<ol>';
78
        foreach($this->donnees as $key => $value)
-
 
79
        {
83
        foreach ($this->donnees as $key => $value) {
80
            echo '<li>'.$key.' : '.$value;
84
            echo '<li>'.$key.' : '.$value;
81
        }
85
        }
82
        echo '</ol>';
86
        echo '</ol>';
83
        for($i = 0; $i < count($this->collectionBlocksfils); $i++) {
87
        for ($i = 0; $i < count($this->collectionBlocksfils); $i++) {
84
            $collection = $this->collectionBlocksfils[$i];
88
            $collection = $this->collectionBlocksfils[$i];
85
            echo '<ol>';
89
            echo '<ol>';
86
            $collection->afficher();
90
            $collection->afficher();
87
            echo '</ol>';
91
            echo '</ol>';