Minor - format code.

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

@ -3,15 +3,10 @@
/**
* 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
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard
*/
class Block
{
/**
@ -45,5 +40,3 @@ class Block
return $result;
}
}
?>

@ -2,18 +2,15 @@
/* 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)
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard
*/
/**
* Controller script. Prepares the common background variables to give to the scripts corresponding to
* the requested action
*/
class DashboardController { // extends Controller {
private $toolname;
class DashboardController
{
private $toolname;
private $view;
private $user_id;
@ -42,7 +39,7 @@ class DashboardController { // extends Controller {
$user_blocks_id = array_keys($user_block_data);
$data_block = null;
if (!empty($dashboard_blocks)) {
foreach ($dashboard_blocks as $block) {
@ -119,6 +116,4 @@ class DashboardController { // extends Controller {
$result = DashboardManager::close_user_block($user_id, $path);
$this->display($result);
}
}
?>

@ -1,18 +1,15 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Template (front controller in MVC pattern) used for distpaching to the controllers depend on the current action
* Template (front controller in MVC pattern) used for distpaching to the controllers depend on the current action
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard
*/
/**
* Init
*/
// 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;
// including files
// including files
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'dashboard.lib.php';
require_once api_get_path(LIBRARY_PATH).'app_view.php';
@ -45,7 +42,6 @@ $htmlHeadXtra[] = $dashboar_plugin_styles;
// course description controller object
$dashboard_controller = new DashboardController();
if (isset($_GET['path'])) {
$path = $_GET['path'];
}

Loading…
Cancel
Save