6,14 → 6,14 |
protected $collection; |
protected $erreur; |
|
function __construct($identifiant) |
{ |
$this->identifiant = $identifiant; |
$this->collection = array(); |
} |
function __construct($identifiant) |
{ |
$this->identifiant = $identifiant; |
$this->collection = array(); |
} |
|
function affecterIdentifiant($identifiant) |
{ |
{ |
$this->identifiant = $identifiant; |
} |
|
22,11 → 22,10 |
$block = new blockdedonnees($this->identifiant); |
$block->affecterDonnees($donnees); |
$this->affecterBlockDeDonnees($block); |
|
} |
|
|
function affecterBlockDeDonnees($blockdonnees) |
{ |
{ |
array_push($this->collection,$blockdonnees); |
} |
|
44,19 → 43,14 |
{ |
return $this->erreur; |
} |
|
|
function afficher() |
{ |
echo "<LI><B>$this->identifiant</B></LI>"; |
for($i=0;$i<count($this->collection);$i++) |
{ |
$uneCollection =$this->collection[$i]; |
echo '<li><b>'.$this->identifiant.'</b></li>'; |
for($i = 0; $i < count($this->collection); $i++) { |
$uneCollection = $this->collection[$i]; |
$uneCollection->afficher(); |
|
} |
} |
|
} |
|
?> |