/** * Update UserDBO * * @param UserDBO &$dbo UserDBO to update * @return boolean True on success */ function update_UserDBO(UserDBO $dbo) { $DB = DBConnection::getDBConnection(); // Build UPDATE query $sql = $DB->build_update_sql("user", "username = "******"password" => $dbo->getPassword(), "contactname" => $dbo->getContactName(), "email" => $dbo->getEmail(), "type" => $dbo->getType(), "language" => $dbo->getLanguage(), "theme" => $dbo->getTheme())); // Run query if (!mysql_query($sql, $DB->handle())) { throw new DBException(mysql_error($DB->handle())); } }