@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * @param int $status (optional) The user's status in the course |
717 | 717 | * @param int The user category in which this subscription will be classified |
718 | 718 | * |
719 | - * @return boolean true if subscription succeeds, boolean false otherwise. |
|
719 | + * @return false|string true if subscription succeeds, boolean false otherwise. |
|
720 | 720 | * @assert ('', '') === false |
721 | 721 | */ |
722 | 722 | public static function add_user_to_course($user_id, $courseCode, $status = STUDENT, $userCourseCategoryId = 0) |
@@ -788,7 +788,7 @@ discard block |
||
788 | 788 | * Checks wether a parameter exists. |
789 | 789 | * If it doesn't, the function displays an error message. |
790 | 790 | * |
791 | - * @return true if parameter is set and not empty, false otherwise |
|
791 | + * @return boolean if parameter is set and not empty, false otherwise |
|
792 | 792 | * @todo move function to better place, main_api ? |
793 | 793 | */ |
794 | 794 | public static function check_parameter($parameter, $error_message) |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | } |
813 | 813 | |
814 | 814 | /** |
815 | - * @return true if there already are one or more courses |
|
815 | + * @return boolean if there already are one or more courses |
|
816 | 816 | * with the same code OR visual_code (visualcode), false otherwise |
817 | 817 | */ |
818 | 818 | public static function course_code_exists($wanted_course_code) |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | /** |
986 | 986 | * @param int $userId |
987 | 987 | * @param array $courseInfo |
988 | - * @return bool |
|
988 | + * @return boolean|null |
|
989 | 989 | */ |
990 | 990 | public static function isUserSubscribedInCourseAsDrh($userId, $courseInfo) |
991 | 991 | { |
@@ -1091,10 +1091,10 @@ discard block |
||
1091 | 1091 | /** |
1092 | 1092 | * Is the user a teacher in the given course? |
1093 | 1093 | * |
1094 | - * @param $user_id , the id (int) of the user |
|
1094 | + * @param integer $user_id , the id (int) of the user |
|
1095 | 1095 | * @param $course_code , the course code |
1096 | 1096 | * |
1097 | - * @return true if the user is a teacher in the course, false otherwise |
|
1097 | + * @return boolean if the user is a teacher in the course, false otherwise |
|
1098 | 1098 | */ |
1099 | 1099 | public static function is_course_teacher($user_id, $course_code) |
1100 | 1100 | { |
@@ -1123,7 +1123,7 @@ discard block |
||
1123 | 1123 | * @param int the id of the user |
1124 | 1124 | * @param int $courseId |
1125 | 1125 | * @deprecated linked_courses definition doesn't exists |
1126 | - * @return true if the user is registered in the real course or linked courses, false otherwise |
|
1126 | + * @return boolean if the user is registered in the real course or linked courses, false otherwise |
|
1127 | 1127 | */ |
1128 | 1128 | public static function is_user_subscribed_in_real_or_linked_course($user_id, $courseId, $session_id = '') |
1129 | 1129 | { |
@@ -1194,9 +1194,9 @@ discard block |
||
1194 | 1194 | * @param string $order_by the field to order the users by. |
1195 | 1195 | * Valid values are 'lastname', 'firstname', 'username', 'email', 'official_code' OR a part of a SQL statement |
1196 | 1196 | * that starts with ORDER BY ... |
1197 | - * @param null $filter_by_status if using the session_id: 0 or 2 (student, coach), |
|
1197 | + * @param integer|null $filter_by_status if using the session_id: 0 or 2 (student, coach), |
|
1198 | 1198 | * if using session_id = 0 STUDENT or COURSEMANAGER |
1199 | - * @param null $return_count |
|
1199 | + * @param boolean|null $return_count |
|
1200 | 1200 | * @param bool $add_reports |
1201 | 1201 | * @param bool $resumed_report |
1202 | 1202 | * @param array $extra_field |
@@ -1943,7 +1943,7 @@ discard block |
||
1943 | 1943 | * @param int $courseId |
1944 | 1944 | * @param string $separator |
1945 | 1945 | * @param bool $add_link_to_profile |
1946 | - * @return null|string |
|
1946 | + * @return string |
|
1947 | 1947 | */ |
1948 | 1948 | public static function get_coachs_from_course_to_string( |
1949 | 1949 | $session_id = 0, |
@@ -2016,7 +2016,7 @@ discard block |
||
2016 | 2016 | * Get the list of groups from the course |
2017 | 2017 | * @param string $course_code |
2018 | 2018 | * @param int $session_id Session ID (optional) |
2019 | - * @param boolean $in_get_empty_group get empty groups (optional) |
|
2019 | + * @param integer $in_get_empty_group get empty groups (optional) |
|
2020 | 2020 | * @return array List of groups info |
2021 | 2021 | */ |
2022 | 2022 | public static function get_group_list_of_course($course_code, $session_id = 0, $in_get_empty_group = 0) |
@@ -2072,6 +2072,7 @@ discard block |
||
2072 | 2072 | * course. |
2073 | 2073 | * |
2074 | 2074 | * @param string The code of the course to delete |
2075 | + * @param string $code |
|
2075 | 2076 | * @todo When deleting a virtual course: unsubscribe users from that virtual |
2076 | 2077 | * course from the groups in the real course if they are not subscribed in |
2077 | 2078 | * that real course. |
@@ -2283,6 +2284,7 @@ discard block |
||
2283 | 2284 | * Sort courses for a specific user ?? |
2284 | 2285 | * @param int User ID |
2285 | 2286 | * @param string Course code |
2287 | + * @param integer $user_id |
|
2286 | 2288 | * @return int Minimum course order |
2287 | 2289 | * @todo Review documentation |
2288 | 2290 | */ |
@@ -2360,7 +2362,7 @@ discard block |
||
2360 | 2362 | * check if course exists |
2361 | 2363 | * @param string course_code |
2362 | 2364 | * @param string whether to accept virtual course codes or not |
2363 | - * @return true if exists, false else |
|
2365 | + * @return integer if exists, false else |
|
2364 | 2366 | */ |
2365 | 2367 | public static function course_exists($course_code, $accept_virtual = false) |
2366 | 2368 | { |
@@ -2379,9 +2381,9 @@ discard block |
||
2379 | 2381 | * Send an email to tutor after the auth-suscription of a student in your course |
2380 | 2382 | * @author Carlos Vargas <[email protected]>, Dokeos Latino |
2381 | 2383 | * @param int $user_id the id of the user |
2382 | - * @param string $course_code the course code |
|
2384 | + * @param string $courseId the course code |
|
2383 | 2385 | * @param bool $send_to_tutor_also |
2384 | - * @return string we return the message that is displayed when the action is successful |
|
2386 | + * @return false|null we return the message that is displayed when the action is successful |
|
2385 | 2387 | */ |
2386 | 2388 | public static function email_to_tutor($user_id, $courseId, $send_to_tutor_also = false) |
2387 | 2389 | { |
@@ -2624,6 +2626,7 @@ discard block |
||
2624 | 2626 | /** |
2625 | 2627 | * Get emails of tutors to course |
2626 | 2628 | * @param string Visual code |
2629 | + * @param integer $courseId |
|
2627 | 2630 | * @return array List of emails of tutors to course |
2628 | 2631 | * @author @author Carlos Vargas <[email protected]>, Dokeos Latino |
2629 | 2632 | * */ |
@@ -2647,6 +2650,7 @@ discard block |
||
2647 | 2650 | * Get coaches emails by session |
2648 | 2651 | * @param int session id |
2649 | 2652 | * @param int $courseId |
2653 | + * @param integer $session_id |
|
2650 | 2654 | * @return array array(email => name_tutor) by coach |
2651 | 2655 | * @author Carlos Vargas <[email protected]> |
2652 | 2656 | */ |
@@ -2695,7 +2699,9 @@ discard block |
||
2695 | 2699 | * @param string Field's internal variable name |
2696 | 2700 | * @param int Field's type |
2697 | 2701 | * @param string Field's language var name |
2698 | - * @return int new extra field id |
|
2702 | + * @param integer $fieldType |
|
2703 | + * @param string $default |
|
2704 | + * @return boolean new extra field id |
|
2699 | 2705 | */ |
2700 | 2706 | public static function create_course_extra_field($variable, $fieldType, $displayText, $default) |
2701 | 2707 | { |
@@ -2717,7 +2723,7 @@ discard block |
||
2717 | 2723 | * @param int Course id |
2718 | 2724 | * @param string Attribute name |
2719 | 2725 | * @param string Attribute value |
2720 | - * @return bool True if attribute was successfully updated, |
|
2726 | + * @return Doctrine\DBAL\Driver\Statement|null True if attribute was successfully updated, |
|
2721 | 2727 | * false if course was not found or attribute name is invalid |
2722 | 2728 | */ |
2723 | 2729 | public static function update_attribute($id, $name, $value) |
@@ -2735,7 +2741,7 @@ discard block |
||
2735 | 2741 | * |
2736 | 2742 | * @param int Course id |
2737 | 2743 | * @param array Associative array with field names as keys and field values as values |
2738 | - * @return bool True if update was successful, false otherwise |
|
2744 | + * @return Doctrine\DBAL\Driver\Statement|null True if update was successful, false otherwise |
|
2739 | 2745 | */ |
2740 | 2746 | public static function update_attributes($id, $attributes) |
2741 | 2747 | { |
@@ -2761,7 +2767,7 @@ discard block |
||
2761 | 2767 | * @param integer Course ID |
2762 | 2768 | * @param string Field variable name |
2763 | 2769 | * @param string Field value |
2764 | - * @return boolean true if field updated, false otherwise |
|
2770 | + * @return boolean|null true if field updated, false otherwise |
|
2765 | 2771 | */ |
2766 | 2772 | public static function update_course_extra_field_value($course_code, $variable, $value = '') |
2767 | 2773 | { |
@@ -3483,6 +3489,7 @@ discard block |
||
3483 | 3489 | * @uses displayCoursesInCategory() to display the courses themselves |
3484 | 3490 | * @param int user id |
3485 | 3491 | * @param bool Whether to show the document quick-loader or not |
3492 | + * @param integer $user_id |
|
3486 | 3493 | * @return string |
3487 | 3494 | */ |
3488 | 3495 | public static function display_courses($user_id, $load_dirs = false) |
@@ -4057,6 +4064,8 @@ discard block |
||
4057 | 4064 | * @param int source session id |
4058 | 4065 | * @param string destination course code |
4059 | 4066 | * @param int destination session id |
4067 | + * @param integer $source_session_id |
|
4068 | + * @param integer $destination_session_id |
|
4060 | 4069 | * @return bool |
4061 | 4070 | */ |
4062 | 4071 | public static function copy_course( |
@@ -4091,6 +4100,7 @@ discard block |
||
4091 | 4100 | * @param int source session id |
4092 | 4101 | * @param int destination session id |
4093 | 4102 | * @param bool new copied tools (Exercises and LPs)will be set to invisible by default? |
4103 | + * @param string $new_title |
|
4094 | 4104 | * |
4095 | 4105 | * @return array |
4096 | 4106 | */ |
@@ -4344,6 +4354,7 @@ discard block |
||
4344 | 4354 | * @param int course id |
4345 | 4355 | * @param int session id |
4346 | 4356 | * @param id url id |
4357 | + * @param integer $session_id |
|
4347 | 4358 | * @return array |
4348 | 4359 | **/ |
4349 | 4360 | public static function update_course_ranking( |
@@ -4426,7 +4437,7 @@ discard block |
||
4426 | 4437 | * @param int course id |
4427 | 4438 | * @param int session id |
4428 | 4439 | * @param int url id (access_url_id) |
4429 | - * @return mixed 'added', 'updated' or 'nothing' |
|
4440 | + * @return false|string 'added', 'updated' or 'nothing' |
|
4430 | 4441 | */ |
4431 | 4442 | public static function add_course_vote($user_id, $vote, $course_id, $session_id = null, $url_id = null) |
4432 | 4443 | { |
@@ -4681,6 +4692,7 @@ discard block |
||
4681 | 4692 | * Get courses count |
4682 | 4693 | * @param int Access URL ID (optional) |
4683 | 4694 | * @param int $visibility |
4695 | + * @param integer $access_url_id |
|
4684 | 4696 | * |
4685 | 4697 | * @return int Number of courses |
4686 | 4698 | */ |
@@ -4737,6 +4749,7 @@ discard block |
||
4737 | 4749 | /** |
4738 | 4750 | * Get available le courses count |
4739 | 4751 | * @param int Access URL ID (optional) |
4752 | + * @param integer $accessUrlId |
|
4740 | 4753 | * @return int Number of courses |
4741 | 4754 | */ |
4742 | 4755 | public static function countAvailableCourses($accessUrlId = null) |
@@ -4781,6 +4794,7 @@ discard block |
||
4781 | 4794 | * @param int User ID |
4782 | 4795 | * @param array Course details array |
4783 | 4796 | * @param array List of courses to which the user is subscribed (if not provided, will be generated) |
4797 | + * @param integer $uid |
|
4784 | 4798 | * @return mixed 'enter' for a link to go to the course or 'register' for a link to subscribe, or false if no access |
4785 | 4799 | */ |
4786 | 4800 | static function get_access_link_by_user($uid, $course, $user_courses = array()) |
@@ -4851,7 +4865,7 @@ discard block |
||
4851 | 4865 | * @param bool $deleteTeachersNotInList |
4852 | 4866 | * @param bool $editTeacherInSessions |
4853 | 4867 | * @param bool $deleteSessionTeacherNotInList |
4854 | - * @return bool |
|
4868 | + * @return false|null |
|
4855 | 4869 | */ |
4856 | 4870 | public static function updateTeachers( |
4857 | 4871 | $courseId, |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $canHaveCourses |
112 | 112 | * @param int $parent_id |
113 | 113 | * |
114 | - * @return bool |
|
114 | + * @return false|string |
|
115 | 115 | */ |
116 | 116 | function addNode($code, $name, $canHaveCourses, $parent_id) |
117 | 117 | { |
@@ -306,8 +306,7 @@ discard block |
||
306 | 306 | /** |
307 | 307 | * Counts the number of children categories a category has |
308 | 308 | * @param int $categoryId The ID of the category of which we want to count the children |
309 | - * @param int $count The number of subcategories we counted this far |
|
310 | - * @return mixed The number of subcategories this category has |
|
309 | + * @return integer The number of subcategories this category has |
|
311 | 310 | */ |
312 | 311 | function courseCategoryChildrenCount($categoryId) |
313 | 312 | { |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | /** |
475 | 474 | * @param int $id |
476 | 475 | * |
477 | - * @return bool |
|
476 | + * @return false|null |
|
478 | 477 | */ |
479 | 478 | function addToUrl($id) |
480 | 479 | { |
@@ -970,7 +969,7 @@ discard block |
||
970 | 969 | * Get Pagination HTML div |
971 | 970 | * @param $pageCurrent |
972 | 971 | * @param $pageLength |
973 | - * @param $pageTotal |
|
972 | + * @param integer $pageTotal |
|
974 | 973 | * @return string |
975 | 974 | */ |
976 | 975 | function getCataloguePagination($pageCurrent, $pageLength, $pageTotal) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * Get all data by description and session id, |
96 | 96 | * first you must set session_id property with the object CourseDescription |
97 | 97 | * @param int $description_type Description type |
98 | - * @param string $course_code Course code (optional) |
|
98 | + * @param string $courseId Course code (optional) |
|
99 | 99 | * @param int $session_id Session id (optional) |
100 | 100 | * @return array List of fields from the descriptions found of the given type |
101 | 101 | */ |
@@ -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 | { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | /** |
214 | 214 | * Displays the tools of a certain category. |
215 | 215 | * |
216 | - * @return void |
|
216 | + * @return string |
|
217 | 217 | * @param string $course_tool_category contains the category of tools to display: |
218 | 218 | * "Public", "PublicButHide", "courseAdmin", "claroAdmin" |
219 | 219 | */ |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | * @param array $all_tools_list List of tools as returned by get_tools_category() |
651 | 651 | * @param bool $rows |
652 | 652 | * |
653 | - * @return void |
|
653 | + * @return string |
|
654 | 654 | */ |
655 | 655 | public static function show_tools_category($all_tools_list, $rows = false) |
656 | 656 | { |
@@ -1194,6 +1194,7 @@ discard block |
||
1194 | 1194 | |
1195 | 1195 | /** |
1196 | 1196 | * Show a toolbar with shortcuts to the course tool |
1197 | + * @param integer $orientation |
|
1197 | 1198 | */ |
1198 | 1199 | public static function show_navigation_tool_shortcuts($orientation = SHORTCUTS_HORIZONTAL) |
1199 | 1200 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Checks whether a given course code has been already occupied. |
20 | 20 | * @param string $wanted_course_code The code to be checked. |
21 | - * @return string |
|
21 | + * @return boolean |
|
22 | 22 | * Returns TRUE if there is created: |
23 | 23 | * - a course with the same code OR visual_code (visualcode). |
24 | 24 | * - a course request with the same code as the given one, or |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | } |
369 | 369 | |
370 | 370 | /** |
371 | - * @param null $status |
|
371 | + * @param integer $status |
|
372 | 372 | * @return bool |
373 | 373 | */ |
374 | 374 | public static function count_course_requests($status = null) |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | |
391 | 391 | /** |
392 | 392 | * Gets all the information about a course request using its database id as an access key. |
393 | - * @param int/string $id The id (an integer number) of the corresponding database record. |
|
393 | + * @param integer $id The id (an integer number) of the corresponding database record. |
|
394 | 394 | * @return array/bool Returns the requested data as an array or FALSE on failure. |
395 | 395 | */ |
396 | 396 | public static function get_course_request_info($id) |
@@ -493,6 +493,7 @@ |
||
493 | 493 | * This function update extra user blocks data after closing a dashboard block |
494 | 494 | * @param int User id |
495 | 495 | * @param string plugin path |
496 | + * @param integer $user_id |
|
496 | 497 | * @return bool |
497 | 498 | */ |
498 | 499 | public static function close_user_block($user_id, $path) |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param string $table |
68 | 68 | * |
69 | - * @return mixed |
|
69 | + * @return string |
|
70 | 70 | */ |
71 | 71 | public static function get_main_table($table) |
72 | 72 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | |
266 | 266 | /** |
267 | 267 | * Frees all the memory associated with the provided result identifier. |
268 | - * @return bool Returns TRUE on success or FALSE on failure. |
|
268 | + * @return boolean|null Returns TRUE on success or FALSE on failure. |
|
269 | 269 | * Notes: Use this method if you are concerned about how much memory is being used for queries that return large result sets. |
270 | 270 | * Anyway, all associated result memory is automatically freed at the end of the script's execution. |
271 | 271 | */ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * @param array $attributes |
382 | 382 | * @param bool $show_query |
383 | 383 | * |
384 | - * @return bool|int |
|
384 | + * @return false|string |
|
385 | 385 | */ |
386 | 386 | public static function insert($table_name, $attributes, $show_query = false) |
387 | 387 | { |
@@ -351,6 +351,12 @@ |
||
351 | 351 | |
352 | 352 | /** |
353 | 353 | * Additional functions needed for fast integration |
354 | + * @param integer $status |
|
355 | + * @param string $section |
|
356 | + * @param string $title |
|
357 | + * @param string $url |
|
358 | + * @param string|null $formatter |
|
359 | + * @param string $comment |
|
354 | 360 | */ |
355 | 361 | public function build_setting($status, $section, $title, $url, $current_value, $expected_value, $formatter, $comment, $img_path = null) { |
356 | 362 | switch ($status) { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @return array |
|
35 | + * @return string[] |
|
36 | 36 | */ |
37 | 37 | public static function toolList() |
38 | 38 | { |
@@ -290,7 +290,6 @@ discard block |
||
290 | 290 | * 'page_nr' = The page to display |
291 | 291 | * 'hide_navigation' = true to hide the navigation |
292 | 292 | * @param array $query_vars Additional variables to add in the query-string |
293 | - * @param array $form actions Additional variables to add in the query-string |
|
294 | 293 | * @param mixed An array with bool values to know which columns show. |
295 | 294 | * i.e: $visibility_options= array(true, false) we will only show the first column |
296 | 295 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -331,7 +330,6 @@ discard block |
||
331 | 330 | * 'page_nr' = The page to display |
332 | 331 | * 'hide_navigation' = true to hide the navigation |
333 | 332 | * @param array $query_vars Additional variables to add in the query-string |
334 | - * @param array $form actions Additional variables to add in the query-string |
|
335 | 333 | * @param mixed An array with bool values to know which columns show. i.e: |
336 | 334 | * $visibility_options= array(true, false) we will only show the first column |
337 | 335 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -388,10 +386,11 @@ discard block |
||
388 | 386 | * 'per_page' = number of items to show per page |
389 | 387 | * 'page_nr' = The page to display |
390 | 388 | * @param array $query_vars Additional variables to add in the query-string |
391 | - * @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
389 | + * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column |
|
392 | 390 | * @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
393 | 391 | * i.e: $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column |
394 | 392 | * @param array $form_actions Set optional forms actions |
393 | + * @param string $table_name |
|
395 | 394 | * |
396 | 395 | * @author Julio Montoya |
397 | 396 | */ |
@@ -444,7 +443,7 @@ discard block |
||
444 | 443 | * @param bool $filter (true) or not (false) |
445 | 444 | * @param bool $returnValue |
446 | 445 | * |
447 | - * @return void |
|
446 | + * @return string|null |
|
448 | 447 | */ |
449 | 448 | public static function display_normal_message($message, $filter = true, $returnValue = false) |
450 | 449 | { |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | /** |
475 | 474 | * Displays an confirmation message. Use this if something has been done successfully |
476 | 475 | * @param bool Filter (true) or not (false) |
477 | - * @return void |
|
476 | + * @return string|null |
|
478 | 477 | */ |
479 | 478 | public static function display_confirmation_message ($message, $filter = true, $returnValue = false) |
480 | 479 | { |
@@ -491,7 +490,7 @@ discard block |
||
491 | 490 | * @param string $message - include any additional html |
492 | 491 | * tags if you need them |
493 | 492 | * @param bool Filter (true) or not (false) |
494 | - * @return void |
|
493 | + * @return string|null |
|
495 | 494 | */ |
496 | 495 | public static function display_error_message ($message, $filter = true, $returnValue = false) |
497 | 496 | { |
@@ -681,6 +680,7 @@ discard block |
||
681 | 680 | * @param string The alt text (probably a language variable) |
682 | 681 | * @param array additional attributes (for instance height, width, onclick, ...) |
683 | 682 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
683 | + * @param string $image |
|
684 | 684 | * @return void |
685 | 685 | */ |
686 | 686 | public static function display_icon( |
@@ -881,6 +881,7 @@ discard block |
||
881 | 881 | /** |
882 | 882 | * Displays an HTML input tag |
883 | 883 | * |
884 | + * @param string $type |
|
884 | 885 | */ |
885 | 886 | public static function input($type, $name, $value, $attributes = array()) |
886 | 887 | { |
@@ -897,8 +898,8 @@ discard block |
||
897 | 898 | } |
898 | 899 | |
899 | 900 | /** |
900 | - * @param $name |
|
901 | - * @param $value |
|
901 | + * @param string $name |
|
902 | + * @param string $value |
|
902 | 903 | * @param array $attributes |
903 | 904 | * @return string |
904 | 905 | */ |
@@ -913,6 +914,7 @@ discard block |
||
913 | 914 | /** |
914 | 915 | * Displays an HTML select tag |
915 | 916 | * |
917 | + * @param string $blank_item_text |
|
916 | 918 | */ |
917 | 919 | public static function select( |
918 | 920 | $name, |
@@ -983,6 +985,8 @@ discard block |
||
983 | 985 | * @param array content that will be showed |
984 | 986 | * @param string the id of the container of the tab in the example "tabs" |
985 | 987 | * @param array attributes for the ul |
988 | + * @param string[] $header_list |
|
989 | + * @param string[] $content_list |
|
986 | 990 | * |
987 | 991 | */ |
988 | 992 | public static function tabs($header_list, $content_list, $id = 'tabs', $attributes = array(), $ul_attributes = array()) |
@@ -1029,7 +1033,7 @@ discard block |
||
1029 | 1033 | |
1030 | 1034 | /** |
1031 | 1035 | * @param $headers |
1032 | - * @param null $selected |
|
1036 | + * @param integer $selected |
|
1033 | 1037 | * |
1034 | 1038 | * @return string |
1035 | 1039 | */ |
@@ -1067,6 +1071,7 @@ discard block |
||
1067 | 1071 | * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work |
1068 | 1072 | * |
1069 | 1073 | * @param string the div id, this value must be the same with the first parameter of Display::grid_js() |
1074 | + * @param string $div_id |
|
1070 | 1075 | * @return string html |
1071 | 1076 | * |
1072 | 1077 | */ |
@@ -1622,6 +1627,8 @@ discard block |
||
1622 | 1627 | * @param string url that will be added (for jquery see hot_courses.tpl) |
1623 | 1628 | * @param string point info array see function CourseManager::get_course_ranking() |
1624 | 1629 | * @param bool add a div wrapper |
1630 | + * @param string $id |
|
1631 | + * @param string $url |
|
1625 | 1632 | * @todo use templates |
1626 | 1633 | **/ |
1627 | 1634 | public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true) |
@@ -1717,6 +1724,9 @@ discard block |
||
1717 | 1724 | return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>'; |
1718 | 1725 | } |
1719 | 1726 | |
1727 | + /** |
|
1728 | + * @param string $title |
|
1729 | + */ |
|
1720 | 1730 | public static function page_subheader2($title, $second_title = null) |
1721 | 1731 | { |
1722 | 1732 | return self::page_header($title, $second_title, 'h4'); |
@@ -1947,6 +1957,7 @@ discard block |
||
1947 | 1957 | |
1948 | 1958 | /** |
1949 | 1959 | * @todo use twig |
1960 | + * @param string $title |
|
1950 | 1961 | */ |
1951 | 1962 | public static function group_button($title, $elements) |
1952 | 1963 | { |
@@ -2164,9 +2175,9 @@ discard block |
||
2164 | 2175 | |
2165 | 2176 | /** |
2166 | 2177 | * @param int $id |
2167 | - * @param array $content |
|
2178 | + * @param string[] $content |
|
2168 | 2179 | * @param int $col |
2169 | - * @param bool|true $right |
|
2180 | + * @param boolean $right |
|
2170 | 2181 | * @return string |
2171 | 2182 | */ |
2172 | 2183 | public static function toolbarAction($id, $content = array(), $col = 2, $right = true) |
@@ -2248,10 +2259,10 @@ discard block |
||
2248 | 2259 | /** |
2249 | 2260 | * @param string $title |
2250 | 2261 | * @param string $content |
2251 | - * @param null $id |
|
2262 | + * @param string $id |
|
2252 | 2263 | * @param array $params |
2253 | - * @param null $idAccordion |
|
2254 | - * @param null $idCollapse |
|
2264 | + * @param string $idAccordion |
|
2265 | + * @param string $idCollapse |
|
2255 | 2266 | * @param bool|true $open |
2256 | 2267 | * @param bool|false $fullClickable |
2257 | 2268 | * @return null|string |