public function get_original_slot($slot) {
        $originalslot = $this->quba->get_question_attempt_metadata($slot, 'originalslot');
        if ($originalslot) {
            return $originalslot;
        } else {
            return $slot;
        }
    }
public function get_original_slot($slot) {
        $originalslot = $this->quba->get_question_attempt_metadata($slot, 'originalslot');
        if ($originalslot) {
            return $originalslot;
        } else {
            return $slot;
        }
    }
public function get_original_slot ( $ slot ) { $ originalslot = $ this -> quba -> get_question_attempt_metadata ( $ slot , 'originalslot' ) ; if ( $ originalslot ) { return $ originalslot ; } else { return $ slot ; } }
Given a slot in this attempt, which may or not be a redone question, return the original slot.

@param int $slot identifies a particular question in this attempt.
@return int the slot where this question was originally.
Given a slot in this attempt which may or not be a redone question return the original slot .