public function define_plugin_structure($connectionpoint) { global $CFG; require_once $CFG->libdir . '/plagiarismlib.php'; //check if enabled at site level and plugin is enabled. $enabledplugins = plagiarism_load_available_plugins(); if (!array_key_exists($this->pluginname, $enabledplugins)) { return; } parent::define_plugin_structure($connectionpoint); }
/** * @param string $plugintype Plugin type (always 'theme') * @param string $pluginname Plugin name (name of theme) * @param backup_optigroup $optigroup Group that will contain this data * @param backup_course_structure_step $step Backup step that this is part of */ public function __construct($plugintype, $pluginname, $optigroup, $step) { parent::__construct($plugintype, $pluginname, $optigroup, $step); $this->coursetheme = backup_plan_dbops::get_theme_from_courseid($this->task->get_courseid()); }