phpDocumentor system
[ class tree: system ] [ index: system ] [ all elements ]

Source for file baliseConteneur.class.php

Documentation is available at baliseConteneur.class.php

  1. <?php
  2.  
  3.     /**
  4.      * Attribut d'une balise.
  5.      *
  6.      * @package system
  7.      * @author Alain Defrance
  8.      */
  9.     class wpmBaliseConteneur extends wpmBaliseAbstraite
  10.     {
  11.         private $content;
  12.         
  13.         public function __construct($pBaliseName)
  14.         {
  15.             parent::__construct($pBaliseName);
  16.             $this->content = Array();
  17.         }
  18.         
  19.         public function addContent($composant)
  20.         {
  21.             array_push($this->content$composant);
  22.         }
  23.         
  24.         public function generer()
  25.         {
  26.             $toReturn .= wpmSystem::endl().wpmSystem::getIndent()."<{$this->getBaliseName()}{$this->genererAttributString()}>";
  27.             wpmSystem::identUp();
  28.             foreach($this->content as $unComposant)
  29.             {
  30.                 $toReturn .= wpmSystem::endl().wpmSystem::getIndent().$unComposant->generer();
  31.             }
  32.             wpmSystem::identDown();
  33.             $toReturn .= wpmSystem::endl().wpmSystem::getIndent()."</{$this->getBaliseName()}>";
  34.             return $toReturn;
  35.         }
  36.     };
  37.  
  38. ?>

Documentation generated on Fri, 04 Jul 2008 23:38:38 +0200 by phpDocumentor 1.4.0a2