Minor - format code.

1.9.x
Julio Montoya 10 years ago
parent a4c4fb6253
commit b58123fa2b
  1. 9
      main/dashboard/block.class.php
  2. 13
      main/dashboard/dashboard_controller.php
  3. 6
      main/dashboard/index.php

@ -3,15 +3,10 @@
/** /**
* This file contains class used parent class for blocks plugins * This file contains class used parent class for blocks plugins
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard
*/
/**
* Parent class for controller Blocks from dashboard plugin * Parent class for controller Blocks from dashboard plugin
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard * @package chamilo.dashboard
*/ */
class Block class Block
{ {
/** /**
@ -45,5 +40,3 @@ class Block
return $result; return $result;
} }
} }
?>

@ -2,17 +2,14 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Controller script. Prepares the common background variables to give to the scripts corresponding to
* the requested action
* This file contains class used like controller, it should be included inside a dispatcher file (e.g: index.php) * This file contains class used like controller, it should be included inside a dispatcher file (e.g: index.php)
* @author Christian Fasanando <christian1827@gmail.com> * @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard * @package chamilo.dashboard
*/ */
class DashboardController
/** {
* Controller script. Prepares the common background variables to give to the scripts corresponding to
* the requested action
*/
class DashboardController { // extends Controller {
private $toolname; private $toolname;
private $view; private $view;
private $user_id; private $user_id;
@ -119,6 +116,4 @@ class DashboardController { // extends Controller {
$result = DashboardManager::close_user_block($user_id, $path); $result = DashboardManager::close_user_block($user_id, $path);
$this->display($result); $this->display($result);
} }
} }
?>

@ -5,11 +5,8 @@
* @author Christian Fasanando <christian1827@gmail.com> * @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard * @package chamilo.dashboard
*/ */
/**
* Init
*/
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = array ('index', 'tracking', 'userInfo', 'admin', 'gradebook'); $language_file = array('index', 'tracking', 'userInfo', 'admin', 'gradebook');
$cidReset = true; $cidReset = true;
// including files // including files
@ -45,7 +42,6 @@ $htmlHeadXtra[] = $dashboar_plugin_styles;
// course description controller object // course description controller object
$dashboard_controller = new DashboardController(); $dashboard_controller = new DashboardController();
if (isset($_GET['path'])) { if (isset($_GET['path'])) {
$path = $_GET['path']; $path = $_GET['path'];
} }

Loading…
Cancel
Save