private function buildColumns(array $columns)
    {
        $this->columns = [];
        foreach ($columns as $key => $column)
        {
            $column = new DataTableColumn($column);
            $this->columns[$key] = $column;
            if($column->getName() != ""){
                $this->columns[$column->getName()] = $column;
            }
            if($column->getData() != ""){
                $this->columns[$column->getData()] = $column;
            }
        }
    }
private function buildColumns(array $columns)
    {
        $this->columns = [];
        foreach ($columns as $key => $column)
        {
            $column = new DataTableColumn($column);
            $this->columns[$key] = $column;
            if($column->getName() != ""){
                $this->columns[$column->getName()] = $column;
            }
            if($column->getData() != ""){
                $this->columns[$column->getData()] = $column;
            }
        }
    }
private function buildColumns ( array $ columns ) { $ this -> columns = [ ] ; foreach ( $ columns as $ key => $ column ) { $ column = new DataTableColumn ( $ column ) ; $ this -> columns [ $ key ] = $ column ; if ( $ column -> getName ( ) != "" ) { $ this -> columns [ $ column -> getName ( ) ] = $ column ; } if ( $ column -> getData ( ) != "" ) { $ this -> columns [ $ column -> getData ( ) ] = $ column ; } } }
Construye una columna
@param array $columns
Construye una columna