Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)

This commit is contained in:
2026-09-01 23:24:11 +03:30
parent 555cd725f7
commit d987994ded
77 changed files with 1497 additions and 1322 deletions
+9 -9
View File
@@ -17,7 +17,7 @@
/**
* List all MeetLet instances in a course.
*
* @package mod_meetletacbmarketplace
* @package mod_meetletacbfree
* @copyright 2026 MeetLet
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@@ -27,25 +27,25 @@ require_once('../../config.php');
$id = required_param('id', PARAM_INT);
$course = $DB->get_record('course', ['id' => $id], '*', MUST_EXIST);
require_course_login($course);
\mod_meetletacbmarketplace\registration\manager::require_registered();
$PAGE->set_url('/mod/meetletacbmarketplace/index.php', ['id' => $id]);
$PAGE->set_title(get_string('modulenameplural', 'meetletacbmarketplace'));
\mod_meetletacbfree\registration\manager::require_registered();
$PAGE->set_url('/mod/meetletacbfree/index.php', ['id' => $id]);
$PAGE->set_title(get_string('modulenameplural', 'meetletacbfree'));
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('modulenameplural', 'meetletacbmarketplace'));
echo $OUTPUT->heading(get_string('modulenameplural', 'meetletacbfree'));
if (!$instances = get_all_instances_in_course('meetletacbmarketplace', $course)) {
notice(get_string('thereareno', 'moodle', get_string('modulenameplural', 'meetletacbmarketplace')),
if (!$instances = get_all_instances_in_course('meetletacbfree', $course)) {
notice(get_string('thereareno', 'moodle', get_string('modulenameplural', 'meetletacbfree')),
new moodle_url('/course/view.php', ['id' => $course->id]));
echo $OUTPUT->footer();
die();
}
$table = new html_table();
$table->head = [get_string('meetingname', 'meetletacbmarketplace'), get_string('starttime', 'meetletacbmarketplace')];
$table->head = [get_string('meetingname', 'meetletacbfree'), get_string('starttime', 'meetletacbfree')];
foreach ($instances as $instance) {
$url = new moodle_url('/mod/meetletacbmarketplace/view.php', ['id' => $instance->coursemodule]);
$url = new moodle_url('/mod/meetletacbfree/view.php', ['id' => $instance->coursemodule]);
$table->data[] = [
html_writer::link($url, format_string($instance->name)),
$instance->starttime ? userdate($instance->starttime) : '-',