Răsfoiți Sursa

Add StudentFollowUp Plugin structure see BT#12658

jmontoyaa 7 ani în urmă
părinte
comite
fa85b0daab

+ 47 - 0
plugin/studentfollowup/StudentFollowUpPlugin.php

@@ -0,0 +1,47 @@
+<?php
+/* For licensing terms, see /license.txt */
+
+/**
+ * Class StudentFollowUpPlugin
+ */
+class StudentFollowUpPlugin extends Plugin
+{
+    /**
+     * @return StudentFollowUpPlugin
+     */
+    public static function create()
+    {
+        static $result = null;
+        return $result ? $result : $result = new self();
+    }
+
+    /**
+     * StudentFollowUpPlugin constructor.
+     */
+    protected function __construct()
+    {
+        parent::__construct(
+            '0.1',
+            'Julio Montoya',
+            array(
+                'tool_enable' => 'boolean'
+            )
+        );
+    }
+
+    /**
+     *
+     */
+    public function install()
+    {
+
+    }
+
+    /**
+     *
+     */
+    public function uninstall()
+    {
+
+    }
+}

+ 2 - 0
plugin/studentfollowup/index.php

@@ -0,0 +1,2 @@
+<?php
+/* For licensing terms, see /license.txt */

+ 7 - 0
plugin/studentfollowup/install.php

@@ -0,0 +1,7 @@
+<?php
+/* For licensing terms, see /license.txt */
+
+if (!api_is_platform_admin()) {
+    api_not_allowed(true);
+}
+StudentFollowUpPlugin::create()->install();

+ 8 - 0
plugin/studentfollowup/lang/dutch.php

@@ -0,0 +1,8 @@
+<?php
+
+$strings['plugin_title'] = "Student Follow-up System";
+$strings['plugin_comment'] = "Care system (Zorgdossier) [CS]
+    Career follow system (Structuurschema) [CFS]
+    Competence based evaluation system (Competentie evaluatie systeem) [CBES]";
+$strings['tool_enable'] = 'Enable plugin';
+

+ 8 - 0
plugin/studentfollowup/lang/english.php

@@ -0,0 +1,8 @@
+<?php
+
+$strings['plugin_title'] = "Student Follow-up System";
+$strings['plugin_comment'] = "Care system (Zorgdossier) [CS]
+    Career follow system (Structuurschema) [CFS]
+    Competence based evaluation system (Competentie evaluatie systeem) [CBES]";
+$strings['tool_enable'] = 'Enable plugin';
+

+ 23 - 0
plugin/studentfollowup/plugin.php

@@ -0,0 +1,23 @@
+<?php
+/* For licensing terms, see /license.txt */
+
+/**
+ * StudentFollowUpPlugin
+ * @package chamilo.plugin
+ */
+
+$plugin = StudentFollowUpPlugin::create();
+$plugin_info = $plugin->get_info();
+
+
+$form = new FormValidator('htaccess');
+//$form->addText('text', 'text', ['rows' => '15']);
+$form->addButtonSave(get_lang('Save'));
+
+if ($form->validate()) {
+}
+
+$plugin_info['settings_form'] = $form;
+
+
+

+ 8 - 0
plugin/studentfollowup/uninstall.php

@@ -0,0 +1,8 @@
+<?php
+/* For licensing terms, see /license.txt */
+
+if (!api_is_platform_admin()) {
+    api_not_allowed(true);
+}
+
+StudentFollowUpPlugin::create()->uninstall();