當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilObjTest::isShowGradingMarkEnabled方法代碼示例

本文整理匯總了PHP中ilObjTest::isShowGradingMarkEnabled方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjTest::isShowGradingMarkEnabled方法的具體用法?PHP ilObjTest::isShowGradingMarkEnabled怎麽用?PHP ilObjTest::isShowGradingMarkEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ilObjTest的用法示例。


在下文中一共展示了ilObjTest::isShowGradingMarkEnabled方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: build

 public function build()
 {
     $this->initTemplate();
     $this->loadResultData();
     if ($this->testOBJ->isShowGradingStatusEnabled()) {
         $this->populateGradingStatus();
     }
     if ($this->testOBJ->areObligationsEnabled()) {
         $this->populateObligationsStatus();
     }
     if ($this->testOBJ->isShowGradingMarkEnabled()) {
         $this->populateGradingMark();
     }
     if ($this->testOBJ->getECTSOutput()) {
         $this->populateEctsGrade();
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:17,代碼來源:class.ilTestGradingMessageBuilder.php

示例2: isGradingMessageRequired

 protected function isGradingMessageRequired()
 {
     if ($this->object->isShowGradingStatusEnabled()) {
         return true;
     }
     if ($this->object->isShowGradingMarkEnabled()) {
         return true;
     }
     if ($this->object->areObligationsEnabled()) {
         return true;
     }
     return false;
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:13,代碼來源:class.ilTestServiceGUI.php

示例3: addResultSettingsFormSection

 private function addResultSettingsFormSection(ilPropertyFormGUI $form)
 {
     // HEADER: result settings
     $header_tr = new ilFormSectionHeaderGUI();
     $header_tr->setTitle($this->lng->txt('test_results'));
     $form->addItem($header_tr);
     // access to test results
     $resultsAccessEnabled = new ilCheckboxInputGUI($this->lng->txt('tst_results_access_enabled'), 'results_access_enabled');
     $resultsAccessEnabled->setInfo($this->lng->txt('tst_results_access_enabled_desc'));
     $resultsAccessEnabled->setChecked($this->testOBJ->isScoreReportingEnabled());
     $resultsAccessSetting = new ilRadioGroupInputGUI($this->lng->txt('tst_results_access_setting'), 'results_access_setting');
     $resultsAccessSetting->setRequired(true);
     $optAlways = new ilRadioOption($this->lng->txt('tst_results_access_always'), 2, '');
     $optAlways->setInfo($this->lng->txt('tst_results_access_always_desc'));
     $resultsAccessSetting->addOption($optAlways);
     $optFinished = $opt = new ilRadioOption($this->lng->txt('tst_results_access_finished'), 1, '');
     $optFinished->setInfo($this->lng->txt('tst_results_access_finished_desc'));
     $resultsAccessSetting->addOption($optFinished);
     $optionDate = new ilRadioOption($this->lng->txt('tst_results_access_date'), 3, '');
     $optionDate->setInfo($this->lng->txt('tst_results_access_date_desc'));
     // access date
     $reportingDate = new ilDateTimeInputGUI($this->lng->txt('tst_reporting_date'), 'reporting_date');
     $reportingDate->setShowTime(true);
     if (strlen($this->testOBJ->getReportingDate())) {
         $reportingDate->setDate(new ilDateTime($this->testOBJ->getReportingDate(), IL_CAL_TIMESTAMP));
     } else {
         $reportingDate->setDate(new ilDateTime(time(), IL_CAL_UNIX));
     }
     $optionDate->addSubItem($reportingDate);
     $resultsAccessSetting->addOption($optionDate);
     $resultsAccessValue = $this->testOBJ->getScoreReporting();
     $resultsAccessSetting->setValue($resultsAccessValue > 0 && $resultsAccessValue < 4 ? $resultsAccessValue : 2);
     $resultsAccessEnabled->addSubItem($resultsAccessSetting);
     // show pass details
     $showPassDetails = new ilCheckboxInputGUI($this->lng->txt('tst_show_pass_details'), 'pass_details');
     $showPassDetails->setInfo($this->lng->txt('tst_show_pass_details_desc'));
     $showPassDetails->setChecked($this->testOBJ->getShowPassDetails());
     $resultsAccessEnabled->addSubItem($showPassDetails);
     $form->addItem($resultsAccessEnabled);
     // grading
     $chb_only_passed_failed = new ilCheckboxInputGUI($this->lng->txt('tst_results_grading_opt_show_status'), 'grading_status');
     $chb_only_passed_failed->setInfo($this->lng->txt('tst_results_grading_opt_show_status_desc'));
     $chb_only_passed_failed->setValue(1);
     $chb_only_passed_failed->setChecked($this->testOBJ->isShowGradingStatusEnabled());
     $form->addItem($chb_only_passed_failed);
     $chb_resulting_mark_only = new ilCheckboxInputGUI($this->lng->txt('tst_results_grading_opt_show_mark'), 'grading_mark');
     $chb_resulting_mark_only->setInfo($this->lng->txt('tst_results_grading_opt_show_mark_desc'));
     $chb_resulting_mark_only->setValue(1);
     $chb_resulting_mark_only->setChecked($this->testOBJ->isShowGradingMarkEnabled());
     $form->addItem($chb_resulting_mark_only);
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:51,代碼來源:class.ilObjTestSettingsScoringResultsGUI.php

示例4: isGradingMessageRequired

 protected function isGradingMessageRequired()
 {
     if ($this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
         return false;
     }
     if ($this->object->isShowGradingStatusEnabled()) {
         return true;
     }
     if ($this->object->isShowGradingMarkEnabled()) {
         return true;
     }
     if ($this->object->areObligationsEnabled()) {
         return true;
     }
     return false;
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:16,代碼來源:class.ilTestServiceGUI.php


注:本文中的ilObjTest::isShowGradingMarkEnabled方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。