Minor - format code and documentation

1.9.x
Julio Montoya 12 years ago
parent e5c3503630
commit 09142738ee
  1. 7
      plugin/ticket/config.install.php
  2. 2
      plugin/ticket/config.php
  3. 1
      plugin/ticket/database.php
  4. 4
      plugin/ticket/install.php
  5. 2
      plugin/ticket/lang/english.php
  6. 4
      plugin/ticket/lang/spanish.php
  7. 1
      plugin/ticket/plugin.php
  8. 4
      plugin/ticket/src/assign_tickets.php
  9. 2
      plugin/ticket/src/course_user_list.php
  10. 1
      plugin/ticket/src/download.php
  11. 1
      plugin/ticket/src/index.php
  12. 5
      plugin/ticket/src/report.php
  13. 2
      plugin/ticket/src/send_ticket.php
  14. 23
      plugin/ticket/src/ticket.class.php
  15. 1
      plugin/ticket/src/ticket_assign_log.php
  16. 5
      plugin/ticket/src/ticket_details.php
  17. 1
      plugin/ticket/src/ticket_plugin.class.php
  18. 2
      plugin/ticket/src/tutor_report.lib.php
  19. 6
      plugin/ticket/src/update_report.php
  20. 4
      plugin/ticket/start.php
  21. 4
      plugin/ticket/uninstall.php

@ -1,11 +1,12 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/**
* @package chamilo.plugin.ticket
*/
/** /**
* Loading of necessary libs * Loading of necessary libs
*
* @package chamilo.plugin.ticket
*/ */
require_once '../../main/inc/global.inc.php'; require_once '../../main/inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'plugin.class.php'; require_once api_get_path(LIBRARY_PATH).'plugin.class.php';

@ -1,6 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */

@ -3,7 +3,6 @@
* Contains the SQL for the tickets management plugin database structure * Contains the SQL for the tickets management plugin database structure
*/ */
$objPlugin = new TicketPlugin(); $objPlugin = new TicketPlugin();
$table = Database::get_main_table(TABLE_TICKET_ASSIGNED_LOG); $table = Database::get_main_table(TABLE_TICKET_ASSIGNED_LOG);

@ -1,13 +1,11 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* 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)
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
* Initialization
*/
require_once dirname(__FILE__).'/config.php'; require_once dirname(__FILE__).'/config.php';
TicketPlugin::create()->install(); TicketPlugin::create()->install();

@ -54,7 +54,7 @@ $strings['TicketAssignX'] = "[TICKETS] Assignation of ticket #%s";
$strings['AreYouSureYouWantToCloseTheTicket'] = "Are you sure you want to close this ticket?"; $strings['AreYouSureYouWantToCloseTheTicket'] = "Are you sure you want to close this ticket?";
$strings['AreYouSureYouWantToUnassignTheTicket'] = "Are you sure you want to unassign this ticket?"; $strings['AreYouSureYouWantToUnassignTheTicket'] = "Are you sure you want to unassign this ticket?";
$strings['YouMustWriteAMessage'] = "You have to enter a message"; $strings['YouMustWriteAMessage'] = "You have to enter a message";
$strings['LastResponse'] = "Last reponse"; $strings['LastResponse'] = "Last response";
$strings['AssignTicket'] = "Assign ticket"; $strings['AssignTicket'] = "Assign ticket";
$strings['AttendedBy'] = "Attended by"; $strings['AttendedBy'] = "Attended by";
$strings['IfYouAreSureTheTicketWillBeClosed'] = "If you are certain, the ticket will be closed"; $strings['IfYouAreSureTheTicketWillBeClosed'] = "If you are certain, the ticket will be closed";

@ -17,7 +17,7 @@ $strings['Description'] = "Descripcion";
$strings['Tickets'] = "Tickets"; $strings['Tickets'] = "Tickets";
$strings['MyTickets'] = "Mis Tickets"; $strings['MyTickets'] = "Mis Tickets";
$strings['MsgWelcome'] = "Bienvenido a su sección MIS TICKETS. Esta sección le permite revisar sus Tickets de Soporte generados en SOPORTE TECNICO"; $strings['MsgWelcome'] = "Bienvenido a su sección MIS TICKETS. Esta sección le permite revisar sus Tickets de Soporte generados en SOPORTE TECNICO";
$strings['TckSuccessSave'] = "Se registró con exito su ticket"; $strings['TckSuccessSave'] = "Se registró con éxito su ticket";
$strings['TckClose'] = "Cerrar Tickets"; $strings['TckClose'] = "Cerrar Tickets";
$strings['TckNew'] = "Nuevo Ticket"; $strings['TckNew'] = "Nuevo Ticket";
$strings['TcksNew'] = "Tickets Nuevos"; $strings['TcksNew'] = "Tickets Nuevos";
@ -74,7 +74,7 @@ $strings['TicketsAboutEnrollment'] = "Tickets relacionados con la Matrícula.";
$strings['RequestAndPapework'] = "Consultas y Trámites"; $strings['RequestAndPapework'] = "Consultas y Trámites";
$strings['TicketsAboutRequestAndPapework'] = "Tickets relacionados a consultas anteriores y trámites."; $strings['TicketsAboutRequestAndPapework'] = "Tickets relacionados a consultas anteriores y trámites.";
$strings['AcademicIncidence'] = "Incidencias Académicas"; $strings['AcademicIncidence'] = "Incidencias Académicas";
$strings['TicketsAboutAcademicIncidence'] = "Tickets relacionados a incidencias académicas como examenes, prácticas, tareas, etc."; $strings['TicketsAboutAcademicIncidence'] = "Tickets relacionados a incidencias académicas como exámenes, prácticas, tareas, etc.";
$strings['VirtualCampus'] = "Campus Virtual"; $strings['VirtualCampus'] = "Campus Virtual";
$strings['TicketsAboutVirtualCampus'] = "Tickets relacionados al Campus Virtual"; $strings['TicketsAboutVirtualCampus'] = "Tickets relacionados al Campus Virtual";
$strings['OnlineEvaluation'] = "Evaluación en línea"; $strings['OnlineEvaluation'] = "Evaluación en línea";

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */

@ -1,12 +1,10 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* *
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
* Init section
*/
require_once '../config.php'; require_once '../config.php';
$plugin = TicketPlugin::create(); $plugin = TicketPlugin::create();

@ -1,7 +1,7 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
*
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/** /**

@ -2,7 +2,6 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
*
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Redirects to "myticket.php" * Redirects to "myticket.php"
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket

@ -1,12 +1,9 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
* INIT SECTION
*/
$language_file = array('messages', 'userInfo', 'admin', 'trad4all'); $language_file = array('messages', 'userInfo', 'admin', 'trad4all');
$cidReset = true; $cidReset = true;
require_once '../config.php'; require_once '../config.php';

@ -1,6 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* *
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket

@ -7,13 +7,11 @@
*/ */
class TicketManager class TicketManager
{ {
/** /**
* Constructor * Constructor
*/ */
function __construct() public function __construct()
{ {
} }
/** /**
@ -72,10 +70,20 @@ class TicketManager
* @return bool * @return bool
*/ */
public static function insert_new_ticket( public static function insert_new_ticket(
$category_id, $course_id, $project_id, $other_area, $email, $category_id,
$subject, $content, $personalEmail = "", $file_attachments, $course_id,
$source = 'VRT', $priority = 'NRM', $status = '', $project_id,
$request_user = '', $assigned_user = 0 $other_area,
$email,
$subject,
$content,
$personalEmail = "",
$file_attachments,
$source = 'VRT',
$priority = 'NRM',
$status = '',
$request_user = '',
$assigned_user = 0
) { ) {
global $plugin; global $plugin;
$table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET); $table_support_tickets = Database::get_main_table(TABLE_TICKET_TICKET);
@ -1417,5 +1425,4 @@ class TicketManager
return $tickets; return $tickets;
} }
} }

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */

@ -1,13 +1,10 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* *
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
*
*/
$language_file = array('messages', 'userInfo', 'admin'); $language_file = array('messages', 'userInfo', 'admin');
$cidReset = true; $cidReset = true;
require_once '../config.php'; require_once '../config.php';

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Class TicketPlugin * Class TicketPlugin
* *

@ -1,6 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Helper library for weekly reports * Helper library for weekly reports
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket

@ -1,12 +1,10 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
*
*/
require_once '../config.php'; require_once '../config.php';
$plugin = TicketPlugin::create(); $plugin = TicketPlugin::create();

@ -1,12 +1,10 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* This script initiates a ticket management system session * This script initiates a ticket management system session
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
* 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,13 +1,11 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* 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
* the global database and the courses tables * the global database and the courses tables
* @package chamilo.plugin.ticket * @package chamilo.plugin.ticket
*/ */
/**
* Queries
*/
require_once dirname(__FILE__).'/config.php'; require_once dirname(__FILE__).'/config.php';
TicketPlugin::create()->uninstall(); TicketPlugin::create()->uninstall();
Loading…
Cancel
Save