From fed8935583f88c36b1e11ed2c467d4e088e3ee49 Mon Sep 17 00:00:00 2001
From: TamaraGunkel <tamara.nrw@web.de>
Date: Tue, 5 Dec 2017 14:02:45 +0100
Subject: [PATCH] added basic files
---
filter.php | 45 +++++++++++++++++++++++++++++++
lang/en/filter_opencastfilter.php | 27 +++++++++++++++++++
settings.php | 29 ++++++++++++++++++++
styles.css | 0
version.php | 30 +++++++++++++++++++++
5 files changed, 131 insertions(+)
create mode 100644 filter.php
create mode 100644 lang/en/filter_opencastfilter.php
create mode 100644 settings.php
create mode 100644 styles.css
create mode 100644 version.php
diff --git a/filter.php b/filter.php
new file mode 100644
index 0000000..ba0fd0e
--- /dev/null
+++ b/filter.php
@@ -0,0 +1,45 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * Opencast filtering
+ *
+ * This filter will replace any links to opencast videos with the opencast theodul pass player.
+ *
+ * @package filter
+ * @subpackage opencastfilter
+ * @copyright 2017 Tamara Gunkel
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+/**
+ * Automatic opencast videos filter class.
+ *
+ * @package filter
+ * @subpackage opencastfilter
+ * @copyright 2017 Tamara Gunkel
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+class filter_opencastfilter extends moodle_text_filter {
+
+
+ public function filter($text, array $options = array()) {
+ }
+
+
+}
diff --git a/lang/en/filter_opencastfilter.php b/lang/en/filter_opencastfilter.php
new file mode 100644
index 0000000..2ac7c52
--- /dev/null
+++ b/lang/en/filter_opencastfilter.php
@@ -0,0 +1,27 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * Strings for component 'filter_opencastfilter', language 'en'
+ *
+ * @package filter_opencastfilter
+ * @copyright 2017 Tamara Gunkel
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+$string['filtername'] = 'Opencast';
+$string['pluginname'] = 'Opencast Filter';
\ No newline at end of file
diff --git a/settings.php b/settings.php
new file mode 100644
index 0000000..01d8837
--- /dev/null
+++ b/settings.php
@@ -0,0 +1,29 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * Opencast filter settings
+ *
+ * @package filter_opencastfilter
+ * @copyright 2017 Tamara Gunkel
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die;
+
+if ($ADMIN->fulltree) {
+
+}
diff --git a/styles.css b/styles.css
new file mode 100644
index 0000000..e69de29
diff --git a/version.php b/version.php
new file mode 100644
index 0000000..02ea2ba
--- /dev/null
+++ b/version.php
@@ -0,0 +1,30 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * Opencast filter
+ *
+ * @package filter
+ * @subpackage opencastfilter
+ * @copyright 2017 Tamara Gunkel
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2017120500; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2017050500; // Requires this Moodle version
+$plugin->component = 'filter_opencastfilter'; // Full name of the plugin (used for diagnostics)
--
GitLab