Moodle插件创建
Moodle plugin creation
我是 Moodle 的初学者,我在 python 中编写了一个算法来学习用户配置文件。目的是创建一个插件,根据用户的配置文件在 Moodle 平台中提供自适应功能。但是 Moodle 文档太大,这让我很困惑,我找不到开始创建插件的方法。信息太多,没有适合初学者的好教程。所以我想知道的是:
- 有什么我找不到的好教程吗?
- 我应该如何开始?我绝对使用 git 吗?
- 如何选择合适的插件类型?机器学习后端插件是否可以,因为我的算法属于机器学习领域?
任何答案或信息都会非常有帮助!
好的。让我们看看...
The aim is to create a plugin that provides adaptive functionalities in the Moodle platform based on users' profiles. [...] How should I choose the right plugin type? Is it OK with Machine learning backend plugins, since my algorithm belongs to machine learning area?
Moodle 是高度模块化的,这意味着与机器 learning/data 分析相关的功能可能很适合机器学习后端插件(支持 python 后端),但是对平台可能需要单独的插件,具体取决于 "adaptive functionalities".
的确切特征
如果您需要关于机器学习后端的未记录的额外建议或信息,或者稍后,您可能需要为 "adaptive functionalities" 编写的特定插件,您可以在 Moodle 开发者论坛中提问(https://moodle.org/mod/forum/view.php?id=55) and/or join the Moodle Dev Chat in Telegram and ask around (https://t.me/moodledev)
I can't find a way to start creating the plugin. There's too much information and no good tutorials for beginners. [...] Are there any good tutorials that I can't find?
首先确定这些 "adaptive functionalities" 到底是什么是非常重要的,因为根据它们的不同,您可能需要做一种或另一种插件,并且不同的插件制作略有不同(有时非常非常不同)。这是插件类型列表:https://docs.moodle.org/dev/Plugin_types .
开始任何类型的插件开发的最佳方法是在本地 Moodle 实例中安装插件 https://moodle.org/plugins/tool_pluginskel 并为您的插件生成样板代码,然后从那里开始工作。
关于教程...开发信息的最新来源是文档,但也有一些关于 Moodle 中一般开发的书籍(您可以在 Amazon、Leanpub...中找到它们)。请记住,这些书籍通常不是最新的,因此请将它们的内容与最新发布的 Moodle 版本进行比较,并在购买前考虑您所追求的插件类型。
Do I absolutely use git?
如果您打算将您的代码发布为插件或插件集,那么是的,您需要将其发布在 public 存储库中,然后遵循通常的插件 review/publication 流程。这是有关该过程的文档:https://docs.moodle.org/dev/Plugin_validation and here the doc about setting up the Travis automated validation tests for a plugin (this is easier than it sounds) https://docs.moodle.org/dev/Travis_integration#Moodle_plugins
我是 Moodle 的初学者,我在 python 中编写了一个算法来学习用户配置文件。目的是创建一个插件,根据用户的配置文件在 Moodle 平台中提供自适应功能。但是 Moodle 文档太大,这让我很困惑,我找不到开始创建插件的方法。信息太多,没有适合初学者的好教程。所以我想知道的是:
- 有什么我找不到的好教程吗?
- 我应该如何开始?我绝对使用 git 吗?
- 如何选择合适的插件类型?机器学习后端插件是否可以,因为我的算法属于机器学习领域?
任何答案或信息都会非常有帮助!
好的。让我们看看...
The aim is to create a plugin that provides adaptive functionalities in the Moodle platform based on users' profiles. [...] How should I choose the right plugin type? Is it OK with Machine learning backend plugins, since my algorithm belongs to machine learning area?
Moodle 是高度模块化的,这意味着与机器 learning/data 分析相关的功能可能很适合机器学习后端插件(支持 python 后端),但是对平台可能需要单独的插件,具体取决于 "adaptive functionalities".
的确切特征如果您需要关于机器学习后端的未记录的额外建议或信息,或者稍后,您可能需要为 "adaptive functionalities" 编写的特定插件,您可以在 Moodle 开发者论坛中提问(https://moodle.org/mod/forum/view.php?id=55) and/or join the Moodle Dev Chat in Telegram and ask around (https://t.me/moodledev)
I can't find a way to start creating the plugin. There's too much information and no good tutorials for beginners. [...] Are there any good tutorials that I can't find?
首先确定这些 "adaptive functionalities" 到底是什么是非常重要的,因为根据它们的不同,您可能需要做一种或另一种插件,并且不同的插件制作略有不同(有时非常非常不同)。这是插件类型列表:https://docs.moodle.org/dev/Plugin_types .
开始任何类型的插件开发的最佳方法是在本地 Moodle 实例中安装插件 https://moodle.org/plugins/tool_pluginskel 并为您的插件生成样板代码,然后从那里开始工作。
关于教程...开发信息的最新来源是文档,但也有一些关于 Moodle 中一般开发的书籍(您可以在 Amazon、Leanpub...中找到它们)。请记住,这些书籍通常不是最新的,因此请将它们的内容与最新发布的 Moodle 版本进行比较,并在购买前考虑您所追求的插件类型。
Do I absolutely use git?
如果您打算将您的代码发布为插件或插件集,那么是的,您需要将其发布在 public 存储库中,然后遵循通常的插件 review/publication 流程。这是有关该过程的文档:https://docs.moodle.org/dev/Plugin_validation and here the doc about setting up the Travis automated validation tests for a plugin (this is easier than it sounds) https://docs.moodle.org/dev/Travis_integration#Moodle_plugins