Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 39 Rev 42
Line 57... Line 57...
57
    function recupererCollectionBlockFils()
57
    function recupererCollectionBlockFils()
58
    {
58
    {
59
        return $this->collectionBlocksfils;
59
        return $this->collectionBlocksfils;
60
    }
60
    }
Line 61... Line 61...
61
    
61
    
-
 
62
	function afficherPattern($chemin,$nom_fonction)
-
 
63
	{
-
 
64
		/*echo "identifiant: $this->identifiant</br>";
-
 
65
		echo "chemin: $chemin</br>";
-
 
66
		echo "nom_fonction: $nom_fonction</br>";*/
-
 
67
		
-
 
68
		if($chemin==$this->identifiant)
-
 
69
		{
-
 
70
			call_user_func($nom_fonction,$this->donnees);
-
 
71
		}
62
    function afficherPattern($chemin, $fonction)
72
		else
63
    {
-
 
Line 64... Line -...
64
        if ($chemin == $this->identifiant) {
-
 
65
        
73
		{
66
        } else {
74
			
-
 
75
			$etape_chemin = explode('>',$chemin);
67
            $etape_chemin = explode('>', $chemin);
76
			if($this->identifiant==$etape_chemin[0])
-
 
77
			{	//echo "collection</br>";
68
            if($chemin == $etape_chemin[0]) {
78
				for($i=0;$i<count($this->collectionBlocksfils);$i++)
-
 
79
				{
69
                for ($i = 0; $i < count($this->collectionBlocksfils); $i++) {
80
					$collection =$this->collectionBlocksfils[$i];
-
 
81
					//echo "collection2</br>";
-
 
82
					if ($collection->recupererIdentifiant()==$etape_chemin[1])
70
                    $collection = $this->collectionBlocksfils[$i];
83
					{
71
                    if ($collection->recupererIdentifiant() == $etape_chemin[1]) {
84
						echo "collection3</br>";
72
                        array_shift($etape_chemin);
85
						array_shift($etape_chemin);
73
                        afficherPattern(implode('>', $etape_chemin), $fonction);
86
						$collection->afficherPattern(implode('>',$etape_chemin),$nom_fonction);
74
                    }
87
					}			
75
                }
88
				}
76
            }
89
			}