Example #1
0
 public static function Agrega_Fila($tabla, $arr_fila)
 {
     $fila = new TTableRow();
     foreach ($arr_fila as $arr_campo) {
         $campo = new TTableCell();
         foreach ($arr_campo as $propiedad => $valor) {
             if ($propiedad != "AddControls") {
                 $campo->{$propiedad} = $valor;
             } else {
                 $campo->getControls()->add($valor);
             }
         }
         $fila->Cells->add($campo);
     }
     $tabla->Rows->add($fila);
     return $fila;
 }
 public function addParsedObject($o)
 {
     if ($o instanceof TFilter) {
         $this->_filters[$o->getDataField()] = $o;
         $cell = new TTableCell();
         //$cell->setId('cell_'.$o->getId());
         $cell->getControls()->add($o);
         $this->getCells()->add($cell);
     } else {
         parent::addParsedObject($o);
     }
 }