See Release Notes
Long Term Support Release
Defines backup_theme_plugin class
Copyright: | 2011 onwards The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 81 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
backup_theme_plugin:: (2 methods):
__construct()
get_theme_condition()
Class: backup_theme_plugin - X-Ref
Base class for theme backup plugins.__construct($plugintype, $pluginname, $optigroup, $step) X-Ref |
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 |
get_theme_condition() X-Ref |
Return condition for whether this theme should be backed up (= if it is the same theme as the one used in this course). This condition has the theme used in the course. It will be compared against the name of the theme, by use of third parameter in get_plugin_element; in subclass, you should do: $plugin = $this->get_plugin_element(null, $this->get_theme_condition(), 'mytheme'); |