Adds a new column

@param string $column

@return void
427912
public function addColumn($column) {
        $columns = $this->getColumns();
        $columns[] = $column;
        $this->setColumns($columns);
    }
1126711
public function add($word, $row, $column)
    {
        $this->words[] = new Word($word, $row, $column);
    }
650691
def addColumn(self, column):
        
        column.setSchema(self)
        self.__columns[column.name()] = column
1125473
public function addTablePrefixToColumn(string $column): string
    {
        return ($this->tablePrefixer ?? $this->database->getTablePrefixer())->addTablePrefixToColumn($column);
    }
483176
protected function addColumns($columns)
    {
        $model = $this->models->first();

        if ($columns) {
            foreach ($columns as $key => $field) {
                if (is_numeric($key)) {
                    // Simple non-keyed array passed.
                    $new_column = Column::create($field);
                } else {
                    // Key also matters, apparently
                    $new_column = Column::create($key, $field);
                }

                $new_column->setOptionsFromModel($model);

                $this->columns[] = $new_column;
            }
        }
    }
307815
protected function setColumn($column)
    {
        if ($column instanceof ColumnMap) {
            $this->column = $column->getName();
            $this->table = $column->getTable()->getName();
        } else {
            $dotPos = strrpos($column, '.');
            if ($dotPos === false) {
                // no dot => aliased column
                $this->table = null;
                $this->column = $column;
            } else {
                $this->table = substr($column, 0, $dotPos);
                $this->column = substr($column, $dotPos + 1, strlen($column));
            }
        }
    }
1248511
public function columns($columns)
    {
        if (is_null($this->columns)) {
            $this->columns = $this->element('()', $columns);
        } else {
            $this->columns->append($columns);
        }

        return $this;
    }
775763
protected function addCol($col)
    {
        $key                    = $this->quoteName($col);
        $this->col_values[$key] = ":$col";
        $args                   = func_get_args();
        if (count($args) > 1) {
            $this->bindValue($col, $args[1]);
        }
        return $this;
    }
115168
public function addColumn(Column $column = null, string $size = ''): Column
    {
        if (!$column) {
            $column = new Column();
        }

        $this->columns[$size][] = $column;

        return $column;
    }
604841
public void addColumn(String column) {

        m_columns.add(new CmsSimpleQueryFragment(column, Collections.<Object> emptyList()));
    }
825790
public function addIsNullCondition($column){
        $this->conditionColumns[] = $column;
        return $this->addCondition($this->_column($column) . " IS NULL");
    }
1143211
public function addCols(array $cols): void
    {
        // in case of a count query we don't need to a the columns:
        if ($this->isCount === true) {
            $this->statement .= ' COUNT(*)' . PHP_EOL;
            return;
        }

        if (empty($cols)) {
            return;
        }

        foreach ($cols as $i => $col) {
            $cols[$i] = $this->quoteName($col);
        }

        $this->statement .= ' ';
        $this->statement .= implode(', ', $cols);
        $this->statement .= PHP_EOL;
    }
127949
public function addColumn(Column $column)
    {
        if (array_key_exists((string)$column, $this->columns)) {
            throw new \InvalidArgumentException("Column with label '$column' already exists!");
        }
        $this->columns[(string)$column] = $column;

        return $this;
    }
949880
public function addIndex($columns)
    {
        $index = new Index($columns, $this);

        $this->actions[] =  function () use ($index) {
             return $this->manipulation->create($index);
        };

        return $this;
    }
435376
protected function createColumn($column)
	{
		$c=new CMysqlColumnSchema;
		$c->name=$column['Field'];
		$c->rawName=$this->quoteColumnName($c->name);
		$c->allowNull=$column['Null']==='YES';
		$c->isPrimaryKey=strpos($column['Key'],'PRI')!==false;
		$c->isForeignKey=false;
		$c->init($column['Type'],$column['Default']);
		$c->autoIncrement=strpos(strtolower($column['Extra']),'auto_increment')!==false;
		if(isset($column['Comment']))
			$c->comment=$column['Comment'];

		return $c;
	}
589531
public static function insert($column)
    {
        try {

            self::instance();

            $tableStatic = static::$table;

            foreach ($column as $key => $value) {
                $col[]    = "$key";
                $values[] = ":$key";
            }

            $columns = implode(', ', $col);
            
            $values  = implode(', ', $values);
            
            $stmt    = self::$db->prepare("insert into {$tableStatic} ({$columns}) values ({$values})");

            foreach ($column as $key => $value) {
                $stmt->bindValue(":$key", $value);
            }

            $stmt->execute();

            if ($stmt->rowCount() == 1) {
                return true;
            }

        } catch (PDOException $e) {

            $error = new Error();
            $error->errorMessage("Error: não foi possível inserir o dado. Verifique se os dados corretos. ".$e->getMessage());

        }
    }
284381
public function addColumns($cols) {
        if (sizeof($cols) > 0) {
            foreach($cols as $col) {
                if (sizeof($col) == 3) {
                    $this->addColumn($col[0], $col[1], $col[2]);
                } else if (sizeof($col) == 2) {
                    $this->addColumn($col[0], $col[1]);

                }
            }
        }
    }