Minor - Adapting code comments to phpdoc

skala
Yannick Warnier 14 years ago
parent e70a2688a5
commit d12231e90c
  1. 6
      main/gradebook/exercise_jump.php
  2. 7
      main/gradebook/gradebook.php
  3. 9
      main/gradebook/gradebook_add_cat.php
  4. 8
      main/gradebook/gradebook_add_eval.php
  5. 7
      main/gradebook/gradebook_add_link.php
  6. 9
      main/gradebook/gradebook_add_link_select_course.php
  7. 9
      main/gradebook/gradebook_add_result.php
  8. 7
      main/gradebook/gradebook_add_user.php
  9. 9
      main/gradebook/gradebook_display_certificate.php
  10. 9
      main/gradebook/gradebook_edit_all.php
  11. 9
      main/gradebook/gradebook_edit_cat.php
  12. 7
      main/gradebook/gradebook_edit_eval.php
  13. 7
      main/gradebook/gradebook_edit_link.php
  14. 9
      main/gradebook/gradebook_edit_result.php
  15. 9
      main/gradebook/gradebook_flatview.php
  16. 7
      main/gradebook/gradebook_result.class.php
  17. 9
      main/gradebook/gradebook_scoring_system.php
  18. 7
      main/gradebook/gradebook_showlog_eval.php
  19. 7
      main/gradebook/gradebook_showlog_link.php
  20. 9
      main/gradebook/gradebook_statistics.php
  21. 9
      main/gradebook/gradebook_view_result.php
  22. 9
      main/gradebook/index.php
  23. 9
      main/gradebook/lib/be.inc.php
  24. 4
      main/gradebook/lib/be/abstractlink.class.php
  25. 6
      main/gradebook/lib/be/attendancelink.class.php
  26. 5
      main/gradebook/lib/be/category.class.php
  27. 6
      main/gradebook/lib/be/dropboxlink.class.php
  28. 4
      main/gradebook/lib/be/evallink.class.php
  29. 6
      main/gradebook/lib/be/evaluation.class.php
  30. 6
      main/gradebook/lib/be/exerciselink.class.php
  31. 6
      main/gradebook/lib/be/forumthreadlink.class.php
  32. 4
      main/gradebook/lib/be/gradebookitem.class.php
  33. 6
      main/gradebook/lib/be/learnpathlink.class.php
  34. 10
      main/gradebook/lib/be/linkfactory.class.php
  35. 4
      main/gradebook/lib/be/result.class.php
  36. 6
      main/gradebook/lib/be/studentpublicationlink.class.php
  37. 6
      main/gradebook/lib/be/surveylink.class.php
  38. 11
      main/gradebook/lib/fe/catform.class.php
  39. 11
      main/gradebook/lib/fe/dataform.class.php
  40. 8
      main/gradebook/lib/fe/displaygradebook.php
  41. 9
      main/gradebook/lib/fe/evalform.class.php
  42. 4
      main/gradebook/lib/fe/exportgradebook.php
  43. 10
      main/gradebook/lib/fe/flatviewtable.class.php
  44. 9
      main/gradebook/lib/fe/gradebooktable.class.php
  45. 8
      main/gradebook/lib/fe/linkaddeditform.class.php
  46. 11
      main/gradebook/lib/fe/linkform.class.php
  47. 10
      main/gradebook/lib/fe/resulttable.class.php
  48. 9
      main/gradebook/lib/fe/scoredisplayform.class.php
  49. 9
      main/gradebook/lib/fe/userform.class.php
  50. 10
      main/gradebook/lib/fe/usertable.class.php
  51. 4
      main/gradebook/lib/flatview_data_generator.class.php
  52. 5
      main/gradebook/lib/gradebook_data_generator.class.php
  53. 7
      main/gradebook/lib/gradebook_functions.inc.php
  54. 4
      main/gradebook/lib/results_data_generator.class.php
  55. 11
      main/gradebook/lib/scoredisplay.class.php
  56. 5
      main/gradebook/lib/user_data_generator.class.php
  57. 9
      main/gradebook/open_document.php
  58. 9
      main/gradebook/user_info.php
  59. 7
      main/gradebook/user_stats.php

@ -7,6 +7,10 @@
* variables.
* Most code here is ripped from /main/course_home/course_home.php
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once '../inc/global.inc.php';
@ -35,4 +39,4 @@ if (isset($_GET['doexercise'])) {
}
header('Location: ../exercice/exercice.php?cidReq='.Security::remove_XSS($cidReq).'&show=result'.$add_url);
exit;
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';
// $cidReset : This is the main difference with gradebook.php, here we say,
// basically, that we are inside a course, and many things depend from that

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
require_once '../inc/global.inc.php';
$_in_course = true;
@ -61,4 +68,4 @@ if ( !$_in_course ) {
}
Display :: display_header(get_lang('NewCategory'));
$form->display();
Display :: display_footer();
Display :: display_footer();

@ -1,6 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
require_once '../inc/global.inc.php';
require_once 'lib/be.inc.php';

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
@ -32,4 +39,4 @@ $interbreadcrumb[] = array (
));
Display :: display_header(get_lang('NewCategory'));
$form->display();
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';
@ -41,4 +48,4 @@ DisplayGradebook :: display_header_result ($evaluation[0], null, 0,0);
echo '<div class="main">';
echo $add_result_form->toHtml();
echo '</div>';
Display :: display_footer();
Display :: display_footer();

@ -1,6 +1,13 @@
<?php //$Id: gradebook_add_user.php 21153 2009-06-01 01:51:43Z yannoo $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
//Disabling code when course code is null (gradebook as a tab) see issue #2705
exit;

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
@ -130,4 +137,4 @@ echo Display::tag('h3', get_lang('GradebookListOfStudentsCertificates'));
?>
</table>
<?php
Display::display_footer();
Display::display_footer();

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';
$cidReset= true;
@ -173,4 +180,4 @@ if ($my_api_cidreq=='') {
</form>
<?php
Display :: display_footer();
?>
?>

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
require_once '../inc/global.inc.php';
@ -44,4 +51,4 @@ $this_section = SECTION_COURSES;
Display :: display_header(get_lang('EditCategory'));
echo '<div class="actions-message">'.get_lang('EditCategory').'</div>';
$form->display();
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = array('gradebook','link');
//$cidReset = true;
require_once '../inc/global.inc.php';

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';
@ -46,4 +53,4 @@ DisplayGradebook :: display_header_result ($evaluation[0],null,0,0);
echo '<div class="main">';
echo $edit_result_form->toHtml();
echo '</div>';
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
@ -289,4 +296,4 @@ if (isset($_GET['isStudentView']) && $_GET['isStudentView'] == 'false') {
echo '</div>';
}
Display :: display_footer();
Display :: display_footer();

@ -9,7 +9,10 @@
if(!class_exists('GradeBookResult')):
/**
* Gradebook results class
* @package chamilo.gradebook
*/
class GradeBookResult
{
private $gradebook_list = array(); //stores the list of exercises
@ -327,4 +330,4 @@ class GradeBookResult
return true;
}
}
endif;
endif;

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';
//$cidReset= true;
require_once '../inc/global.inc.php';
@ -118,4 +125,4 @@ if (((isset($_GET['isStudentView']) && $_GET['isStudentView']=='false') || (isse
$scoreform->display();
}
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';
@ -88,4 +95,4 @@ if (!$displayscore->is_custom()) {
$stattable .= '</tr></table>';
echo $stattable;
}
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file[] = 'gradebook';
@ -477,4 +484,4 @@ if ($file_type == null) { //show the result header
}
$resulttable->display();
Display :: display_footer();
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';
// $cidReset : This is the main difference with gradebook.php, here we say,
@ -884,4 +891,4 @@ if ($first_time==1 && api_is_allowed_to_edit(null,true)) {
} else {
$gradebooktable->display();
}
Display :: display_footer();
Display :: display_footer();

@ -1,7 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
// include this file to have access to all backend classes
// @author Bert Steppé
/**
* include this file to have access to all backend classes
* @author Bert Steppé
*/
/**
* Code
*/
require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php';
define ('LIMIT', 1000);
require_once 'be/gradebookitem.class.php';

@ -9,6 +9,10 @@
* @author Julio Montoya <gugli100@gmail.com> security improvements
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
abstract class AbstractLink implements GradebookItem {
// PROPERTIES

@ -5,6 +5,10 @@
* @author Christian Fasanando (christian1827@gmail.com)
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class AttendanceLink extends AbstractLink
{
@ -251,4 +255,4 @@ class AttendanceLink extends AbstractLink
}
}
?>
?>

@ -4,7 +4,10 @@
* Defines a gradebook Category object
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class Category implements GradebookItem
{

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class DropboxLink extends EvalLink
{
@ -73,4 +77,4 @@ class DropboxLink extends EvalLink
return 'dropbox';
}
}
}

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
abstract class EvalLink extends AbstractLink
{

@ -4,6 +4,10 @@
* Defines a gradebook Evaluation object
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class Evaluation implements GradebookItem
{
@ -596,4 +600,4 @@ class Evaluation implements GradebookItem
return true;
}
}
}
}

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class ExerciseLink extends AbstractLink
{
@ -242,4 +246,4 @@ class ExerciseLink extends AbstractLink
return 'exercise';
}
}
}

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class ForumThreadLink extends AbstractLink
{
@ -258,4 +262,4 @@ class ForumThreadLink extends AbstractLink
return 'forum';
}
}
}

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Interface
* @package chamilo.gradebook
*/
interface GradebookItem
{
public function get_item_type();

@ -6,6 +6,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class LearnpathLink extends AbstractLink
{
// INTERNAL VARIABLES
@ -260,4 +264,4 @@ class LearnpathLink extends AbstractLink
return 'learnpath';
}
}
}

@ -1,6 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
// To add your new link type here:
// - define a unique type id
// - add include
@ -110,4 +116,4 @@ class LinkFactory
);
}
}
}

@ -5,6 +5,10 @@
* @author Bert Steppé, Stijn Konings
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class Result
{

@ -5,6 +5,10 @@
* @author Bert Steppé
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class StudentPublicationLink extends AbstractLink
{
@ -270,4 +274,4 @@ class StudentPublicationLink extends AbstractLink
return 'studentpublication';
}
}
}

@ -7,6 +7,10 @@
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class SurveyLink extends AbstractLink
{
private $survey_table = null;
@ -245,4 +249,4 @@ class SurveyLink extends AbstractLink
}
}
?>
?>

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
@ -7,7 +14,7 @@ require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
/**
* Extends formvalidator with add&edit forms
* @author Stijn Konings
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
class CatForm extends FormValidator {
@ -165,4 +172,4 @@ class CatForm extends FormValidator {
function setDefaults($defaults = array ()) {
parent :: setDefaults($defaults);
}
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
@ -9,7 +16,7 @@ require_once api_get_path(LIBRARY_PATH) . 'formvalidator/FormValidator.class.php
/**
* Extends formvalidator with import and export forms
* @author Stijn Konings
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
class DataForm extends FormValidator {
@ -109,4 +116,4 @@ class DataForm extends FormValidator {
function setDefaults($defaults = array ()) {
parent :: setDefaults($defaults);
}
}
}

@ -1,5 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Class
* @package chamilo.gradebook
*/
class DisplayGradebook
{
/**

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
@ -8,7 +15,7 @@ require_once api_get_path(LIBRARY_PATH) . 'formvalidator/FormValidator.class.php
/**
* Extends formvalidator with add&edit forms for evaluations
* @author Stijn Konings
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
$htmlHeadXtra[] = '<script type="text/javascript">

@ -1,5 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Prints an HTML page with a table containing the gradebook data
* @param array Array containing the data to be printed in the table

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
set_time_limit(0);
@ -9,6 +16,7 @@ set_time_limit(0);
* @author Stijn Konings
* @author Bert Steppé - (refactored, optimised)
* @author Julio Montoya Armas - Gradebook Graphics
* @package chamilo.gradebook
*/
class FlatViewTable extends SortableTable
{
@ -517,4 +525,4 @@ class FlatViewTable extends SortableTable
private function build_name_link ($user_id, $name) {
return '<a href="user_stats.php?userid='.$user_id.'&selectcat='.$this->selectcat->get_id().'">'.$name.'</a>';
}
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
@ -8,7 +15,7 @@ require_once dirname(__FILE__).'/../be.inc.php';
* Table to display categories, evaluations and links
* @author Stijn Konings
* @author Bert Steppé (refactored, optimised)
*
* @package chamilo.gradebook
*/
class GradebookTable extends SortableTable
{

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
@ -10,6 +17,7 @@ require_once api_get_path(LIBRARY_PATH) . 'formvalidator/FormValidator.class.php
* Form used to add or edit links
* @author Stijn Konings
* @author Bert Steppé
* @package chamilo.gradebook
*/
class LinkAddEditForm extends FormValidator
{

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
@ -10,7 +17,7 @@ require_once api_get_path(LIBRARY_PATH) . 'formvalidator/FormValidator.class.php
* Forms related to links
* @author Stijn Konings
* @author Bert Steppé (made more generic)
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
class LinkForm extends FormValidator
{
@ -99,4 +106,4 @@ class LinkForm extends FormValidator
$this->setDefaults(array('select_link' => $this->extra));
}
}
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
@ -7,6 +14,7 @@ require_once dirname(__FILE__).'/../be.inc.php';
* Table to display results for an evaluation
* @author Stijn Konings
* @author Bert Steppé
* @package chamilo.gradebook
*/
class ResultTable extends SortableTable
{
@ -159,4 +167,4 @@ class ResultTable extends SortableTable
}
return $edit_column;
}
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
require_once api_get_path(LIBRARY_PATH) . 'groupmanager.lib.php';
@ -8,7 +15,7 @@ require_once api_get_path(LIBRARY_PATH) . 'formvalidator/FormValidator.class.php
* Form for the score display dialog
* @author Stijn Konings
* @author Bert Steppé
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
class ScoreDisplayForm extends FormValidator
{

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
require_once dirname(__FILE__).'/../gradebook_functions.inc.php';
@ -72,4 +79,4 @@ class UserForm extends FormValidator
function setDefaults($defaults= array ()) {
parent :: setDefaults($defaults);
}
}
}

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
require_once dirname(__FILE__).'/../../../inc/global.inc.php';
require_once dirname(__FILE__).'/../be.inc.php';
@ -7,6 +14,7 @@ require_once dirname(__FILE__).'/../be.inc.php';
* Table to display flat view of a student's evaluations and links
* @author Stijn Konings
* @author Bert Steppé (refactored, optimised, use of caching, datagenerator class)
* @package chamilo.gradebook
*/
class UserTable extends SortableTable
{
@ -132,4 +140,4 @@ class UserTable extends SortableTable
}
}
}
}

@ -5,6 +5,10 @@
* used for the teacher's flat view
* @author Bert Steppé
*/
/**
* Class
* @package chamilo.gradebook
*/
class FlatViewDataGenerator
{

@ -1,9 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Class to select, sort and transform object data into array data,
* used for the general gradebook view
* @author Bert Steppé
* @package chamilo.gradebook
*/
class GradebookDataGenerator
{

@ -1,6 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* These are functions used in gradebook
*
@ -616,4 +619,4 @@ function get_user_certificate_content($user_id, $is_preview = false) {
//add header
$new_content_html = $new_content[0].$print.'</head>'.$new_content_html;
return $new_content_html;
}
}

@ -5,6 +5,10 @@
* used for the teacher's evaluation results view
* @author Bert Steppé
*/
/**
* Class
* @package chamilo.gradebook
*/
class ResultsDataGenerator
{

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
// Score display types constants
define('SCORE_DIV', 1); // X / Y
@ -27,7 +34,7 @@ define('SCORE_ONLY_CUSTOM',3);
* Class to display scores according to the settings made by the platform admin.
* This class works as a singleton: call instance() to retrieve an object.
* @author Bert Steppé
* @package dokeos.gradebook
* @package chamilo.gradebook
*/
class ScoreDisplay
{
@ -477,4 +484,4 @@ class ScoreDisplay
return ($item1['score'] < $item2['score'] ? -1 : 1);
}
}
}
}

@ -1,9 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Class to select, sort and transform object data into array data,
* used for a student's general view
* @author Bert Steppé
* @package chamilo.gradebook
*/
class UserDataGenerator
{

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
//Disabling code due issue #2705 gradebook with id "-1"
exit;
/*
@ -8,4 +15,4 @@ require_once '../inc/lib/document.lib.php';
api_block_anonymous_users();
DocumentManager :: file_send_for_download(api_get_path(SYS_COURSE_PATH).$_GET['file']);
exit;
*/
*/

@ -1,5 +1,12 @@
<?php // $Id: $
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file = 'gradebook';
//$cidReset = true;
require_once '../inc/global.inc.php';
@ -54,4 +61,4 @@ if ($image_size[0] > 300) {
//@todo need a "makeup"
echo '<img '.$img_attributes.'/>';
$form->display();
Display :: display_footer();
Display :: display_footer();

@ -1,5 +1,12 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script
* @package chamilo.gradebook
*/
/**
* Init
*/
$language_file= 'gradebook';

Loading…
Cancel
Save