public function membership_role_edit($membershipRoleID, $data)
{
$values = array();
foreach ($data as $key => $value) {
if ($key == 'name') {
$values[$key] = MySQL::SQLValue($value);
} else {
$values[$key] = MySQL::SQLValue($value, MySQL::SQLVALUE_NUMBER);
}
}
$filter['membershipRoleID'] = MySQL::SQLValue($membershipRoleID, MySQL::SQLVALUE_NUMBER);
$table = $this->kga['server_prefix'] . "membershipRoles";
$query = MySQL::BuildSQLUpdate($table, $values, $filter);
return $this->conn->Query($query);
}