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


PHP plagiarism_print_disclosure函数代码示例

本文整理汇总了PHP中plagiarism_print_disclosure函数的典型用法代码示例。如果您正苦于以下问题:PHP plagiarism_print_disclosure函数的具体用法?PHP plagiarism_print_disclosure怎么用?PHP plagiarism_print_disclosure使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: file_rewrite_pluginfile_urls

$output = $PAGE->get_renderer('mod_workshop');
echo $output->header();
echo $output->heading(format_string($workshop->name), 2);
// show instructions for submitting as thay may contain some list of questions and we need to know them
// while reading the submitted answer
if (trim($workshop->instructauthors)) {
    $instructions = file_rewrite_pluginfile_urls($workshop->instructauthors, 'pluginfile.php', $PAGE->context->id, 'mod_workshop', 'instructauthors', 0, workshop::instruction_editors_options($PAGE->context));
    print_collapsible_region_start('', 'workshop-viewlet-instructauthors', get_string('instructauthors', 'workshop'));
    echo $output->box(format_text($instructions, $workshop->instructauthorsformat, array('overflowdiv' => true)), array('generalbox', 'instructions'));
    print_collapsible_region_end();
}
// if in edit mode, display the form to edit the submission
if ($edit) {
    if (!empty($CFG->enableplagiarism)) {
        require_once $CFG->libdir . '/plagiarismlib.php';
        echo plagiarism_print_disclosure($cm->id);
    }
    $mform->display();
    echo $output->footer();
    die;
}
// else display the submission
if ($submission->id) {
    if ($seenaspublished) {
        $showauthor = has_capability('mod/workshop:viewauthorpublished', $workshop->context);
    } else {
        $showauthor = has_capability('mod/workshop:viewauthornames', $workshop->context);
    }
    echo $output->render($workshop->prepare_submission($submission, $showauthor));
} else {
    echo $output->box(get_string('noyoursubmission', 'workshop'));
开发者ID:alanaipe2015,项目名称:moodle,代码行数:31,代码来源:submission.php

示例2: plagiarism_print_disclosure

 /**
  * Capture the output of the plagiarism plugins disclosures and return it as a string.
  *
  * @return void
  */
 protected function plagiarism_print_disclosure()
 {
     global $CFG;
     $o = '';
     if (!empty($CFG->enableplagiarism)) {
         require_once $CFG->libdir . '/plagiarismlib.php';
         $o .= plagiarism_print_disclosure($this->get_course_module()->id);
     }
     return $o;
 }
开发者ID:covex-nn,项目名称:moodle,代码行数:15,代码来源:locallib.php

示例3: plagiarism_print_disclosure

    /**
     * Capture the output of the plagiarism plugins disclosures and return it as a string
     *
     * @return void
     */
    private function plagiarism_print_disclosure() {
        global $CFG;
        $o = '';

        if (!empty($CFG->enableplagiarism)) {
            /** Include plagiarismlib.php */
            require_once($CFG->libdir . '/plagiarismlib.php');

            $o .= plagiarism_print_disclosure($this->get_course_module()->id);
        }

        return $o;
    }
开发者ID:netspotau,项目名称:moodle-mod_assign,代码行数:18,代码来源:locallib.php

示例4: view_intro

 /**
  * Display the assignment intro
  *
  * This will most likely be extended by assignment type plug-ins
  * The default implementation prints the assignment description in a box
  */
 function view_intro() {
     global $OUTPUT;
     echo $OUTPUT->box_start('generalbox boxaligncenter', 'intro');
     echo format_module_intro('assignment', $this->assignment, $this->cm->id);
     echo $OUTPUT->box_end();
     plagiarism_print_disclosure($this->cm->id);
 }
开发者ID:nuckey,项目名称:moodle,代码行数:13,代码来源:lib.php

示例5: plagiarism_print_disclosure

 /**
  * Capture the output of the plagiarism plugins disclosures and return it as a string
  *
  * @return void
  */
 private function plagiarism_print_disclosure()
 {
     global $CFG;
     $o = '';
     if (!empty($CFG->enableplagiarism)) {
         /** Include plagiarismlib.php */
         require_once $CFG->libdir . '/plagiarismlib.php';
         ob_start();
         plagiarism_print_disclosure($this->get_course_module()->id);
         $o = ob_get_contents();
         ob_end_clean();
     }
     return $o;
 }
开发者ID:rama1712,项目名称:moodle,代码行数:19,代码来源:locallib.php


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