public function update($t, $nvp = array()){
		if(is_array($t)){
			$nvp = $t;
		}elseif(is_string($t)){
			$this->table($t);
		}
		$columns = [];
		foreach(array_keys($nvp) as $s){
			$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($s);
			$column['value'] = $nvp[$s];
			array_push($columns, $column);
		}
		$this->_sql = $this->getUpdateStatement($columns);
		return $this;
	}
public function update($t, $nvp = array()){
		if(is_array($t)){
			$nvp = $t;
		}elseif(is_string($t)){
			$this->table($t);
		}
		$columns = [];
		foreach(array_keys($nvp) as $s){
			$column = \Dorsataio\Squibble\Resource\Extract::fromColumn($s);
			$column['value'] = $nvp[$s];
			array_push($columns, $column);
		}
		$this->_sql = $this->getUpdateStatement($columns);
		return $this;
	}
public function update ( $ t , $ nvp = array ( ) ) { if ( is_array ( $ t ) ) { $ nvp = $ t ; } elseif ( is_string ( $ t ) ) { $ this -> table ( $ t ) ; } $ columns = [ ] ; foreach ( array_keys ( $ nvp ) as $ s ) { $ column = \ Dorsataio \ Squibble \ Resource \ Extract :: fromColumn ( $ s ) ; $ column [ 'value' ] = $ nvp [ $ s ] ; array_push ( $ columns , $ column ) ; } $ this -> _sql = $ this -> getUpdateStatement ( $ columns ) ; return $ this ; }
Start a new UPDATE query.

@param array $nvp An NVP array containing columns their value to be updated.

@return object returns the current squibble object.
Start a new UPDATE query .