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


PHP workshop::available_evaluators_list方法代码示例

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


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

示例1: print_collapsible_region_end

             }
         }
         print_collapsible_region_end();
     }
     break;
 case workshop::PHASE_EVALUATION:
     if (has_capability('mod/workshop:viewallassessments', $PAGE->context)) {
         $perpage = get_user_preferences('workshop_perpage', 10);
         $groupid = groups_get_activity_group($workshop->cm, true);
         $data = $workshop->prepare_grading_report_data($USER->id, $groupid, $page, $perpage, $sortby, $sorthow);
         if ($data) {
             $showauthornames = has_capability('mod/workshop:viewauthornames', $workshop->context);
             $showreviewernames = has_capability('mod/workshop:viewreviewernames', $workshop->context);
             if (has_capability('mod/workshop:overridegrades', $PAGE->context)) {
                 // Print a drop-down selector to change the current evaluation method.
                 $selector = new single_select($PAGE->url, 'eval', workshop::available_evaluators_list(), $workshop->evaluation, false, 'evaluationmethodchooser');
                 $selector->set_label(get_string('evaluationmethod', 'mod_workshop'));
                 $selector->set_help_icon('evaluationmethod', 'mod_workshop');
                 $selector->method = 'post';
                 echo $output->render($selector);
                 // load the grading evaluator
                 $evaluator = $workshop->grading_evaluation_instance();
                 $form = $evaluator->get_settings_form(new moodle_url($workshop->aggregate_url(), compact('sortby', 'sorthow', 'page')));
                 $form->display();
             }
             // prepare paging bar
             $baseurl = new moodle_url($PAGE->url, array('sortby' => $sortby, 'sorthow' => $sorthow));
             $pagingbar = new paging_bar($data->totalcount, $page, $perpage, $baseurl, 'page');
             // grading report display options
             $reportopts = new stdclass();
             $reportopts->showauthornames = $showauthornames;
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:31,代码来源:view.php

示例2: print_collapsible_region_end

        }
        print_collapsible_region_end();
    }
    break;
case workshop::PHASE_EVALUATION:
    if (has_capability('mod/workshop:viewallassessments', $PAGE->context)) {
        $perpage = get_user_preferences('workshop_perpage', 10);
        $groupid = groups_get_activity_group($workshop->cm, true);
        $data = $workshop->prepare_grading_report_data($USER->id, $groupid, $page, $perpage, $sortby, $sorthow);
        if ($data) {
            $showauthornames    = has_capability('mod/workshop:viewauthornames', $workshop->context);
            $showreviewernames  = has_capability('mod/workshop:viewreviewernames', $workshop->context);

            if (has_capability('mod/workshop:overridegrades', $PAGE->context)) {
                // Print a drop-down selector to change the current evaluation method.
                $selector = new single_select($PAGE->url, 'eval', workshop::available_evaluators_list(),
                    $workshop->evaluation, false, 'evaluationmethodchooser');
                $selector->set_label(get_string('evaluationmethod', 'mod_workshop'));
                $selector->set_help_icon('evaluationmethod', 'mod_workshop');
                $selector->method = 'post';
                echo $output->render($selector);
                // load the grading evaluator
                $evaluator = $workshop->grading_evaluation_instance();
                $form = $evaluator->get_settings_form(new moodle_url($workshop->aggregate_url(),
                        compact('sortby', 'sorthow', 'page')));
                $form->display();
            }

            // prepare paging bar
            $baseurl = new moodle_url($PAGE->url, array('sortby' => $sortby, 'sorthow' => $sorthow));
            $pagingbar = new paging_bar($data->totalcount, $page, $perpage, $baseurl, 'page');
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:view.php


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