Database/Database.php
public function update($id, $data, $table='') {
		$table = (!empty($this->table))?$this->table:$table;
		
		return $this->db->update($table, $id, $data);
	}
public function update($id, $data, $table='') {
		$table = (!empty($this->table))?$this->table:$table;
		
		return $this->db->update($table, $id, $data);
	}
update
@param array $id primary key
@param array $data
@param string $table
@return res