當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。