X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/wiki
home
/
cbholdings
/
pasukulu
/
mod
/
wiki
/
📁
..
📄
README
(138 B)
📄
admin.php
(4.36 KB)
📁
backup
📁
classes
📄
comments.php
(2.59 KB)
📄
comments_form.php
(1.44 KB)
📄
create.php
(4.12 KB)
📄
create_form.php
(3.68 KB)
📁
db
📁
diff
📄
diff.php
(2.97 KB)
📄
edit.php
(4.25 KB)
📄
edit_form.php
(5.22 KB)
📄
editcomments.php
(2.46 KB)
📁
editors
📄
files.php
(3.74 KB)
📄
filesedit.php
(3.84 KB)
📄
filesedit_form.php
(1.67 KB)
📄
history.php
(2.78 KB)
📄
index.php
(3.06 KB)
📄
instancecomments.php
(3.61 KB)
📁
lang
📄
lib.php
(28.84 KB)
📄
locallib.php
(60.88 KB)
📄
lock.php
(2.54 KB)
📄
map.php
(2.75 KB)
📄
mod_form.php
(4.29 KB)
📄
module.js
(4.25 KB)
📄
overridelocks.php
(2.56 KB)
📄
pagelib.php
(98.23 KB)
📁
parser
📁
pix
📄
prettyview.php
(2.37 KB)
📄
renderer.php
(26.17 KB)
📄
restoreversion.php
(2.59 KB)
📄
search.php
(2.95 KB)
📄
styles.css
(5.48 KB)
📁
templates
📁
tests
📄
upgrade.txt
(1012 B)
📄
version.php
(1.44 KB)
📄
view.php
(10.15 KB)
📄
viewversion.php
(2.75 KB)
Editing: comments_form.php
<?php if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } require_once($CFG->dirroot . '/lib/formslib.php'); class mod_wiki_comments_form extends moodleform { protected function definition() { $mform = $this->_form; $current = $this->_customdata['current'] ?? null; $commentoptions = $this->_customdata['commentoptions'] ?? null; // visible elements $mform->addElement('editor', 'entrycomment_editor', get_string('comment', 'glossary'), null, $commentoptions); $mform->addRule('entrycomment_editor', get_string('required'), 'required', null, 'client'); $mform->setType('entrycomment_editor', PARAM_RAW); // processed by trust text or cleaned before the display // hidden optional params $mform->addElement('hidden', 'id', ''); $mform->setType('id', PARAM_INT); $mform->addElement('hidden', 'action', ''); $mform->setType('action', PARAM_ALPHAEXT); //------------------------------------------------------------------------------- // buttons $this->add_action_buttons(true); //------------------------------------------------------------------------------- $this->set_data($current); } public function edit_definition($current, $commentoptions) { $this->set_data($current); $this->set_data($commentoptions); } }
Upload File
Create Folder