public static function update() { $args = func_get_args(); return call_user_func_array(array(DB::getMDB(), 'update'), $args); }
/** * Memperbarui record tertentu. * * @return boolean */ public function update($id, $data = []) { try { $this->db->update($this->table, $id, $data); return true; } catch (Exception $e) { die($e->getMessage); } }