Exemplo n.º 1
0
 protected function getParticipantsAnswerKeySequence()
 {
     if (!$this->object->isShuffleAnswersEnabled()) {
         return array_keys($this->object->getAnswers());
     }
     if (strcmp($_GET["activecommand"], "directfeedback") == 0) {
         if (is_array($_SESSION["choicekeys"])) {
             $this->choiceKeys = $_SESSION["choicekeys"];
         }
     }
     if (!is_array($this->choiceKeys)) {
         $this->choiceKeys = array_keys($this->object->getAnswers());
         if ($this->object->getShuffle()) {
             $this->choiceKeys = $this->object->pcArrayShuffle($this->choiceKeys);
         }
     }
     $_SESSION["choicekeys"] = $this->choiceKeys;
     return $this->choiceKeys;
 }