aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/CoursewarePlugin.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:07:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:19:12 +0200
commita3da1483a9e689846179159355badfec8073dbec (patch)
tree770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /lib/models/Courseware/CoursewarePlugin.php
current code from svn, revision 62608
Diffstat (limited to 'lib/models/Courseware/CoursewarePlugin.php')
-rwxr-xr-xlib/models/Courseware/CoursewarePlugin.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/models/Courseware/CoursewarePlugin.php b/lib/models/Courseware/CoursewarePlugin.php
new file mode 100755
index 0000000..aa0c63b
--- /dev/null
+++ b/lib/models/Courseware/CoursewarePlugin.php
@@ -0,0 +1,38 @@
+<?php
+
+namespace Courseware;
+
+/**
+ * Interface for a courseware plugin.
+ *
+ * @author Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>
+ * @license GPL2 or any later version
+ *
+ * @since Stud.IP 5.0
+ */
+interface CoursewarePlugin
+{
+ /**
+ * Implement this method to register more block types.
+ *
+ * You get the current list of block types and must return an updated list
+ * containing your own block types.
+ *
+ * @param array $otherBlockTypes the current list of block types
+ *
+ * @return array the updated list of block types
+ */
+ public function registerBlockTypes(array $otherBlockTypes): array;
+
+ /**
+ * Implement this method to register more container types.
+ *
+ * You get the current list of container types and must return an updated list
+ * containing your own container types.
+ *
+ * @param array $otherContainerTypes the current list of container types
+ *
+ * @return array the updated list of container types
+ */
+ public function registerContainerTypes(array $otherContainerTypes): array;
+}