Source for file TableWidgetLayout.php

Documentation is available at TableWidgetLayout.php

  1. <?php
  2.  
  3.  
  4.     public function generate($columns){
  5.     
  6.         $buffer="<table {%attributes%} >\n<tr>";
  7.         
  8.         foreach($columns as $column=>$vals){
  9.             $buffer.='<th>'.$column."</th>\n";
  10.         }
  11.         $buffer.="<tr>\n";
  12.  
  13.         $buffer.='<? foreach($this->getWidgets() as $widget){
  14.             if(! $widget instanceof APushButton)echo $widget->render();
  15.         }?>
  16.         <tr>
  17.         <td>{prevButton}</td>
  18.         <td>{nextButton}</td>
  19.         </tr>
  20.         </table>';
  21.  
  22.         return $buffer;
  23.     }
  24.     
  25. }
  26.  
  27.  
  28.  
  29. ?>

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