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


PHP ilObjTest::isShowGradingStatusEnabled方法代码示例

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


在下文中一共展示了ilObjTest::isShowGradingStatusEnabled方法的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::isShowGradingStatusEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。