Minor - code styling for tickets management plugin - refs #6715

1.9.x
Yannick Warnier 12 years ago
parent 1352442dd6
commit 17681a74b5
  1. 2
      plugin/ticket/index.php
  2. 1
      plugin/ticket/install.php
  3. 8
      plugin/ticket/lib/tck.lib.php
  4. 25
      plugin/ticket/lib/tck_api.php
  5. 9
      plugin/ticket/lib/tck_plugin.class.php
  6. 2
      plugin/ticket/plugin.php
  7. 2
      plugin/ticket/readme.txt
  8. 6
      plugin/ticket/start.php
  9. 2
      plugin/ticket/uninstall.php

@ -1,3 +1 @@
<?php <?php
?>

@ -1,4 +1,5 @@
<?php <?php
/* For licensing terms, see /license.txt */
/** /**
* This script is included by main/admin/settings.lib.php and generally * This script is included by main/admin/settings.lib.php and generally
* includes things to execute in the main database (settings_current table) * includes things to execute in the main database (settings_current table)

@ -1,11 +1,11 @@
<?php <?php
/* For licensing terms, see /license.txt */
/** /**
* This script initiates a videoconference session, calling the BigBlueButton * This class defines the basis of the ticket management system plugin
* API * @package chamilo.plugin.ticket
* @package chamilo.plugin.bigbluebutton
*/ */
/** /**
* BigBlueButton-Chamilo connector class * Ticket class
*/ */
class Ticket { class Ticket {

@ -1,25 +0,0 @@
<?php
/*
* Ticket Support
*/
class TckBlueButtonBN {
private $_securitySalt;
private $_bbbServerBaseUrl;
/* ___________ General Methods for the BigBlueButton Class __________ */
function __construct() {
/*
Establish just our basic elements in the constructor:
*/
// BASE CONFIGS - set these for your BBB server in config.php and they will
// simply flow in here via the constants:
$this->_securitySalt = CONFIG_SECURITY_SALT;
$this->_bbbServerBaseUrl = CONFIG_SERVER_BASE_URL;
}
} // END OF BIGBLUEBUTTON CLASS
?>

@ -1,6 +1,12 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/**
* Class TicketPlugin definition file
* @package chamilo.plugin.ticket
*/
/**
* Class TicketPlugin
*/
class TicketPlugin extends Plugin class TicketPlugin extends Plugin
{ {
static function create() { static function create() {
@ -13,7 +19,6 @@ class TicketPlugin extends Plugin
} }
function install() { function install() {
// Create database tables // Create database tables
require_once api_get_path(SYS_PLUGIN_PATH).PLUGIN_NAME.'/database.php'; require_once api_get_path(SYS_PLUGIN_PATH).PLUGIN_NAME.'/database.php';

@ -1,4 +1,4 @@
<?php <?php
/* For licensing terms, see /license.txt */
require_once dirname(__FILE__).'/config.php'; require_once dirname(__FILE__).'/config.php';
$plugin_info = TicketPlugin::create()->get_info(); $plugin_info = TicketPlugin::create()->get_info();

@ -1 +1 @@
This plugin Ticket Support This plugin provides the support ticket management system features

@ -1,12 +1,12 @@
<?php <?php
/* For licensing terms, see /license.txt */
/** /**
* This script initiates a videoconference session, calling the BigBlueButton API * This script initiates a ticket management system session
* @package chamilo.plugin.bigbluebutton * @package chamilo.plugin.ticket
*/ */
/** /**
* Initialization * Initialization
*/ */
$course_plugin = 'ticket'; //needed in order to load the plugin lang variables $course_plugin = 'ticket'; //needed in order to load the plugin lang variables
require_once dirname(__FILE__).'/config.php'; require_once dirname(__FILE__).'/config.php';
$tool_name = get_lang('Ticket'); $tool_name = get_lang('Ticket');

@ -1,5 +1,5 @@
<?php <?php
/* For licensing terms, see /license.txt */
/** /**
* This script is included by main/admin/settings.lib.php when unselecting a plugin * This script is included by main/admin/settings.lib.php when unselecting a plugin
* and is meant to remove things installed by the install.php script in both * and is meant to remove things installed by the install.php script in both

Loading…
Cancel
Save