本文整理匯總了PHP中wiki_print_editor_wiki函數的典型用法代碼示例。如果您正苦於以下問題:PHP wiki_print_editor_wiki函數的具體用法?PHP wiki_print_editor_wiki怎麽用?PHP wiki_print_editor_wiki使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了wiki_print_editor_wiki函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: edit_comment_form
private function edit_comment_form($com) {
global $CFG;
require_once($CFG->dirroot . '/mod/wiki/comments_form.php');
require_once($CFG->dirroot . '/mod/wiki/editors/wiki_editor.php');
if ($this->format == 'html') {
$com->action = 'edit';
$com->entrycomment_editor['text'] = $com->content;
$com->commentoptions = array('trusttext' => true, 'maxfiles' => 0);
$this->form->set_data($com);
$this->form->display();
} else {
wiki_print_editor_wiki($this->page->id, $com->content, $this->format, -1, null, false, array(), 'editcomments', $com->id);
}
}
示例2: edit_comment_form
private function edit_comment_form($com)
{
global $CFG;
require_once $CFG->dirroot . '/mod/wiki/comments_form.php';
require_once $CFG->dirroot . '/mod/wiki/editors/wiki_editor.php';
if ($this->format == 'html') {
$commentoptions = array('trusttext' => true, 'maxfiles' => 0);
$com->action = 'edit';
$com->entrycomment_editor['text'] = $com->content;
$this->form->set_data($com, $commentoptions);
$this->form->display();
} else {
$action = 'edit';
$commentid = $com->id;
$pageid = $this->page->id;
$destination = $CFG->wwwroot . '/mod/wiki/instancecomments.php?pageid=' . $pageid . '&id=' . $commentid . '&action=' . $action;
wiki_print_editor_wiki($this->page->id, $com->content, $this->format, -1, null, false, array(), 'editcomments', $commentid);
}
}