src/DataTable.php
public function setColumn($params, $show = true)
    {
        if ($show) {
            $this->setTHead($params);
            $this->setTFoot($params);

            $this->columns[] = $params;
        } else {
            $this->unsetColumns[] = $params;
        }

        return $this;
    }
public function setColumn($params, $show = true)
    {
        if ($show) {
            $this->setTHead($params);
            $this->setTFoot($params);

            $this->columns[] = $params;
        } else {
            $this->unsetColumns[] = $params;
        }

        return $this;
    }
public function setColumn ( $ params , $ show = true ) { if ( $ show ) { $ this -> setTHead ( $ params ) ; $ this -> setTFoot ( $ params ) ; $ this -> columns [ ] = $ params ; } else { $ this -> unsetColumns [ ] = $ params ; } return $ this ; }
Add a column to the table

@param array $params Can contain :
$params[$key]      = mixed   // Properties for Initialization Javascript (see self::$columnParams)
$params['parent']  = string  // Permit to have a complex header with a colspan...
// Set the same string to put multiple column under the same th
$params['sFilter'] = array   // Permit to add a filtering html input for the column
$params['sFilter']['type']      = string   // see self::$columFilteringParams['type']
$params['sFilter']['regex']     = bool     //
$params['sFilter']['sql_table'] = string
$params['sFilter']['sql_name']  = string
$params['sFilter']['sqlFilter'] = string   // Initial SQL filter

@param bool $show Set false to Add a column to load in the result but wich will not be print

@return self
Add a column to the table