Browse: Home /

includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_QuestionOrder.php

WpProQuiz_Helper_QuestionOrder::question_key()

Method: Returns the de-duplication key for a question, namespaced by ID space so a question’s post ID and another question’s pro ID (legacy data path, post ID 0) can never collide.

WpProQuiz_Helper_QuestionOrder::question_key Read More »

WpProQuiz_Helper_QuestionOrder::order_by_saved_pro_ids()

Method: Reorders a set of questions to match a saved list of question pro IDs (the resume “randomOrder”), skipping any saved ID that no longer resolves to a question in the set.

WpProQuiz_Helper_QuestionOrder::order_by_saved_pro_ids Read More »

WpProQuiz_Helper_QuestionOrder::get_resume_question_set()

Method: Builds the question set to resume an attempt with: the saved order restored, then topped up to the target count with other valid questions.

WpProQuiz_Helper_QuestionOrder::get_resume_question_set Read More »