@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * @param object &$caller calling object |
| 235 | 235 | * @since 1.0 |
| 236 | 236 | * @access public |
| 237 | - * @return void |
|
| 237 | + * @return boolean |
|
| 238 | 238 | */ |
| 239 | 239 | function onQuickFormEvent($event, $arg, &$caller) |
| 240 | 240 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * Freeze the element so that only its value is returned |
| 62 | 62 | * |
| 63 | 63 | * @access public |
| 64 | - * @return void |
|
| 64 | + * @return boolean |
|
| 65 | 65 | */ |
| 66 | 66 | function freeze() |
| 67 | 67 | { |
@@ -8,8 +8,6 @@ |
||
| 8 | 8 | * @package chamilo.forum |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -use ChamiloSession as Session; |
|
| 12 | - |
|
| 13 | 11 | require_once '../inc/global.inc.php'; |
| 14 | 12 | |
| 15 | 13 | // The section (tabs). |
@@ -22,8 +22,6 @@ |
||
| 22 | 22 | * @package chamilo.forum |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -use ChamiloSession as Session; |
|
| 26 | - |
|
| 27 | 25 | // Including the global initialization file. |
| 28 | 26 | require_once '../inc/global.inc.php'; |
| 29 | 27 | |
@@ -22,8 +22,6 @@ |
||
| 22 | 22 | * @package chamilo.forum |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -use ChamiloSession as Session; |
|
| 26 | - |
|
| 27 | 25 | // Including the global initialization file. |
| 28 | 26 | require_once '../inc/global.inc.php'; |
| 29 | 27 | $current_course_tool = TOOL_FORUM; |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | - * @param doc_id id of document (id in mainDb.document table) |
|
| 243 | + * @param doc_id string of document (id in mainDb.document table) |
|
| 244 | 244 | * @author Sebastien Piraux <[email protected]> |
| 245 | 245 | * @desc Record information for upload event |
| 246 | 246 | * used in the works tool to record informations when |
@@ -314,6 +314,8 @@ discard block |
||
| 314 | 314 | * @param int session_id |
| 315 | 315 | * @param int learnpath_id (id of the learnpath) |
| 316 | 316 | * @param int learnpath_item_id (id of the learnpath_item) |
| 317 | + * @param integer $weighting |
|
| 318 | + * @param integer $session_id |
|
| 317 | 319 | * |
| 318 | 320 | * @author Sebastien Piraux <[email protected]> |
| 319 | 321 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -415,7 +417,9 @@ discard block |
||
| 415 | 417 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
| 416 | 418 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
| 417 | 419 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
| 418 | - * @return boolean Result of the insert query |
|
| 420 | + * @param integer $exe_id |
|
| 421 | + * @param integer $position |
|
| 422 | + * @return false|string Result of the insert query |
|
| 419 | 423 | */ |
| 420 | 424 | public static function saveQuestionAttempt( |
| 421 | 425 | $score, |
@@ -585,6 +589,7 @@ discard block |
||
| 585 | 589 | * @param int Whether this answer is correct (1) or not (0) |
| 586 | 590 | * @param string Coordinates of this point (e.g. 123;324) |
| 587 | 591 | * @param bool update results? |
| 592 | + * @param integer $exe_id |
|
| 588 | 593 | * @return boolean Result of the insert query |
| 589 | 594 | * @uses Course code and user_id from global scope $_cid and $_user |
| 590 | 595 | */ |
@@ -717,7 +722,6 @@ discard block |
||
| 717 | 722 | /** |
| 718 | 723 | * Get every email stored in the database |
| 719 | 724 | * |
| 720 | - * @param int $etId |
|
| 721 | 725 | * @return type |
| 722 | 726 | * @assert () !== false |
| 723 | 727 | */ |
@@ -785,11 +789,11 @@ discard block |
||
| 785 | 789 | /** |
| 786 | 790 | * Save the new message for one event and for one language |
| 787 | 791 | * |
| 788 | - * @param string $eventName |
|
| 792 | + * @param string $event_name |
|
| 789 | 793 | * @param array $users |
| 790 | 794 | * @param string $message |
| 791 | 795 | * @param string $subject |
| 792 | - * @param string $eventMessageLanguage |
|
| 796 | + * @param string $event_message_language |
|
| 793 | 797 | * @param int $activated |
| 794 | 798 | */ |
| 795 | 799 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -923,10 +927,10 @@ discard block |
||
| 923 | 927 | } |
| 924 | 928 | |
| 925 | 929 | /** |
| 926 | - * @param $user_id |
|
| 930 | + * @param integer $user_id |
|
| 927 | 931 | * @param $exerciseId |
| 928 | - * @param $lp_id |
|
| 929 | - * @param $lp_item_id |
|
| 932 | + * @param integer $lp_id |
|
| 933 | + * @param integer $lp_item_id |
|
| 930 | 934 | * @return int |
| 931 | 935 | */ |
| 932 | 936 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1103,6 +1107,7 @@ discard block |
||
| 1103 | 1107 | * @param int exercise id |
| 1104 | 1108 | * @param int $courseId |
| 1105 | 1109 | * @param int session id |
| 1110 | + * @param integer $user_id |
|
| 1106 | 1111 | * @return array with the results |
| 1107 | 1112 | * |
| 1108 | 1113 | */ |
@@ -1198,6 +1203,7 @@ discard block |
||
| 1198 | 1203 | * @param int exercise id |
| 1199 | 1204 | * @param int $courseId |
| 1200 | 1205 | * @param int session id |
| 1206 | + * @param integer $user_id |
|
| 1201 | 1207 | * @return array with the results |
| 1202 | 1208 | * |
| 1203 | 1209 | */ |
@@ -1238,6 +1244,7 @@ discard block |
||
| 1238 | 1244 | * @param int exercise id |
| 1239 | 1245 | * @param string course code |
| 1240 | 1246 | * @param int session id |
| 1247 | + * @param integer $exe_id |
|
| 1241 | 1248 | * @return array with the results |
| 1242 | 1249 | * |
| 1243 | 1250 | */ |
@@ -1287,6 +1294,8 @@ discard block |
||
| 1287 | 1294 | * @param int lp id |
| 1288 | 1295 | * @param int lp item id |
| 1289 | 1296 | * @param string order asc or desc |
| 1297 | + * @param integer $courseId |
|
| 1298 | + * @param string $order |
|
| 1290 | 1299 | * @return array with the results |
| 1291 | 1300 | * |
| 1292 | 1301 | */ |
@@ -1346,7 +1355,7 @@ discard block |
||
| 1346 | 1355 | * @param int exercise id |
| 1347 | 1356 | * @param int $courseId |
| 1348 | 1357 | * @param int session id |
| 1349 | - * @return array with the results |
|
| 1358 | + * @return string with the results |
|
| 1350 | 1359 | * |
| 1351 | 1360 | */ |
| 1352 | 1361 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1522,7 +1531,7 @@ discard block |
||
| 1522 | 1531 | * @param int exercise id |
| 1523 | 1532 | * @param int course id |
| 1524 | 1533 | * @param int session id |
| 1525 | - * @return array with the results |
|
| 1534 | + * @return integer with the results |
|
| 1526 | 1535 | * |
| 1527 | 1536 | */ |
| 1528 | 1537 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |
@@ -1773,7 +1782,7 @@ discard block |
||
| 1773 | 1782 | * @param string $virtualTime The amount of time to be added, in a hh:mm:ss format. If int, we consider it is expressed in hours. |
| 1774 | 1783 | * @param string $ip IP address to go on record for this time record |
| 1775 | 1784 | * |
| 1776 | - * @return True on successful insertion, false otherwise |
|
| 1785 | + * @return boolean on successful insertion, false otherwise |
|
| 1777 | 1786 | */ |
| 1778 | 1787 | public static function eventAddVirtualCourseTime( |
| 1779 | 1788 | $courseId, |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /* For licensing terms, see /license.txt */ |
| 3 | 3 | |
| 4 | -use ChamiloSession as Session; |
|
| 5 | - |
|
| 6 | 4 | require_once '../inc/global.inc.php'; |
| 7 | 5 | $current_course_tool = TOOL_STUDENTPUBLICATION; |
| 8 | 6 | |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /* For licensing terms, see /license.txt */ |
| 3 | 3 | |
| 4 | -use ChamiloSession as Session; |
|
| 5 | - |
|
| 6 | 4 | require_once '../inc/global.inc.php'; |
| 7 | 5 | $current_course_tool = TOOL_STUDENTPUBLICATION; |
| 8 | 6 | |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /* For licensing terms, see /license.txt */ |
| 3 | 3 | |
| 4 | -use ChamiloSession as Session; |
|
| 5 | - |
|
| 6 | 4 | require_once '../inc/global.inc.php'; |
| 7 | 5 | $current_course_tool = TOOL_STUDENTPUBLICATION; |
| 8 | 6 | |