Source for file ASimpleLayout.php

Documentation is available at ASimpleLayout.php

  1. <?
  2. /**
  3.  * ASimpleLayout
  4.  *
  5.  * @package Alia
  6.  * @subpackage Layouts
  7.  */
  8.  
  9.  
  10. /**
  11.  * ASimpeLayout
  12.  *
  13.  * @package Alia
  14.  * @subpackage Layouts
  15.  */
  16.  
  17.  
  18. class ASimpleLayout extends ALayout
  19. {
  20.  
  21.     private $separator;
  22.     public function render(){
  23.         $buffer="";
  24.         $x =0;
  25.         if(count($this->getWidgets()>0))
  26.             foreach ($this->getWidgets(as $widget){
  27.                 $buffer.="\n".$widget->render();
  28.                 if($this->separator && $x++ > 0)$buffer.=$this->separator;
  29.             }
  30.         return "<div".$this->getAttributeHTML().">".$buffer."</div>";
  31.     }
  32.  
  33.     public function setSeparator($sep){
  34.         $this->separator$sep;
  35.     }
  36.  
  37. // end of ASimpleLayout
  38. ?>

Documentation generated on Fri, 11 Jul 2008 13:28:42 -0400 by phpDocumentor 1.4.2