当前位置: 首页>>代码示例>>PHP>>正文


PHP assQuestion::_needsManualScoring方法代码示例

本文整理汇总了PHP中assQuestion::_needsManualScoring方法的典型用法代码示例。如果您正苦于以下问题:PHP assQuestion::_needsManualScoring方法的具体用法?PHP assQuestion::_needsManualScoring怎么用?PHP assQuestion::_needsManualScoring使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在assQuestion的用法示例。


在下文中一共展示了assQuestion::_needsManualScoring方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: insertQuestionsCmd

 private function insertQuestionsCmd()
 {
     $selected_array = is_array($_POST['q_id']) ? $_POST['q_id'] : array();
     if (!count($selected_array)) {
         ilUtil::sendInfo($this->lng->txt("tst_insert_missing_question"), true);
         $this->ctrl->redirect($this, self::CMD_BROWSE_QUESTIONS);
     }
     include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
     $testQuestionSetConfig = $this->buildTestQuestionSetConfig();
     $manscoring = FALSE;
     foreach ($selected_array as $key => $value) {
         $last_question_id = $this->testOBJ->insertQuestion($testQuestionSetConfig, $value);
         if (!$manscoring) {
             $manscoring = $manscoring | assQuestion::_needsManualScoring($value);
         }
     }
     $this->testOBJ->saveCompleteStatus($testQuestionSetConfig);
     if ($manscoring) {
         ilUtil::sendInfo($this->lng->txt("manscoring_hint"), TRUE);
     } else {
         ilUtil::sendSuccess($this->lng->txt("tst_questions_inserted"), TRUE);
     }
     //$this->ctrl->setParameter($this, 'q_id', $last_question_id); // for page view ?
     $this->ctrl->redirectByClass($this->getBackTargetCmdClass(), $this->getBackTargetCommand());
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:25,代码来源:class.ilTestQuestionBrowserTableGUI.php

示例2: insertQuestions

 function insertQuestions()
 {
     $selected_array = is_array($_POST['q_id']) ? $_POST['q_id'] : array();
     if (!count($selected_array)) {
         ilUtil::sendInfo($this->lng->txt("tst_insert_missing_question"), true);
         $this->ctrl->redirect($this, "browseForQuestions");
     } else {
         include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
         $manscoring = FALSE;
         global $tree, $ilDB, $ilPluginAdmin;
         require_once 'Modules/Test/classes/class.ilTestQuestionSetConfigFactory.php';
         $testQuestionSetConfigFactory = new ilTestQuestionSetConfigFactory($tree, $ilDB, $ilPluginAdmin, $this->test_object);
         $testQuestionSetConfig = $testQuestionSetConfigFactory->getQuestionSetConfig();
         foreach ($selected_array as $key => $value) {
             $last_question_id = $this->test_object->insertQuestion($testQuestionSetConfig, $value);
             if (!$manscoring) {
                 $manscoring = $manscoring | assQuestion::_needsManualScoring($value);
             }
         }
         $this->test_object->saveCompleteStatus($testQuestionSetConfig);
         if ($manscoring) {
             ilUtil::sendInfo($this->lng->txt("manscoring_hint"), TRUE);
         } else {
             ilUtil::sendSuccess($this->lng->txt("tst_questions_inserted"), TRUE);
         }
         $this->ctrl->setParameter($this, 'q_id', $last_question_id);
         $this->ctrl->redirect($this, "showPage");
         return;
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:30,代码来源:class.ilTestExpressPageObjectGUI.php

示例3: insertQuestionsObject

 /**
  * Insert questions from the questionbrowser into the test 
  *
  * @access	public
  */
 function insertQuestionsObject()
 {
     $selected_array = is_array($_POST['q_id']) ? $_POST['q_id'] : array();
     if (!count($selected_array)) {
         ilUtil::sendInfo($this->lng->txt("tst_insert_missing_question"), true);
         $this->ctrl->redirect($this, "browseForQuestions");
     } else {
         include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
         $manscoring = FALSE;
         foreach ($selected_array as $key => $value) {
             $this->object->insertQuestion($this->testQuestionSetConfigFactory->getQuestionSetConfig(), $value);
             if (!$manscoring) {
                 $manscoring = $manscoring | assQuestion::_needsManualScoring($value);
             }
         }
         $this->object->saveCompleteStatus($this->testQuestionSetConfigFactory->getQuestionSetConfig());
         if ($manscoring) {
             ilUtil::sendInfo($this->lng->txt("manscoring_hint"), TRUE);
         } else {
             ilUtil::sendSuccess($this->lng->txt("tst_questions_inserted"), TRUE);
         }
         $this->ctrl->redirect($this, "questions");
         return;
     }
 }
开发者ID:JKN-INC,项目名称:SHELBY-ILIAS,代码行数:30,代码来源:class.ilObjTestGUI.php


注:本文中的assQuestion::_needsManualScoring方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。