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


PHP ilSelectInputGUI::render方法代码示例

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


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

示例1: getDeveloperRubricCardFormCommandRow

 private function getDeveloperRubricCardFormCommandRow($form_action)
 {
     global $ilUser;
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     //configure the command row
     $rubric_commandrow_tpl = new ilTemplate('tpl.lp_rubricform_commandrow.html', true, true, 'Services/Tracking');
     $select_prop = new ilSelectInputGUI('Title', 'selected_cmdrubric');
     $options = array('behavior_1' => $this->lng->txt('rubric_option_behavior_1'), 'behavior_2' => $this->lng->txt('rubric_option_behavior_2'), 'behavior_3' => $this->lng->txt('rubric_option_behavior_3'), 'behavior_4' => $this->lng->txt('rubric_option_behavior_4'), 'behavior_5' => $this->lng->txt('rubric_option_behavior_5'), 'add_group' => $this->lng->txt('rubric_option_add_group'), 'del_group' => $this->lng->txt('rubric_option_del_group'), 'add_criteria' => $this->lng->txt('rubric_option_add_criteria'), 'del_criteria' => $this->lng->txt('rubric_option_del_criteria'));
     $select_prop->setOptions($options);
     $rubric_commandrow_tpl->setVariable('RURBRIC_COMMANDROW_SELECT', $select_prop->render());
     $rubric_commandrow_tpl->setVariable('RUBRIC_SAVE', $this->lng->txt('save'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXECUTE', $this->lng->txt('execute'));
     $rubric_commandrow_tpl->setVariable('FORM_ACTION', $form_action);
     $rubric_commandrow_tpl->setVariable('PASSING_GRADE_VALUE', "{$this->passing_grade}");
     if (!is_null($this->rubric_locked)) {
         $rubric_commandrow_tpl->setVariable('RUBRIC_DISABLED', 'disabled');
         $rubric_commandrow_tpl->setVariable('RUBRIC_LOCK', $this->lng->txt('rubric_card_unlock'));
         $tmp_user = ilObjectFactory::getInstanceByObjId($this->rubric_owner, false);
         if ($this->rubric_owner !== $ilUser->getId()) {
             $rubric_commandrow_tpl->setVariable('USER_LOCK', 'disabled');
         }
         ilUtil::sendInfo($this->lng->txt('rubric_locked_info') . ' ' . $tmp_user->getFullName() . ' ' . $this->rubric_locked);
     } else {
         $rubric_commandrow_tpl->setVariable('RUBRIC_LOCK', $this->lng->txt('rubric_card_lock'));
     }
     $rubric_commandrow_tpl->setVariable('EXPORT', $this->lng->txt('rubric_option_export_pdf'));
     return $rubric_commandrow_tpl;
 }
开发者ID:JKN-INC,项目名称:SHELBY-ILIAS,代码行数:28,代码来源:class.ilLPRubricCardGUI.php

示例2: getRubricStudentGradeFormCommandRow

 private function getRubricStudentGradeFormCommandRow($form_action, $user_id)
 {
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     //configure the command row
     $rubric_commandrow_tpl = new ilTemplate('tpl.lp_rubricgrade_student_commandrow.html', true, true, 'Services/Tracking');
     $select_prop = new ilSelectInputGUI('Title', 'grader_history');
     $options = array();
     $last_entry = end($this->user_history);
     foreach ($this->user_history as $k => $user_history) {
         $grade_text = $user_history == $last_entry ? $this->lng->txt('rubric_graded_by') : $this->lng->txt('rubric_regraded_by');
         $options[$user_history['rubric_history_id']] = $user_history['create_date'] . ' ' . $grade_text . ' ' . ilObject::_lookupTitle($user_history['owner']);
     }
     if (!array_key_exists('current', $this->user_history)) {
         $options = array('current' => $this->lng->txt('no_current_rubric_grade')) + $options;
     }
     $select_prop->setValue($this->user_history_id);
     $select_prop->setOptions($options);
     $rubric_commandrow_tpl->setVariable('RUBRIC_COMMANDROW_HISTORY_SELECT', $select_prop->render());
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXPORT_GRADED', $this->lng->txt('rubric_option_export_graded_pdf'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXPORT', $this->lng->txt('rubric_option_export_pdf'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_VIEW_HISTORY', $this->lng->txt('view'));
     $rubric_commandrow_tpl->setVariable('FORM_ACTION', $form_action);
     $rubric_commandrow_tpl->setVariable('USER_ID', $user_id);
     return $rubric_commandrow_tpl;
 }
开发者ID:JKN-INC,项目名称:SHELBY-ILIAS,代码行数:25,代码来源:class.ilLPRubricGradeGUI.php


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