本文整理汇总了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'));
示例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;
}
示例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;
}
示例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);
}
示例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;
}