aboutsummaryrefslogtreecommitdiff
path: root/lib/plugins/core/AdminCourseContents.class.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/plugins/core/AdminCourseContents.class.php
current code from svn, revision 62608
Diffstat (limited to 'lib/plugins/core/AdminCourseContents.class.php')
-rw-r--r--lib/plugins/core/AdminCourseContents.class.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/plugins/core/AdminCourseContents.class.php b/lib/plugins/core/AdminCourseContents.class.php
new file mode 100644
index 0000000..065cc9e
--- /dev/null
+++ b/lib/plugins/core/AdminCourseContents.class.php
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * Interface AdminCourseContents
+ * With this interface a plugin is able to add columns to the course-overview table for admins and roots.
+ */
+interface AdminCourseContents
+{
+ /**
+ * The available columns for the course-overview table for admins. Index is the identifier of the column
+ * for the method adminAreaGetCourseContent. The value is the display name of the column.
+ * @return array : an associative array like array('index' => _("Translated display name"))
+ */
+ public function adminAvailableContents();
+
+ /**
+ * Returns the value of the additional column for the course-overview table in the admin-area.
+ * @param Course $course : A Course-object of the given ... course
+ * @param string $index : the index that comes from adminAvailableContents to identify the column.
+ * @return Flexi_Template | String : Either one will do, but string is preferred, because it can exported as CSV-file more easily.
+ */
+ public function adminAreaGetCourseContent($course, $index);
+}