|
|
|
@ -1,31 +1,8 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
/* |
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
============================================================================== |
|
|
|
|
|
|
|
Dokeos - elearning and course management software |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2008 Dokeos Latinoamerica SAC |
|
|
|
|
|
|
|
Copyright (c) 2006 Dokeos SPRL |
|
|
|
|
|
|
|
Copyright (c) 2006 Ghent University (UGent) |
|
|
|
|
|
|
|
Copyright (c) various contributors |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For a full list of contributors, see "credits.txt". |
|
|
|
|
|
|
|
The full license can be read in "license.txt". |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or |
|
|
|
|
|
|
|
modify it under the terms of the GNU General Public License |
|
|
|
|
|
|
|
as published by the Free Software Foundation; either version 2 |
|
|
|
|
|
|
|
of the License, or (at your option) any later version. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See the GNU General Public License for more details. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium |
|
|
|
|
|
|
|
Mail: info@dokeos.com |
|
|
|
|
|
|
|
============================================================================== |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Defines a gradebook Evaluation object |
|
|
|
* Defines a gradebook Evaluation object |
|
|
|
* @author Bert Stepp<EFBFBD>, Stijn Konings |
|
|
|
* @package chamilo.gradebook |
|
|
|
* @package dokeos.gradebook |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class Evaluation implements GradebookItem |
|
|
|
class Evaluation implements GradebookItem |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -156,7 +133,7 @@ class Evaluation implements GradebookItem |
|
|
|
$sql .= ' user_id = '.$user_id; |
|
|
|
$sql .= ' user_id = '.$user_id; |
|
|
|
$paramcount ++; |
|
|
|
$paramcount ++; |
|
|
|
} |
|
|
|
} |
|
|
|
if (isset ($course_code)) { |
|
|
|
if (isset ($course_code) && $course_code <> '-1') { |
|
|
|
if ($paramcount != 0) $sql .= ' AND'; |
|
|
|
if ($paramcount != 0) $sql .= ' AND'; |
|
|
|
else $sql .= ' WHERE'; |
|
|
|
else $sql .= ' WHERE'; |
|
|
|
$sql .= " course_code = '".$course_code."'"; |
|
|
|
$sql .= " course_code = '".$course_code."'"; |
|
|
|
|