protected function updateColumn($table, $primary, $column)
    {
        $columns = $this->mergeColumns($primary, $column['name']);
        $where = $column['where'];

        foreach ($this->database->getRows($table, $columns, $where) as $rowNum => $row) {
            $this->database->updateByPrimary(
                $table,
                Helpers::arrayOnly($row, $primary),
                $column['name'],
                $this->calculateNewValue($column['replace'], $rowNum)
            );
        }
    }
protected function updateColumn($table, $primary, $column)
    {
        $columns = $this->mergeColumns($primary, $column['name']);
        $where = $column['where'];

        foreach ($this->database->getRows($table, $columns, $where) as $rowNum => $row) {
            $this->database->updateByPrimary(
                $table,
                Helpers::arrayOnly($row, $primary),
                $column['name'],
                $this->calculateNewValue($column['replace'], $rowNum)
            );
        }
    }
protected function updateColumn ( $ table , $ primary , $ column ) { $ columns = $ this -> mergeColumns ( $ primary , $ column [ 'name' ] ) ; $ where = $ column [ 'where' ] ; foreach ( $ this -> database -> getRows ( $ table , $ columns , $ where ) as $ rowNum => $ row ) { $ this -> database -> updateByPrimary ( $ table , Helpers :: arrayOnly ( $ row , $ primary ) , $ column [ 'name' ] , $ this -> calculateNewValue ( $ column [ 'replace' ] , $ rowNum ) ) ; } }
Update all needed values of a give column.

@param string $table
@param array  $primary
@param array  $column
Update all needed values of a give column .