Initial commit: MeetLet Adobe Connect Bridge Marketplace edition (Moodle plugin).
Single-plugin source tree for mod_meetletacbmarketplace — admin, licensing, and marketplace integration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->dirroot . '/mod/meetletacbmarketplace/backup/moodle2/backup_meetletacbmarketplace_stepslib.php');
|
||||
|
||||
/**
|
||||
* Backup task.
|
||||
*
|
||||
* @package mod_meetletacbmarketplace
|
||||
* @copyright 2026 MeetLet
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class backup_meetletacbmarketplace_activity_task extends backup_activity_task {
|
||||
protected function define_my_settings() {
|
||||
}
|
||||
|
||||
protected function define_my_steps() {
|
||||
$this->add_step(new backup_meetletacbmarketplace_activity_structure_step(
|
||||
'meetletacbmarketplace_structure',
|
||||
'meetletacbmarketplace.xml'
|
||||
));
|
||||
}
|
||||
|
||||
public static function encode_content_links($content) {
|
||||
global $CFG;
|
||||
$base = preg_quote($CFG->wwwroot, '/');
|
||||
$content = preg_replace("/($base\/mod\/meetletacbmarketplace\/index.php\?id=)([0-9]+)/",
|
||||
'$@MEETLETACBINDEX*$2@$', $content);
|
||||
$content = preg_replace("/($base\/mod\/meetletacbmarketplace\/view.php\?id=)([0-9]+)/",
|
||||
'$@MEETLETACBVIEWBYID*$2@$', $content);
|
||||
$content = preg_replace("/($base\/mod\/meetletadobeconnectbridge\/index.php\?id=)([0-9]+)/",
|
||||
'$@MEETLETACBINDEX*$2@$', $content);
|
||||
$content = preg_replace("/($base\/mod\/meetletadobeconnectbridge\/view.php\?id=)([0-9]+)/",
|
||||
'$@MEETLETACBVIEWBYID*$2@$', $content);
|
||||
// Legacy plugin path (pre-rename).
|
||||
$content = preg_replace("/($base\/mod\/meetlet\/index.php\?id=)([0-9]+)/", '$@MEETLETACBINDEX*$2@$', $content);
|
||||
$content = preg_replace("/($base\/mod\/meetlet\/view.php\?id=)([0-9]+)/", '$@MEETLETACBVIEWBYID*$2@$', $content);
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user