mudrd8mz / moodle-tool_pluginskel

Generator of Moodle plugins skeletons
https://moodle.org/plugins/tool_pluginskel
Other
51 stars 46 forks source link

Backup_moodle2 feature #27

Closed alexandru-elisei closed 8 years ago

alexandru-elisei commented 8 years ago

Given the recipe:

...
backup_moodle2:
    settingslib: true
    backup_elements:
        - root
    restore_elements:
        - name: root
          path: /path/to/file

The backup/moodle2/backup_settingslib.php, backup/moodle2/backup_activitytask.class.php, backup/moodle2/backup_stepslib.php, backup/moodle2/restore_activity_task.class.php, backup/moodle2/restore_stepslib.php files will be created.

alexandru-elisei commented 8 years ago

I have a few questions about the backup feature:

1. Can every plugin type make a backup or only the mod plugins? I have only found examples for activity modules plugins. According to the Backup API there are other plugin types that can make backups.

2. Are the file names and class names using component_name or component? Because with activity modules they are the same (component isn't using the frankenstyle prefix). I've read the documentation again, it seems they are using the component name without the frankenstyle prefix.

  1. Are the templates too detailed?
mudrd8mz commented 8 years ago

Please rebase

alexandru-elisei commented 8 years ago

This is not done, I'm working on it as part of the activity modules plugin type.

I'm closing the pull request and reopening it when it is in a finished state.