Example #1
0
 /**
  * @return base_html_model_table_Row
  */
 protected function createHeadRow()
 {
     $headRow = new base_html_model_table_Row();
     $headRow->setClass('headerRow');
     foreach ($this->cols as $columnName) {
         $cell = new base_html_model_table_Cell();
         $cell->setContent($this->obj->getFieldinfo($columnName)->getFieldLabel());
         $headRow->addCell($cell);
     }
     return $headRow;
 }
Example #2
0
 /**
  * @param base_html_model_table_Row $row
  */
 public function addRow(base_html_model_table_Row $row)
 {
     if (count($this->rows) % 2) {
         $row->setClass($row->getClass() . ' oddRow');
     }
     $this->rows[] = $row;
 }