public static function getReturnToPageLink($q_id = null)
 {
     $params = array();
     $q_id = $q_id ? $q_id : $_REQUEST['q_id'];
     $params['baseClass'] = 'ilObjTestGUI';
     if ($_REQUEST['calling_test']) {
         $params['ref_id'] = $_REQUEST['calling_test'];
     } else {
         if ($_REQUEST['test_ref_id']) {
             $params['ref_id'] = $_REQUEST['test_ref_id'];
         } else {
             $params['ref_id'] = $_REQUEST['ref_id'];
         }
     }
     $params['test_express_mode'] = 1;
     #$nodeParts = explode(':', $_REQUEST['cmdNode']);
     if ($_REQUEST['q_id']) {
         $params['cmd'] = 'edit';
         $params['q_id'] = $q_id ? $q_id : (isset($_REQUEST['prev_qid']) ? $_REQUEST['prev_qid'] : $_REQUEST['q_id']);
         $params['cmdClass'] = 'iltestexpresspageobjectgui';
         $params['cmdNode'] = ilTestExpressPage::getNodeId('ilobjtestgui') . ':' . ilTestExpressPage::getNodeId('iltestexpresspageobjectgui');
         #ref_id=44&cmd=post&cmdClass=iltestexpresspageobjectgui&cmdNode=6o:61&baseClass=ilObjTestGUI
     } else {
         $params['cmd'] = 'showQuestionsPerPage';
         $params['cmdNode'] = ilTestExpressPage::getNodeId('ilobjtestgui');
     }
     return 'ilias.php?' . http_build_query($params);
 }
 private function redirectToQuestionEditPage($questionType, $qid, $prev_qid)
 {
     include_once 'Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php';
     $ref_id = $_GET['ref_id'];
     $sel_question_types = $questionType;
     $cmd = 'editQuestion';
     $cmdClass = strtolower($questionType);
     $cmdNode = $_GET['cmdNode'];
     $baseClass = 'ilObjTestGUI';
     $node = ilTestExpressPage::getNodeId(strtolower($questionType) . 'gui');
     $cmdNodes = explode(':', $_GET['cmdNode']);
     $firstNode = $cmdNodes[0];
     $linkParams = array('ref_id' => $_GET['ref_id'], 'sel_question_types' => $questionType, 'cmd' => 'editQuestion', 'cmdClass' => strtolower($questionType) . 'gui', 'cmdNode' => $firstNode . ':' . $node, 'baseClass' => 'ilObjTestGUI', 'test_ref_id' => $_GET['ref_id'], 'calling_test' => $_GET['ref_id'], 'q_id' => $qid, 'prev_qid' => $prev_qid);
     if ($_REQUEST['test_express_mode']) {
         $linkParams['test_express_mode'] = 1;
     }
     ilUtil::redirect('ilias.php?' . http_build_query($linkParams, 'null', '&'));
 }