Add StudentFollowUp Plugin structure see BT#12658

pull/2487/head
jmontoyaa 8 years ago
parent 05bdf0fdf1
commit fa85b0daab
  1. 47
      plugin/studentfollowup/StudentFollowUpPlugin.php
  2. 2
      plugin/studentfollowup/index.php
  3. 7
      plugin/studentfollowup/install.php
  4. 8
      plugin/studentfollowup/lang/dutch.php
  5. 8
      plugin/studentfollowup/lang/english.php
  6. 23
      plugin/studentfollowup/plugin.php
  7. 8
      plugin/studentfollowup/uninstall.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()
{
}
}

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

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

@ -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';

@ -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';

@ -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;

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