public function alter($table, $pkField, $pkValue, $data)
	{
		// Add insert statement
		$this->update($table)
		     ->set($data);

		// Where primary key is...
		$this->whereEquals($pkField, $pkValue);

		// Return the result of the query
		return $this->execute();
	}
public function alter($table, $pkField, $pkValue, $data)
	{
		// Add insert statement
		$this->update($table)
		     ->set($data);

		// Where primary key is...
		$this->whereEquals($pkField, $pkValue);

		// Return the result of the query
		return $this->execute();
	}
public function alter ( $ table , $ pkField , $ pkValue , $ data ) { // Add insert statement $ this -> update ( $ table ) -> set ( $ data ) ; // Where primary key is... $ this -> whereEquals ( $ pkField , $ pkValue ) ; // Return the result of the query return $ this -> execute ( ) ; }
Updates an existing item in the database using the provided data

@param   string  $table    The table to update
@param   string  $pkField  The table field serving as primary key
@param   mixed   $pkValue  The primary key value
@param   array   $data     The data to update in the database
@return  bool
@since   2.0.0
Updates an existing item in the database using the provided data