@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Get description titles by default |
362 | - * @return array |
|
362 | + * @return string[] |
|
363 | 363 | */ |
364 | 364 | public function get_default_description_title() |
365 | 365 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * Get description titles editable by default |
381 | - * @return array |
|
381 | + * @return boolean[] |
|
382 | 382 | */ |
383 | 383 | public function get_default_description_title_editable() |
384 | 384 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | /** |
399 | 399 | * Get description icons by default |
400 | - * @return array |
|
400 | + * @return string[] |
|
401 | 401 | */ |
402 | 402 | public function get_default_description_icon() |
403 | 403 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Get questions by default for help |
420 | - * @return array |
|
420 | + * @return string[] |
|
421 | 421 | */ |
422 | 422 | public function get_default_question() |
423 | 423 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | |
437 | 437 | /** |
438 | 438 | * Get informations by default for help |
439 | - * @return array |
|
439 | + * @return string[] |
|
440 | 440 | */ |
441 | 441 | public function get_default_information() |
442 | 442 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | /** |
575 | 575 | * get progress of a description |
576 | 576 | * |
577 | - * @return int |
|
577 | + * @return string |
|
578 | 578 | */ |
579 | 579 | public function get_progress() |
580 | 580 | { |
@@ -238,7 +238,7 @@ |
||
238 | 238 | * Adds an optional recommendation in form of a php.ini configuration. |
239 | 239 | * |
240 | 240 | * @param string $cfgName The configuration name used for ini_get() |
241 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
241 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
242 | 242 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
243 | 243 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
244 | 244 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * @author Bart Mollet |
372 | 372 | * @param int $groupId iid |
373 | 373 | * @param string $course_code Default is current course |
374 | - * @return integer - number of groups deleted. |
|
374 | + * @return boolean - number of groups deleted. |
|
375 | 375 | */ |
376 | 376 | public static function delete_groups($groupId, $course_code = null) |
377 | 377 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * @param bool Whether self registration is allowed or not |
564 | 564 | * @param bool Whether self unregistration is allowed or not |
565 | 565 | * @param int $categoryId |
566 | - * @return bool TRUE if properties are successfully changed, false otherwise |
|
566 | + * @return Statement|null TRUE if properties are successfully changed, false otherwise |
|
567 | 567 | */ |
568 | 568 | public static function set_group_properties( |
569 | 569 | $group_id, |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * @param int $group_id The iid of the group |
717 | 717 | * @param string $course_code The course in which the group is (default = |
718 | 718 | * current course) |
719 | - * @return array The category |
|
719 | + * @return integer The category |
|
720 | 720 | */ |
721 | 721 | public static function get_category_from_group($group_id, $course_code = null) |
722 | 722 | { |
@@ -782,9 +782,9 @@ discard block |
||
782 | 782 | * Create group category |
783 | 783 | * @param string $title The title of the new category |
784 | 784 | * @param string $description The description of the new category |
785 | - * @param bool $self_registration_allowed |
|
786 | - * @param bool $self_unregistration_allowed |
|
787 | - * @param int $max_number_of_students |
|
785 | + * @param integer $self_registration_allowed |
|
786 | + * @param integer $self_unregistration_allowed |
|
787 | + * @param int $maximum_number_of_students |
|
788 | 788 | * @param int $groups_per_user |
789 | 789 | */ |
790 | 790 | public static function create_category( |
@@ -990,6 +990,8 @@ discard block |
||
990 | 990 | * @param int $limit |
991 | 991 | * @param bool $getCount |
992 | 992 | * @param int $courseId |
993 | + * @param string $column |
|
994 | + * @param string $direction |
|
993 | 995 | * @return array list of user id |
994 | 996 | */ |
995 | 997 | public static function get_users( |
@@ -1583,7 +1585,7 @@ discard block |
||
1583 | 1585 | /** |
1584 | 1586 | * Subscribe tutor(s) to a specified group in current course |
1585 | 1587 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1586 | - * @param int $group_id iid |
|
1588 | + * @param int $groupId iid |
|
1587 | 1589 | * @param int $course_id |
1588 | 1590 | * |
1589 | 1591 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1614,7 +1616,7 @@ discard block |
||
1614 | 1616 | * Unsubscribe user(s) from a specified group in current course |
1615 | 1617 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1616 | 1618 | * @param int $group_id iid |
1617 | - * @return bool TRUE if successful |
|
1619 | + * @return boolean|null TRUE if successful |
|
1618 | 1620 | */ |
1619 | 1621 | public static function unsubscribe_users($user_ids, $group_id) |
1620 | 1622 | { |
@@ -1633,7 +1635,7 @@ discard block |
||
1633 | 1635 | |
1634 | 1636 | /** |
1635 | 1637 | * Unsubscribe all users from one or more groups |
1636 | - * @param int $group_id iid |
|
1638 | + * @param integer $groupId iid |
|
1637 | 1639 | * @return bool TRUE if successful |
1638 | 1640 | */ |
1639 | 1641 | public static function unsubscribe_all_users($groupId) |
@@ -1781,6 +1783,7 @@ discard block |
||
1781 | 1783 | * |
1782 | 1784 | * @param $user_array_in list of users (must be sorted). |
1783 | 1785 | * @param string $compare_field, the field to be compared |
1786 | + * @param string $compare_field |
|
1784 | 1787 | */ |
1785 | 1788 | public static function filter_duplicates($user_array_in, $compare_field) |
1786 | 1789 | { |
@@ -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 |
@@ -313,6 +313,9 @@ discard block |
||
313 | 313 | * @param int session_id |
314 | 314 | * @param int learnpath_id (id of the learnpath) |
315 | 315 | * @param int learnpath_item_id (id of the learnpath_item) |
316 | + * @param integer $score |
|
317 | + * @param integer $weighting |
|
318 | + * @param integer $session_id |
|
316 | 319 | * |
317 | 320 | * @author Sebastien Piraux <[email protected]> |
318 | 321 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -414,7 +417,9 @@ discard block |
||
414 | 417 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
415 | 418 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
416 | 419 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
417 | - * @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 |
|
418 | 423 | */ |
419 | 424 | public static function saveQuestionAttempt( |
420 | 425 | $score, |
@@ -588,6 +593,8 @@ discard block |
||
588 | 593 | * @param int Whether this answer is correct (1) or not (0) |
589 | 594 | * @param string Coordinates of this point (e.g. 123;324) |
590 | 595 | * @param bool update results? |
596 | + * @param integer $exe_id |
|
597 | + * @param integer $correct |
|
591 | 598 | * @return boolean Result of the insert query |
592 | 599 | * @uses Course code and user_id from global scope $_cid and $_user |
593 | 600 | */ |
@@ -800,11 +807,11 @@ discard block |
||
800 | 807 | /** |
801 | 808 | * Save the new message for one event and for one language |
802 | 809 | * |
803 | - * @param string $eventName |
|
810 | + * @param string $event_name |
|
804 | 811 | * @param array $users |
805 | 812 | * @param string $message |
806 | 813 | * @param string $subject |
807 | - * @param string $eventMessageLanguage |
|
814 | + * @param string $event_message_language |
|
808 | 815 | * @param int $activated |
809 | 816 | */ |
810 | 817 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -938,10 +945,10 @@ discard block |
||
938 | 945 | } |
939 | 946 | |
940 | 947 | /** |
941 | - * @param $user_id |
|
948 | + * @param integer $user_id |
|
942 | 949 | * @param $exerciseId |
943 | - * @param $lp_id |
|
944 | - * @param $lp_item_id |
|
950 | + * @param integer $lp_id |
|
951 | + * @param integer $lp_item_id |
|
945 | 952 | * @return int |
946 | 953 | */ |
947 | 954 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1118,6 +1125,7 @@ discard block |
||
1118 | 1125 | * @param int exercise id |
1119 | 1126 | * @param int $courseId |
1120 | 1127 | * @param int session id |
1128 | + * @param integer $user_id |
|
1121 | 1129 | * @return array with the results |
1122 | 1130 | * |
1123 | 1131 | */ |
@@ -1213,6 +1221,7 @@ discard block |
||
1213 | 1221 | * @param int exercise id |
1214 | 1222 | * @param int $courseId |
1215 | 1223 | * @param int session id |
1224 | + * @param integer $user_id |
|
1216 | 1225 | * @return array with the results |
1217 | 1226 | * |
1218 | 1227 | */ |
@@ -1301,6 +1310,8 @@ discard block |
||
1301 | 1310 | * @param int lp id |
1302 | 1311 | * @param int lp item id |
1303 | 1312 | * @param string order asc or desc |
1313 | + * @param integer $courseId |
|
1314 | + * @param string $order |
|
1304 | 1315 | * @return array with the results |
1305 | 1316 | * |
1306 | 1317 | */ |
@@ -1367,7 +1378,7 @@ discard block |
||
1367 | 1378 | * @param int exercise id |
1368 | 1379 | * @param int $courseId |
1369 | 1380 | * @param int session id |
1370 | - * @return array with the results |
|
1381 | + * @return string with the results |
|
1371 | 1382 | * |
1372 | 1383 | */ |
1373 | 1384 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1538,7 +1549,7 @@ discard block |
||
1538 | 1549 | * @param int exercise id |
1539 | 1550 | * @param int course id |
1540 | 1551 | * @param int session id |
1541 | - * @return array with the results |
|
1552 | + * @return integer with the results |
|
1542 | 1553 | * |
1543 | 1554 | */ |
1544 | 1555 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |
@@ -498,7 +498,7 @@ |
||
498 | 498 | * @param int User id |
499 | 499 | * @param string plugin path |
500 | 500 | * @param integer $user_id |
501 | - * @return bool |
|
501 | + * @return false|string |
|
502 | 502 | */ |
503 | 503 | public static function close_user_block($user_id, $path) |
504 | 504 | { |
@@ -51,7 +51,8 @@ |
||
51 | 51 | * @param string $objetives |
52 | 52 | * @param string $target_audience |
53 | 53 | * @param int $user_id |
54 | - * @return mixed The database id of the newly created course request or FALSE on failure. |
|
54 | + * @param boolean $exemplary_content |
|
55 | + * @return false|string The database id of the newly created course request or FALSE on failure. |
|
55 | 56 | */ |
56 | 57 | public static function create_course_request( |
57 | 58 | $wanted_code, |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | |
286 | 286 | /** |
287 | 287 | * @param $item |
288 | - * @param $ignore_score_color |
|
288 | + * @param boolean $ignore_score_color |
|
289 | 289 | * @return string |
290 | 290 | */ |
291 | 291 | private function build_average_column($item, $ignore_score_color) |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | /** |
308 | 308 | * @param $item |
309 | - * @param $ignore_score_color |
|
309 | + * @param boolean $ignore_score_color |
|
310 | 310 | * @return string |
311 | 311 | */ |
312 | 312 | private function build_result_column($item, $ignore_score_color) |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | |
324 | 324 | /** |
325 | 325 | * @param $item |
326 | - * @param $ignore_score_color |
|
326 | + * @param boolean $ignore_score_color |
|
327 | 327 | * @return string |
328 | 328 | */ |
329 | 329 | private function build_mask_column($item, $ignore_score_color) |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | |
340 | 340 | /** |
341 | 341 | * @param $coursecode |
342 | - * @return mixed |
|
342 | + * @return string |
|
343 | 343 | */ |
344 | 344 | private function get_course_name_from_code_cached($coursecode) |
345 | 345 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @param string |
279 | 279 | * @param string |
280 | - * @return true if the user is allowed to see the document, false otherwise |
|
280 | + * @return boolean if the user is allowed to see the document, false otherwise |
|
281 | 281 | * @author Sergio A Kessler, first version |
282 | 282 | * @author Roan Embrechts, bugfix |
283 | 283 | * @todo not only check if a file is visible, but also check if the user is allowed to see the file?? |
@@ -1558,7 +1558,7 @@ discard block |
||
1558 | 1558 | * Return true if the documentpath have visibility=1 as |
1559 | 1559 | * item_property (you should use the is_visible_by_id) |
1560 | 1560 | * |
1561 | - * @param string $document_path the relative complete path of the document |
|
1561 | + * @param string $doc_path the relative complete path of the document |
|
1562 | 1562 | * @param array $course the _course array info of the document's course |
1563 | 1563 | * @param int |
1564 | 1564 | * @param string |
@@ -1644,6 +1644,7 @@ discard block |
||
1644 | 1644 | * @param int |
1645 | 1645 | * @param int |
1646 | 1646 | * @param bool |
1647 | + * @param integer $user_id |
|
1647 | 1648 | * @return bool |
1648 | 1649 | */ |
1649 | 1650 | public static function is_visible_by_id( |
@@ -1995,7 +1996,7 @@ discard block |
||
1995 | 1996 | * Remove default certificate |
1996 | 1997 | * @param string $course_id The course code |
1997 | 1998 | * @param int $default_certificate_id The document id of the default certificate |
1998 | - * @return void |
|
1999 | + * @return false|null |
|
1999 | 2000 | */ |
2000 | 2001 | public static function remove_attach_certificate($course_id, $default_certificate_id) |
2001 | 2002 | { |
@@ -2128,6 +2129,7 @@ discard block |
||
2128 | 2129 | * @param bool is file or string html |
2129 | 2130 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
2130 | 2131 | * @param int level of recursivity we're in |
2132 | + * @param string $source_html |
|
2131 | 2133 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
2132 | 2134 | * if the file should be copied into the zip or just linked |
2133 | 2135 | */ |
@@ -2970,6 +2972,7 @@ discard block |
||
2970 | 2972 | |
2971 | 2973 | /** |
2972 | 2974 | * Obtains the text inside the file with the right parser |
2975 | + * @param string $doc_path |
|
2973 | 2976 | */ |
2974 | 2977 | public static function get_text_content($doc_path, $doc_mime) |
2975 | 2978 | { |
@@ -3221,6 +3224,7 @@ discard block |
||
3221 | 3224 | * Shows a play icon next to the document title in the document list |
3222 | 3225 | * @param int |
3223 | 3226 | * @param string |
3227 | + * @param integer|null $i |
|
3224 | 3228 | * @return string html content |
3225 | 3229 | */ |
3226 | 3230 | public static function generate_media_preview($i, $type = 'simple') |
@@ -4122,7 +4126,7 @@ discard block |
||
4122 | 4126 | } |
4123 | 4127 | |
4124 | 4128 | /** |
4125 | - * @return array |
|
4129 | + * @return string[] |
|
4126 | 4130 | */ |
4127 | 4131 | public static function get_web_odf_extension_list() |
4128 | 4132 | { |
@@ -4131,10 +4135,10 @@ discard block |
||
4131 | 4135 | |
4132 | 4136 | /** |
4133 | 4137 | * Set of extension allowed to use Jodconverter |
4134 | - * @param $mode 'from' |
|
4138 | + * @param string $mode 'from' |
|
4135 | 4139 | * 'to' |
4136 | 4140 | * 'all' |
4137 | - * @param $format 'text' |
|
4141 | + * @param string $format 'text' |
|
4138 | 4142 | * 'spreadsheet' |
4139 | 4143 | * 'presentation' |
4140 | 4144 | * 'drawing' |
@@ -4338,7 +4342,7 @@ discard block |
||
4338 | 4342 | } |
4339 | 4343 | |
4340 | 4344 | /** |
4341 | - * @return array |
|
4345 | + * @return string[] |
|
4342 | 4346 | */ |
4343 | 4347 | public static function get_system_folders() |
4344 | 4348 | { |
@@ -4356,7 +4360,7 @@ discard block |
||
4356 | 4360 | } |
4357 | 4361 | |
4358 | 4362 | /** |
4359 | - * @return array |
|
4363 | + * @return string[] |
|
4360 | 4364 | */ |
4361 | 4365 | public static function getProtectedFolderFromStudent() |
4362 | 4366 | { |
@@ -4512,7 +4516,7 @@ discard block |
||
4512 | 4516 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
4513 | 4517 | * @param string $wavFile |
4514 | 4518 | * @param bool $removeWavFileIfSuccess |
4515 | - * @return bool |
|
4519 | + * @return string|false |
|
4516 | 4520 | */ |
4517 | 4521 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
4518 | 4522 | { |
@@ -5088,6 +5092,8 @@ discard block |
||
5088 | 5092 | * @param string The current folder (path inside of the "document" directory, including the prefix "/") |
5089 | 5093 | * @param string Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root) |
5090 | 5094 | * @param boolean Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form) |
5095 | + * @param string $document_id |
|
5096 | + * @param FormValidator $form |
|
5091 | 5097 | |
5092 | 5098 | * @return string html form |
5093 | 5099 | */ |
@@ -5596,9 +5602,6 @@ discard block |
||
5596 | 5602 | /** |
5597 | 5603 | * Creates the row of edit icons for a file/folder |
5598 | 5604 | * |
5599 | - * @param string $curdirpath current path (cfr open folder) |
|
5600 | - * @param string $type (file/folder) |
|
5601 | - * @param string $path dbase path of file/folder |
|
5602 | 5605 | * @param int $visibility (1/0) |
5603 | 5606 | * @param int $id dbase id of the document |
5604 | 5607 | * @return string html img tags with hyperlinks |
@@ -5947,7 +5950,7 @@ discard block |
||
5947 | 5950 | /** |
5948 | 5951 | * Gets the path translated with title of docs and folders |
5949 | 5952 | * @param string $path the real path |
5950 | - * @return the path which should be displayed |
|
5953 | + * @return string path which should be displayed |
|
5951 | 5954 | */ |
5952 | 5955 | public static function get_titles_of_path($path) |
5953 | 5956 | { |
@@ -6003,7 +6006,8 @@ discard block |
||
6003 | 6006 | |
6004 | 6007 | /** |
6005 | 6008 | * Checks whether the user is in shared folder |
6006 | - * @return return bool Return true when user is into shared folder |
|
6009 | + * @param integer $current_session_id |
|
6010 | + * @return boolean bool Return true when user is into shared folder |
|
6007 | 6011 | */ |
6008 | 6012 | public static function is_shared_folder($curdirpath, $current_session_id) |
6009 | 6013 | { |
@@ -6019,7 +6023,7 @@ discard block |
||
6019 | 6023 | |
6020 | 6024 | /** |
6021 | 6025 | * Checks whether the user is into any user shared folder |
6022 | - * @return return bool Return true when user is in any user shared folder |
|
6026 | + * @return boolean bool Return true when user is in any user shared folder |
|
6023 | 6027 | */ |
6024 | 6028 | public static function is_any_user_shared_folder($path, $current_session_id) |
6025 | 6029 | { |
@@ -6233,7 +6237,7 @@ discard block |
||
6233 | 6237 | * @param int $id |
6234 | 6238 | * @param array $courseInfo |
6235 | 6239 | * @param int $sessionId |
6236 | - * @return bool |
|
6240 | + * @return boolean|null |
|
6237 | 6241 | */ |
6238 | 6242 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
6239 | 6243 | { |
@@ -6252,7 +6256,7 @@ discard block |
||
6252 | 6256 | * @param array $courseInfo |
6253 | 6257 | * @param int $sessionId |
6254 | 6258 | * |
6255 | - * @return bool |
|
6259 | + * @return false|null |
|
6256 | 6260 | */ |
6257 | 6261 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
6258 | 6262 | { |
@@ -6291,7 +6295,7 @@ discard block |
||
6291 | 6295 | * @param array $courseInfo |
6292 | 6296 | * @param int $sessionId |
6293 | 6297 | * |
6294 | - * @return bool |
|
6298 | + * @return false|null |
|
6295 | 6299 | */ |
6296 | 6300 | public static function deleteDocumentsFromSession($courseInfo, $sessionId) |
6297 | 6301 | { |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | |
750 | 750 | /** |
751 | 751 | * @param int $course_id |
752 | - * @return bool|string |
|
752 | + * @return string|false |
|
753 | 753 | */ |
754 | 754 | public function show_message_resource_delete($course_id) |
755 | 755 | { |
@@ -1554,7 +1554,7 @@ discard block |
||
1554 | 1554 | * Retrieve all categories inside a course independent category |
1555 | 1555 | * that should be visible to a student. |
1556 | 1556 | * @param integer $cat_id parent category |
1557 | - * @param $stud_id student id |
|
1557 | + * @param integer $stud_id student id |
|
1558 | 1558 | * @param $cats optional: if defined, the categories will be added to this array |
1559 | 1559 | */ |
1560 | 1560 | public function get_independent_categories_with_result_for_student($cat_id, $stud_id, $cats = array()) |