@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * @return array |
|
| 126 | + * @return string[] |
|
| 127 | 127 | */ |
| 128 | 128 | public static function getValidExtraFieldTypes() |
| 129 | 129 | { |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | |
| 200 | 200 | /** |
| 201 | 201 | * @param array $conditions |
| 202 | - * @param null $order_field_options_by |
|
| 202 | + * @param string $order_field_options_by |
|
| 203 | 203 | * |
| 204 | 204 | * @return array |
| 205 | 205 | */ |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | /** |
| 238 | 238 | * @param string $variable |
| 239 | 239 | * |
| 240 | - * @return array|bool |
|
| 240 | + * @return integer |
|
| 241 | 241 | */ |
| 242 | 242 | public function get_handler_field_info_by_field_variable($variable) |
| 243 | 243 | { |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | /** |
| 320 | 320 | * @param string $handler |
| 321 | 321 | * |
| 322 | - * @return array |
|
| 322 | + * @return string[] |
|
| 323 | 323 | */ |
| 324 | 324 | public static function get_extra_fields_by_handler($handler) |
| 325 | 325 | { |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | } |
| 497 | 497 | |
| 498 | 498 | /** |
| 499 | - * @return array |
|
| 499 | + * @return string[] |
|
| 500 | 500 | */ |
| 501 | 501 | public function get_field_types() |
| 502 | 502 | { |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | /** |
| 507 | 507 | * @param int $id |
| 508 | 508 | * |
| 509 | - * @return null |
|
| 509 | + * @return string|null |
|
| 510 | 510 | */ |
| 511 | 511 | public function get_field_type_by_id($id) |
| 512 | 512 | { |
@@ -691,7 +691,6 @@ discard block |
||
| 691 | 691 | * @param FormValidator $form |
| 692 | 692 | * @param array $extraData |
| 693 | 693 | * @param bool $admin_permissions |
| 694 | - * @param int $user_id |
|
| 695 | 694 | * @param array $extra |
| 696 | 695 | * @param int $itemId |
| 697 | 696 | * @param array $exclude variables of extra field to exclude |
@@ -1592,7 +1591,7 @@ discard block |
||
| 1592 | 1591 | } |
| 1593 | 1592 | |
| 1594 | 1593 | /** |
| 1595 | - * @return array |
|
| 1594 | + * @return string[] |
|
| 1596 | 1595 | */ |
| 1597 | 1596 | public function getJqgridColumnNames() |
| 1598 | 1597 | { |
@@ -1832,7 +1831,7 @@ discard block |
||
| 1832 | 1831 | } |
| 1833 | 1832 | |
| 1834 | 1833 | /** |
| 1835 | - * @param array $columns |
|
| 1834 | + * @param string[] $columns |
|
| 1836 | 1835 | * @param array $column_model |
| 1837 | 1836 | * @param array $extraFields |
| 1838 | 1837 | * @return array |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * Validates the received active connection data with the database |
| 93 | - * @return bool Return the loginFailed variable value to local.inc.php |
|
| 93 | + * @return null|false Return the loginFailed variable value to local.inc.php |
|
| 94 | 94 | */ |
| 95 | 95 | public function check_user() |
| 96 | 96 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @return bool |
|
| 41 | + * @return false|null |
|
| 42 | 42 | */ |
| 43 | 43 | public function create_user_folder() |
| 44 | 44 | { |
@@ -65,6 +65,9 @@ |
||
| 65 | 65 | |
| 66 | 66 | /* FUNCTIONS */ |
| 67 | 67 | |
| 68 | +/** |
|
| 69 | + * @param string $name |
|
| 70 | + */ |
|
| 68 | 71 | function make_select_session_list($name, $sessions, $attr = array()) |
| 69 | 72 | { |
| 70 | 73 | |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | * @param array $arr1 first array |
| 213 | 213 | * @param array $arr2 second array |
| 214 | 214 | * |
| 215 | - * @return array difference between the two arrays |
|
| 215 | + * @return string difference between the two arrays |
|
| 216 | 216 | */ |
| 217 | 217 | function diff($arr1, $arr2) |
| 218 | 218 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * search string |
| 24 | 24 | * @param string Search string |
| 25 | 25 | * @param int Deprecated param |
| 26 | - * @return string Xajax response block |
|
| 26 | + * @return xajaxResponse Xajax response block |
|
| 27 | 27 | * @assert () === false |
| 28 | 28 | */ |
| 29 | 29 | function search_users($needle, $id) |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * Available driver list. |
| 87 | - * @return array |
|
| 87 | + * @return string[] |
|
| 88 | 88 | */ |
| 89 | 89 | private function getDefaultDriverList() |
| 90 | 90 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | - * @param doc_id id of document (id in mainDb.document table) |
|
| 242 | + * @param doc_id string of document (id in mainDb.document table) |
|
| 243 | 243 | * @author Sebastien Piraux <[email protected]> |
| 244 | 244 | * @desc Record information for upload event |
| 245 | 245 | * used in the works tool to record informations when |
@@ -311,6 +311,8 @@ discard block |
||
| 311 | 311 | * @param int session_id |
| 312 | 312 | * @param int learnpath_id (id of the learnpath) |
| 313 | 313 | * @param int learnpath_item_id (id of the learnpath_item) |
| 314 | + * @param integer $weighting |
|
| 315 | + * @param integer $session_id |
|
| 314 | 316 | * |
| 315 | 317 | * @author Sebastien Piraux <[email protected]> |
| 316 | 318 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -412,7 +414,9 @@ discard block |
||
| 412 | 414 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
| 413 | 415 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
| 414 | 416 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
| 415 | - * @return boolean Result of the insert query |
|
| 417 | + * @param integer $exe_id |
|
| 418 | + * @param integer $position |
|
| 419 | + * @return false|string Result of the insert query |
|
| 416 | 420 | */ |
| 417 | 421 | public static function saveQuestionAttempt( |
| 418 | 422 | $score, |
@@ -582,6 +586,7 @@ discard block |
||
| 582 | 586 | * @param int Whether this answer is correct (1) or not (0) |
| 583 | 587 | * @param string Coordinates of this point (e.g. 123;324) |
| 584 | 588 | * @param bool update results? |
| 589 | + * @param integer $exe_id |
|
| 585 | 590 | * @return boolean Result of the insert query |
| 586 | 591 | * @uses Course code and user_id from global scope $_cid and $_user |
| 587 | 592 | */ |
@@ -714,7 +719,6 @@ discard block |
||
| 714 | 719 | /** |
| 715 | 720 | * Get every email stored in the database |
| 716 | 721 | * |
| 717 | - * @param int $etId |
|
| 718 | 722 | * @return type |
| 719 | 723 | * @assert () !== false |
| 720 | 724 | */ |
@@ -782,11 +786,11 @@ discard block |
||
| 782 | 786 | /** |
| 783 | 787 | * Save the new message for one event and for one language |
| 784 | 788 | * |
| 785 | - * @param string $eventName |
|
| 789 | + * @param string $event_name |
|
| 786 | 790 | * @param array $users |
| 787 | 791 | * @param string $message |
| 788 | 792 | * @param string $subject |
| 789 | - * @param string $eventMessageLanguage |
|
| 793 | + * @param string $event_message_language |
|
| 790 | 794 | * @param int $activated |
| 791 | 795 | */ |
| 792 | 796 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -920,10 +924,10 @@ discard block |
||
| 920 | 924 | } |
| 921 | 925 | |
| 922 | 926 | /** |
| 923 | - * @param $user_id |
|
| 927 | + * @param integer $user_id |
|
| 924 | 928 | * @param $exerciseId |
| 925 | - * @param $lp_id |
|
| 926 | - * @param $lp_item_id |
|
| 929 | + * @param integer $lp_id |
|
| 930 | + * @param integer $lp_item_id |
|
| 927 | 931 | * @return int |
| 928 | 932 | */ |
| 929 | 933 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1100,6 +1104,7 @@ discard block |
||
| 1100 | 1104 | * @param int exercise id |
| 1101 | 1105 | * @param int $courseId |
| 1102 | 1106 | * @param int session id |
| 1107 | + * @param integer $user_id |
|
| 1103 | 1108 | * @return array with the results |
| 1104 | 1109 | * |
| 1105 | 1110 | */ |
@@ -1195,6 +1200,7 @@ discard block |
||
| 1195 | 1200 | * @param int exercise id |
| 1196 | 1201 | * @param int $courseId |
| 1197 | 1202 | * @param int session id |
| 1203 | + * @param integer $user_id |
|
| 1198 | 1204 | * @return array with the results |
| 1199 | 1205 | * |
| 1200 | 1206 | */ |
@@ -1235,6 +1241,7 @@ discard block |
||
| 1235 | 1241 | * @param int exercise id |
| 1236 | 1242 | * @param string course code |
| 1237 | 1243 | * @param int session id |
| 1244 | + * @param integer $exe_id |
|
| 1238 | 1245 | * @return array with the results |
| 1239 | 1246 | * |
| 1240 | 1247 | */ |
@@ -1284,6 +1291,8 @@ discard block |
||
| 1284 | 1291 | * @param int lp id |
| 1285 | 1292 | * @param int lp item id |
| 1286 | 1293 | * @param string order asc or desc |
| 1294 | + * @param integer $courseId |
|
| 1295 | + * @param string $order |
|
| 1287 | 1296 | * @return array with the results |
| 1288 | 1297 | * |
| 1289 | 1298 | */ |
@@ -1343,7 +1352,7 @@ discard block |
||
| 1343 | 1352 | * @param int exercise id |
| 1344 | 1353 | * @param int $courseId |
| 1345 | 1354 | * @param int session id |
| 1346 | - * @return array with the results |
|
| 1355 | + * @return string with the results |
|
| 1347 | 1356 | * |
| 1348 | 1357 | */ |
| 1349 | 1358 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1519,7 +1528,7 @@ discard block |
||
| 1519 | 1528 | * @param int exercise id |
| 1520 | 1529 | * @param int course id |
| 1521 | 1530 | * @param int session id |
| 1522 | - * @return array with the results |
|
| 1531 | + * @return integer with the results |
|
| 1523 | 1532 | * |
| 1524 | 1533 | */ |
| 1525 | 1534 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |
@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $name |
|
| 122 | + */ |
|
| 120 | 123 | public function set_name($name) |
| 121 | 124 | { |
| 122 | 125 | if ($this->is_valid_link()) { |
@@ -124,6 +127,9 @@ discard block |
||
| 124 | 127 | } |
| 125 | 128 | } |
| 126 | 129 | |
| 130 | + /** |
|
| 131 | + * @param string $description |
|
| 132 | + */ |
|
| 127 | 133 | public function set_description($description) |
| 128 | 134 | { |
| 129 | 135 | if ($this->is_valid_link()) { |
@@ -131,6 +137,9 @@ discard block |
||
| 131 | 137 | } |
| 132 | 138 | } |
| 133 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $max |
|
| 142 | + */ |
|
| 134 | 143 | public function set_max($max) |
| 135 | 144 | { |
| 136 | 145 | if ($this->is_valid_link()) { |