You are here

private function MultichoiceQuestion::saveUserSettings in Quiz 6.4

Same name and namespace in other branches
  1. 7.6 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::saveUserSettings()
  2. 7 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::saveUserSettings()
  3. 7.4 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::saveUserSettings()
  4. 7.5 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::saveUserSettings()

Fetches the users default settings from the creation form

1 call to MultichoiceQuestion::saveUserSettings()
MultichoiceQuestion::saveNodeProperties in question_types/multichoice/multichoice.classes.inc
Implementation of save

File

question_types/multichoice/multichoice.classes.inc, line 660
The main classes for the multichoice question type.

Class

MultichoiceQuestion
Extension of QuizQuestion.

Code

private function saveUserSettings() {
  global $user;
  $sql = 'REPLACE INTO {quiz_multichoice_user_settings}
            (uid, choice_random, choice_multi, choice_boolean)
            VALUES (%d, %d, %d, %d)';
  db_query($sql, $user->uid, $this->node->choice_random, $this->node->choice_multi, $this->node->choice_boolean);
}