@@ -554,13 +554,12 @@ discard block |
||
554 | 554 | * @param string $title |
555 | 555 | * @param string $content |
556 | 556 | * @param array $usersToSend |
557 | - * @param int $editRepeatType |
|
558 | 557 | * @param array $attachmentArray |
559 | 558 | * @param string $attachmentComment |
560 | 559 | * @param string $comment |
561 | 560 | * @param string $color |
562 | 561 | * |
563 | - * @return bool |
|
562 | + * @return null|false |
|
564 | 563 | */ |
565 | 564 | public function editEvent( |
566 | 565 | $id, |
@@ -1292,6 +1291,7 @@ discard block |
||
1292 | 1291 | * |
1293 | 1292 | * @param int $eventId |
1294 | 1293 | * @param int $courseId |
1294 | + * @param integer $sessionId |
|
1295 | 1295 | * @paraù int $sessionId |
1296 | 1296 | * |
1297 | 1297 | * @return array |
@@ -2284,6 +2284,7 @@ discard block |
||
2284 | 2284 | * @param array $fileUserUpload ($_FILES['user_upload']) |
2285 | 2285 | * @param string comment about file |
2286 | 2286 | * @param array $courseInfo |
2287 | + * @param string $comment |
|
2287 | 2288 | * @return string |
2288 | 2289 | */ |
2289 | 2290 | public function addAttachment($eventId, $fileUserUpload, $comment, $courseInfo) |
@@ -2403,6 +2404,7 @@ discard block |
||
2403 | 2404 | * Adds x weeks to a UNIX timestamp |
2404 | 2405 | * @param int The timestamp |
2405 | 2406 | * @param int The number of weeks to add |
2407 | + * @param integer $timestamp |
|
2406 | 2408 | * @return int The new timestamp |
2407 | 2409 | */ |
2408 | 2410 | function addWeek($timestamp, $num = 1) |
@@ -2414,6 +2416,7 @@ discard block |
||
2414 | 2416 | * Adds x months to a UNIX timestamp |
2415 | 2417 | * @param int The timestamp |
2416 | 2418 | * @param int The number of years to add |
2419 | + * @param integer $timestamp |
|
2417 | 2420 | * @return int The new timestamp |
2418 | 2421 | */ |
2419 | 2422 | function addMonth($timestamp, $num = 1) |
@@ -2432,6 +2435,7 @@ discard block |
||
2432 | 2435 | * Adds x years to a UNIX timestamp |
2433 | 2436 | * @param int The timestamp |
2434 | 2437 | * @param int The number of years to add |
2438 | + * @param integer $timestamp |
|
2435 | 2439 | * @return int The new timestamp |
2436 | 2440 | */ |
2437 | 2441 | function addYear($timestamp, $num = 1) |
@@ -2631,7 +2635,7 @@ discard block |
||
2631 | 2635 | /** |
2632 | 2636 | * @param array $courseInfo |
2633 | 2637 | * @param $file |
2634 | - * @return array|bool|string |
|
2638 | + * @return false|string |
|
2635 | 2639 | */ |
2636 | 2640 | public function importEventFile($courseInfo, $file) |
2637 | 2641 | { |
@@ -2744,7 +2748,7 @@ discard block |
||
2744 | 2748 | |
2745 | 2749 | /** |
2746 | 2750 | * Parse filter turns USER:12 to ['users' => [12])] or G:1 ['groups' => [1]] |
2747 | - * @param $filter |
|
2751 | + * @param integer $filter |
|
2748 | 2752 | * @return array |
2749 | 2753 | */ |
2750 | 2754 | public function parseAgendaFilter($filter) |
@@ -3259,6 +3263,7 @@ discard block |
||
3259 | 3263 | * @param int user ID of the user |
3260 | 3264 | * @param string Optional start date in datetime format (if no start date is given, uses today) |
3261 | 3265 | * @param string Optional end date in datetime format (if no date is given, uses one year from now) |
3266 | + * @param integer $user_id |
|
3262 | 3267 | * @return array Array of events ordered by start date, in |
3263 | 3268 | * [0]('datestart','dateend','title'),[1]('datestart','dateend','title','link','coursetitle') format, |
3264 | 3269 | * where datestart and dateend are in yyyyMMddhhmmss format. |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * |
18 | 18 | * @param int|array $course |
19 | - * @param int|array $annoucement |
|
19 | + * @param integer $announcement |
|
20 | 20 | * |
21 | 21 | * @return AnnouncementEmail |
22 | 22 | */ |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @param string $key |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return string|null |
|
54 | 54 | */ |
55 | 55 | public function course($key = '') |
56 | 56 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
21 | - * @return array |
|
21 | + * @return string[] |
|
22 | 22 | */ |
23 | 23 | public static function get_tags() |
24 | 24 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param string $course_code |
41 | 41 | * @param int $session_id |
42 | 42 | * |
43 | - * @return mixed |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public static function parse_content($userId, $content, $course_code, $session_id = 0) |
46 | 46 | { |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * @param array uploaded file $_FILES |
350 | 350 | * @param string Comment describing the attachment |
351 | 351 | * @param bool $sendToUsersInSession |
352 | - * @return int false on failure, ID of the announcement on success |
|
352 | + * @return false|string false on failure, ID of the announcement on success |
|
353 | 353 | */ |
354 | 354 | public static function add_announcement( |
355 | 355 | $emailTitle, |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * @param $to_users |
461 | 461 | * @param array $file |
462 | 462 | * @param string $file_comment |
463 | - * @return bool|int |
|
463 | + * @return false|string |
|
464 | 464 | */ |
465 | 465 | public static function add_group_announcement( |
466 | 466 | $emailTitle, |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | |
700 | 700 | /** |
701 | 701 | * @param int $insert_id |
702 | - * @return bool |
|
702 | + * @return false|null |
|
703 | 703 | */ |
704 | 704 | public static function update_mail_sent($insert_id) |
705 | 705 | { |
@@ -719,6 +719,7 @@ discard block |
||
719 | 719 | * Gets all announcements from a user by course |
720 | 720 | * @param string course db |
721 | 721 | * @param int user id |
722 | + * @param integer $user_id |
|
722 | 723 | * @return array html with the content and count of announcements or false otherwise |
723 | 724 | */ |
724 | 725 | public static function get_all_annoucement_by_user_course($course_code, $user_id) |
@@ -1184,6 +1185,7 @@ discard block |
||
1184 | 1185 | * has been sent to |
1185 | 1186 | * @param string The tool (announcement, agenda, ...) |
1186 | 1187 | * @param int ID of the element of the corresponding type |
1188 | + * @param string $tool |
|
1187 | 1189 | * @return array Array of users and groups to whom the element has been sent |
1188 | 1190 | */ |
1189 | 1191 | public static function sent_to($tool, $id) |
@@ -1308,6 +1310,8 @@ discard block |
||
1308 | 1310 | * @param int attach id |
1309 | 1311 | * @param array uploaded file $_FILES |
1310 | 1312 | * @param string file comment |
1313 | + * @param integer $id_attach |
|
1314 | + * @param string $file_comment |
|
1311 | 1315 | * @return int |
1312 | 1316 | */ |
1313 | 1317 | public static function edit_announcement_attachment_file($id_attach, $file, $file_comment) |
@@ -575,7 +575,6 @@ discard block |
||
575 | 575 | * Also, this function provides conversion between path types, in this case the input path points inside the Chamilo area too. |
576 | 576 | * |
577 | 577 | * See $_configuration['course_folder'] in the configuration.php to alter the WEB_COURSE_PATH and SYS_COURSE_PATH parameters. |
578 | - * @param string $type The requested path type (a defined constant), see the examples. |
|
579 | 578 | * @param string $path (optional) A path which type is to be converted. Also, it may be a defined constant for a path. |
580 | 579 | * This parameter has meaning when $type parameter has one of the following values: TO_WEB, TO_SYS, TO_REL. Otherwise it is ignored. |
581 | 580 | * @return string The requested path or the converted path. |
@@ -1070,7 +1069,7 @@ discard block |
||
1070 | 1069 | * Checks the RFC 3986 syntax of a given URL. |
1071 | 1070 | * @param string $url The URL to be checked. |
1072 | 1071 | * @param bool $absolute Whether the URL is absolute (beginning with a scheme such as "http:"). |
1073 | - * @return bool Returns the URL if it is valid, FALSE otherwise. |
|
1072 | + * @return string|false Returns the URL if it is valid, FALSE otherwise. |
|
1074 | 1073 | * This function is an adaptation from the function valid_url(), Drupal CMS. |
1075 | 1074 | * @link http://drupal.org |
1076 | 1075 | * Note: The built-in function filter_var($urs, FILTER_VALIDATE_URL) has a bug for some versions of PHP. |
@@ -1650,6 +1649,7 @@ discard block |
||
1650 | 1649 | * Gets a course setting from the current course_setting table. Try always using integer values. |
1651 | 1650 | * @param string The name of the setting we want from the table |
1652 | 1651 | * @param string Optional: course code |
1652 | + * @param string $setting_name |
|
1653 | 1653 | * @return mixed The value of that setting in that table. Return -1 if not found. |
1654 | 1654 | */ |
1655 | 1655 | function api_get_course_setting($setting_name, $course_code = null) |
@@ -1960,7 +1960,7 @@ discard block |
||
1960 | 1960 | /** |
1961 | 1961 | * Checks a password to see wether it is OK to use. |
1962 | 1962 | * @param string $password |
1963 | - * @return true if the password is acceptable, false otherwise |
|
1963 | + * @return boolean if the password is acceptable, false otherwise |
|
1964 | 1964 | * Notes about what a password "OK to use" is: |
1965 | 1965 | * 1. The password should be at least 5 characters long. |
1966 | 1966 | * 2. Only English letters (uppercase or lowercase, it doesn't matter) and digits are allowed. |
@@ -2132,7 +2132,7 @@ discard block |
||
2132 | 2132 | * @author Hugues Peeters <[email protected]> |
2133 | 2133 | * @param string $failure_type - the type of failure |
2134 | 2134 | * @global array $api_failureList |
2135 | - * @return bolean false to stay consistent with the main script |
|
2135 | + * @return boolean false to stay consistent with the main script |
|
2136 | 2136 | */ |
2137 | 2137 | static function set_failure($failure_type) { |
2138 | 2138 | global $api_failureList; |
@@ -3199,8 +3199,8 @@ discard block |
||
3199 | 3199 | |
3200 | 3200 | /** |
3201 | 3201 | * Checks whether the user is allowed in a specific tool for a specific action |
3202 | -* @param $tool the tool we are checking if the user has a certain permission |
|
3203 | -* @param $action the action we are checking (add, edit, delete, move, visibility) |
|
3202 | +* @param string $tool the tool we are checking if the user has a certain permission |
|
3203 | +* @param string $action the action we are checking (add, edit, delete, move, visibility) |
|
3204 | 3204 | * @author Patrick Cool <[email protected]>, Ghent University |
3205 | 3205 | * @author Julio Montoya |
3206 | 3206 | * @version 1.0 |
@@ -3499,7 +3499,7 @@ discard block |
||
3499 | 3499 | /** |
3500 | 3500 | * Gets a UNIX timestamp from a database (MySQL) datetime format string |
3501 | 3501 | * @param $last_post_datetime standard output date in a sql query |
3502 | - * @return unix timestamp |
|
3502 | + * @return integer timestamp |
|
3503 | 3503 | * @author Toon Van Hoecke <[email protected]> |
3504 | 3504 | * @version October 2003 |
3505 | 3505 | * @desc convert sql date to unix timestamp |
@@ -3532,6 +3532,9 @@ discard block |
||
3532 | 3532 | * @param string Tool (learnpath, document, etc) |
3533 | 3533 | * @param int The item ID in the given tool |
3534 | 3534 | * @param int The session ID (optional) |
3535 | + * @param string $tool |
|
3536 | + * @param integer $user_id |
|
3537 | + * @param string $type |
|
3535 | 3538 | * @return int -1 on error, 0 if invisible, 1 if visible |
3536 | 3539 | */ |
3537 | 3540 | function api_get_item_visibility( |
@@ -3600,7 +3603,7 @@ discard block |
||
3600 | 3603 | * @param int $userId |
3601 | 3604 | * @param int $groupId |
3602 | 3605 | * @param int $sessionId |
3603 | - * @return void |
|
3606 | + * @return false|null |
|
3604 | 3607 | */ |
3605 | 3608 | function api_item_property_delete( |
3606 | 3609 | $courseInfo, |
@@ -3655,7 +3658,7 @@ discard block |
||
3655 | 3658 | * @param array $_course array with course properties |
3656 | 3659 | * @param string $tool tool id, linked to 'rubrique' of the course tool_list (Warning: language sensitive !!) |
3657 | 3660 | * @param int $item_id id of the item itself, linked to key of every tool ('id', ...), "*" = all items of the tool |
3658 | - * @param string $lastedit_type add or update action |
|
3661 | + * @param string $last_edit_type add or update action |
|
3659 | 3662 | * (1) message to be translated (in trad4all) : e.g. DocumentAdded, DocumentUpdated; |
3660 | 3663 | * (2) "delete" |
3661 | 3664 | * (3) "visible" |
@@ -3938,6 +3941,8 @@ discard block |
||
3938 | 3941 | * @param string tool name, linked to 'rubrique' of the course tool_list (Warning: language sensitive !!) |
3939 | 3942 | * @param int id of the item itself, linked to key of every tool ('id', ...), "*" = all items of the tool |
3940 | 3943 | * @param int $session_id |
3944 | + * @param string $tool |
|
3945 | + * @param string $course_code |
|
3941 | 3946 | * @return array All fields from c_item_property (all rows found) or empty array |
3942 | 3947 | */ |
3943 | 3948 | function api_get_item_property_by_tool($tool, $course_code, $session_id = null) |
@@ -4107,6 +4112,7 @@ discard block |
||
4107 | 4112 | * @param string tool name, linked to 'rubrique' of the course tool_list (Warning: language sensitive !!) |
4108 | 4113 | * @param int id of the item itself, linked to key of every tool ('id', ...), "*" = all items of the tool |
4109 | 4114 | * @param int $session_id |
4115 | + * @param string $tool |
|
4110 | 4116 | * @return array Array with all fields from c_item_property, empty array if not found or false if course could not be found |
4111 | 4117 | */ |
4112 | 4118 | function api_get_item_property_info($course_id, $tool, $ref, $session_id = 0) |
@@ -4192,7 +4198,7 @@ discard block |
||
4192 | 4198 | * Displays a form (drop down menu) so the user can select his/her preferred language. |
4193 | 4199 | * The form works with or without javascript |
4194 | 4200 | * @param boolean Hide form if only one language available (defaults to false = show the box anyway) |
4195 | - * @return void Display the box directly |
|
4201 | + * @return null|string Display the box directly |
|
4196 | 4202 | */ |
4197 | 4203 | function api_display_language_form($hide_if_no_choice = false) |
4198 | 4204 | { |
@@ -4470,6 +4476,7 @@ discard block |
||
4470 | 4476 | * and also when a user subscribes to courses (the new course is added at the end of the main category |
4471 | 4477 | * @author Patrick Cool <[email protected]>, Ghent University |
4472 | 4478 | * @param int $user_course_category: the id of the user_course_category |
4479 | + * @param integer $user_id |
|
4473 | 4480 | * @return int the value of the highest sort of the user_course_category |
4474 | 4481 | */ |
4475 | 4482 | function api_max_sort_value($user_course_category, $user_id) |
@@ -4679,6 +4686,8 @@ discard block |
||
4679 | 4686 | * @param the dest folder |
4680 | 4687 | * @param an array of excluded file_name (without extension) |
4681 | 4688 | * @param copied_files the returned array of copied files |
4689 | + * @param string $source |
|
4690 | + * @param string $dest |
|
4682 | 4691 | */ |
4683 | 4692 | function copyr($source, $dest, $exclude = array(), $copied_files = array()) { |
4684 | 4693 | if (empty($dest)) { return false; } |
@@ -4718,6 +4727,11 @@ discard block |
||
4718 | 4727 | } |
4719 | 4728 | |
4720 | 4729 | // TODO: Using DIRECTORY_SEPARATOR is not recommended, this is an obsolete approach. Documentation header to be added here. |
4730 | +/** |
|
4731 | + * @param string $pathname |
|
4732 | + * @param string $base_path_document |
|
4733 | + * @param integer $session_id |
|
4734 | + */ |
|
4721 | 4735 | function copy_folder_course_session( |
4722 | 4736 | $pathname, |
4723 | 4737 | $base_path_document, |
@@ -4803,6 +4817,9 @@ discard block |
||
4803 | 4817 | } |
4804 | 4818 | |
4805 | 4819 | // TODO: chmodr() is a better name. Some corrections are needed. Documentation header to be added here. |
4820 | +/** |
|
4821 | + * @param string $path |
|
4822 | + */ |
|
4806 | 4823 | function api_chmod_R($path, $filemode) { |
4807 | 4824 | if (!is_dir($path)) { |
4808 | 4825 | return chmod($path, $filemode); |
@@ -4885,7 +4902,7 @@ discard block |
||
4885 | 4902 | * version = VERSION |
4886 | 4903 | * @endverbatim |
4887 | 4904 | * </code> |
4888 | - * @param $filename |
|
4905 | + * @param string $filename |
|
4889 | 4906 | * The file we are parsing. Accepts file with relative or absolute path. |
4890 | 4907 | * @return |
4891 | 4908 | * The info array. |
@@ -4977,7 +4994,7 @@ discard block |
||
4977 | 4994 | /** |
4978 | 4995 | * Checks whether status given in parameter exists in the platform |
4979 | 4996 | * @param mixed the status (can be either int either string) |
4980 | - * @return true if the status exists, else returns false |
|
4997 | + * @return boolean if the status exists, else returns false |
|
4981 | 4998 | */ |
4982 | 4999 | function api_status_exists($status_asked) { |
4983 | 5000 | global $_status_list; |
@@ -4999,7 +5016,7 @@ discard block |
||
4999 | 5016 | |
5000 | 5017 | /** |
5001 | 5018 | * Gets the status langvars list |
5002 | - * @return array the list of status with their translations |
|
5019 | + * @return string[] the list of status with their translations |
|
5003 | 5020 | */ |
5004 | 5021 | function api_get_status_langvars() { |
5005 | 5022 | return array( |
@@ -5075,6 +5092,7 @@ discard block |
||
5075 | 5092 | * @param string The sub-variable if any (in most cases, this will remain null) |
5076 | 5093 | * @param string The category if any (in most cases, this will remain null) |
5077 | 5094 | * @param int The access_url for which this parameter is valid |
5095 | + * @param string $cat |
|
5078 | 5096 | */ |
5079 | 5097 | function api_set_setting($var, $value, $subvar = null, $cat = null, $access_url = 1) |
5080 | 5098 | { |
@@ -5172,6 +5190,8 @@ discard block |
||
5172 | 5190 | * @param string Value |
5173 | 5191 | * @param int Access URL. Optional. Defaults to 1 |
5174 | 5192 | * @param array Optional array of filters on field type |
5193 | + * @param string $category |
|
5194 | + * @param string $value |
|
5175 | 5195 | */ |
5176 | 5196 | function api_set_settings_category($category, $value = null, $access_url = 1, $fieldtype = array()) |
5177 | 5197 | { |
@@ -5418,6 +5438,10 @@ discard block |
||
5418 | 5438 | * @param string The subkey text |
5419 | 5439 | * @param int The access_url for which this parameter is valid |
5420 | 5440 | * @param int The changeability of this setting for non-master urls |
5441 | + * @param string $val |
|
5442 | + * @param string $var |
|
5443 | + * @param string $sk |
|
5444 | + * @param string $c |
|
5421 | 5445 | * @return boolean true on success, false on failure |
5422 | 5446 | */ |
5423 | 5447 | function api_add_setting($val, $var, $sk = null, $type = 'textfield', $c = null, $title = '', $com = '', $sc = null, $skt = null, $a = 1, $v = 0) { |
@@ -5683,6 +5707,7 @@ discard block |
||
5683 | 5707 | * @param String the tool of the element |
5684 | 5708 | * @param int the element id in database |
5685 | 5709 | * @param int the session_id to compare with element session id |
5710 | + * @param string $tool |
|
5686 | 5711 | * @return boolean true if the element is in the session, false else |
5687 | 5712 | */ |
5688 | 5713 | function api_is_element_in_the_session($tool, $element_id, $session_id = null) { |
@@ -5728,8 +5753,6 @@ discard block |
||
5728 | 5753 | * Replaces "forbidden" characters in a filename string. |
5729 | 5754 | * |
5730 | 5755 | * @param string $filename |
5731 | - * @param int $length |
|
5732 | - * @param bool $file_name |
|
5733 | 5756 | * |
5734 | 5757 | * @return string |
5735 | 5758 | */ |
@@ -5965,6 +5988,7 @@ discard block |
||
5965 | 5988 | * @link http://php.net/manual/en/function.getimagesize.php |
5966 | 5989 | * @link http://www.dokeos.com/forum/viewtopic.php?t=12345 |
5967 | 5990 | * @link http://www.dokeos.com/forum/viewtopic.php?t=16355 |
5991 | + * @return integer |
|
5968 | 5992 | */ |
5969 | 5993 | function api_getimagesize($path) { |
5970 | 5994 | $image = new Image($path); |
@@ -6125,6 +6149,7 @@ discard block |
||
6125 | 6149 | * with his user id and the access_url_id=1 |
6126 | 6150 | * |
6127 | 6151 | * @author Julio Montoya |
6152 | + * @param integer $user_id |
|
6128 | 6153 | */ |
6129 | 6154 | function api_is_global_platform_admin($user_id = null) |
6130 | 6155 | { |
@@ -6186,7 +6211,7 @@ discard block |
||
6186 | 6211 | * @param int $admin_id_to_check |
6187 | 6212 | * @param int $my_user_id |
6188 | 6213 | * @param bool $allow_session_admin |
6189 | - * @return bool |
|
6214 | + * @return boolean|null |
|
6190 | 6215 | */ |
6191 | 6216 | function api_protect_super_admin($admin_id_to_check, $my_user_id = null, $allow_session_admin = false) |
6192 | 6217 | { |
@@ -6428,6 +6453,7 @@ discard block |
||
6428 | 6453 | |
6429 | 6454 | /** |
6430 | 6455 | * Returns the <link> HTML tag |
6456 | + * @param string $file |
|
6431 | 6457 | */ |
6432 | 6458 | function api_get_css($file, $media = 'screen') { |
6433 | 6459 | return '<link href="'.$file.'" rel="stylesheet" media="'.$media.'" type="text/css" />'."\n"; |
@@ -6555,7 +6581,8 @@ discard block |
||
6555 | 6581 | * This function relies on api_get_course_info() |
6556 | 6582 | * @param string The course code - optional (takes it from session if not given) |
6557 | 6583 | * @param int The session id - optional (takes it from session if not given) |
6558 | - * @return mixed The URL of the course or null if something does not work |
|
6584 | + * @param integer $session_id |
|
6585 | + * @return string|null The URL of the course or null if something does not work |
|
6559 | 6586 | * @author Julio Montoya <[email protected]> |
6560 | 6587 | */ |
6561 | 6588 | function api_get_course_url($course_code = null, $session_id = null) |
@@ -6670,7 +6697,7 @@ discard block |
||
6670 | 6697 | * @param int LINK_EXERCISE, LINK_STUDENTPUBLICATION, LINK_LEARNPATH LINK_FORUM_THREAD, LINK_ATTENDANCE |
6671 | 6698 | * see gradebook/lib/be/linkfactory |
6672 | 6699 | * @param string course code |
6673 | - * @return boolean |
|
6700 | + * @return false|null |
|
6674 | 6701 | */ |
6675 | 6702 | function api_block_course_item_locked_by_gradebook($item_id, $link_type, $course_code = null) { |
6676 | 6703 | if (api_is_platform_admin()) { |
@@ -6711,7 +6738,7 @@ discard block |
||
6711 | 6738 | /** |
6712 | 6739 | * Returns an array of global configuration settings which should be ignored |
6713 | 6740 | * when printing the configuration settings screens |
6714 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6741 | + * @return string[] Array of strings, each identifying one of the excluded settings |
|
6715 | 6742 | */ |
6716 | 6743 | function api_get_locked_settings() { |
6717 | 6744 | return array( |
@@ -6754,7 +6781,7 @@ discard block |
||
6754 | 6781 | * false if he isn't. If the user ID is given and is an integer, then the same |
6755 | 6782 | * ID is simply returned |
6756 | 6783 | * @param integer User ID |
6757 | - * @return mixed Integer User ID is logged in, or false otherwise |
|
6784 | + * @return boolean Integer User ID is logged in, or false otherwise |
|
6758 | 6785 | */ |
6759 | 6786 | function api_user_is_login($user_id = null) { |
6760 | 6787 | $user_id = empty($user_id) ? api_get_user_id() : intval($user_id); |
@@ -6789,6 +6816,7 @@ discard block |
||
6789 | 6816 | * Checks whether an IP is included inside an IP range |
6790 | 6817 | * @param string IP address |
6791 | 6818 | * @param string IP range |
6819 | + * @param string $ip |
|
6792 | 6820 | * @return bool True if IP is in the range, false otherwise |
6793 | 6821 | * @author claudiu at cnixs dot com on http://www.php.net/manual/fr/ref.network.php#55230 |
6794 | 6822 | * @author Yannick Warnier for improvements and managment of multiple ranges |
@@ -7172,6 +7200,7 @@ discard block |
||
7172 | 7200 | /** |
7173 | 7201 | * Tries to set memory limit, if authorized and new limit is higher than current |
7174 | 7202 | * @param string New memory limit |
7203 | + * @param string $mem |
|
7175 | 7204 | * @return bool True on success, false on failure or current is higher than suggested |
7176 | 7205 | * @assert (null) === false |
7177 | 7206 | * @assert (-1) === false |
@@ -7228,7 +7257,6 @@ discard block |
||
7228 | 7257 | |
7229 | 7258 | /** |
7230 | 7259 | * Finds all the information about a user from username instead of user id |
7231 | - * @param string $username |
|
7232 | 7260 | * |
7233 | 7261 | * @return array $user_info user_id, lastname, firstname, username, email, ... |
7234 | 7262 | * @author Yannick Warnier <[email protected]> |
@@ -7250,7 +7278,6 @@ discard block |
||
7250 | 7278 | |
7251 | 7279 | /** |
7252 | 7280 | * |
7253 | - * @param string $inputId the jquery id example: #password |
|
7254 | 7281 | * |
7255 | 7282 | * @return string |
7256 | 7283 | */ |
@@ -7375,6 +7402,7 @@ discard block |
||
7375 | 7402 | /** |
7376 | 7403 | * Remove tags from HTML anf return the $in_number_char first non-HTML char |
7377 | 7404 | * Postfix the text with "..." if it has been truncated. |
7405 | + * @param integer $in_number_char |
|
7378 | 7406 | * @return string |
7379 | 7407 | * @author hubert borderiou |
7380 | 7408 | */ |
@@ -7419,7 +7447,7 @@ discard block |
||
7419 | 7447 | /** |
7420 | 7448 | * @param string $tool |
7421 | 7449 | * @param string $setting |
7422 | - * @param mixed $defaultValue |
|
7450 | + * @param integer $defaultValue |
|
7423 | 7451 | * @return string |
7424 | 7452 | */ |
7425 | 7453 | function api_get_default_tool_setting($tool, $setting, $defaultValue) |
@@ -7544,7 +7572,7 @@ discard block |
||
7544 | 7572 | } |
7545 | 7573 | |
7546 | 7574 | /** |
7547 | - * @return true if course_code for direct course access after login is set |
|
7575 | + * @return boolean if course_code for direct course access after login is set |
|
7548 | 7576 | */ |
7549 | 7577 | function exist_firstpage_parameter() |
7550 | 7578 | { |
@@ -7836,7 +7864,7 @@ discard block |
||
7836 | 7864 | * @param array data file (path and filename) |
7837 | 7865 | * @param array data to attach a file (optional) |
7838 | 7866 | * @param bool True for attaching a embedded file inside content html (optional) |
7839 | - * @return returns true if mail was sent |
|
7867 | + * @return integer true if mail was sent |
|
7840 | 7868 | * @see class.phpmailer.php |
7841 | 7869 | */ |
7842 | 7870 | function api_mail_html( |
@@ -18,6 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Constructor, init tool path for rendering |
20 | 20 | * @param string tool name (optional) |
21 | + * @param string $template_path |
|
21 | 22 | */ |
22 | 23 | public function __construct($toolname = '', $template_path=null) |
23 | 24 | { |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | /** |
51 | 52 | * Set layout view sent from a controller |
52 | 53 | * @param string layout view |
54 | + * @param string $layout |
|
53 | 55 | */ |
54 | 56 | public function set_layout( $layout ) |
55 | 57 | { |
@@ -59,6 +61,7 @@ discard block |
||
59 | 61 | /** |
60 | 62 | * Set template view sent from a controller |
61 | 63 | * @param string template view |
64 | + * @param string $template |
|
62 | 65 | */ |
63 | 66 | public function set_template($template) |
64 | 67 | { |
@@ -147,6 +147,9 @@ discard block |
||
147 | 147 | return $customTabs; |
148 | 148 | } |
149 | 149 | |
150 | +/** |
|
151 | + * @param string $theme |
|
152 | + */ |
|
150 | 153 | function return_logo($theme) |
151 | 154 | { |
152 | 155 | $_course = api_get_course_info(); |
@@ -497,6 +500,9 @@ discard block |
||
497 | 500 | return $menu; |
498 | 501 | } |
499 | 502 | |
503 | +/** |
|
504 | + * @param string $nameTools |
|
505 | + */ |
|
500 | 506 | function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) |
501 | 507 | { |
502 | 508 | $session_id = api_get_session_id(); |
@@ -96,9 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Creates a new blog in the given course |
98 | 98 | * @author Toon Keppens |
99 | - * @param Integer $course_id Id |
|
100 | 99 | * @param String $title |
101 | - * @param Text $description |
|
102 | 100 | */ |
103 | 101 | public static function create_blog($title, $subtitle) |
104 | 102 | { |
@@ -186,9 +184,7 @@ discard block |
||
186 | 184 | /** |
187 | 185 | * Update title and subtitle of a blog in the given course |
188 | 186 | * @author Toon Keppens |
189 | - * @param Integer $course_id Id |
|
190 | 187 | * @param String $title |
191 | - * @param Text $description |
|
192 | 188 | */ |
193 | 189 | public static function edit_blog($blog_id, $title, $subtitle) |
194 | 190 | { |
@@ -714,7 +710,6 @@ discard block |
||
714 | 710 | /** |
715 | 711 | * Deletes an assigned task from a blog |
716 | 712 | * @param Integer $blog_id |
717 | - * @param Integer $assignment_id |
|
718 | 713 | */ |
719 | 714 | public static function delete_assigned_task($blog_id, $task_id, $user_id) |
720 | 715 | { |
@@ -1126,9 +1121,7 @@ discard block |
||
1126 | 1121 | * |
1127 | 1122 | * @param String $type |
1128 | 1123 | * @param Integer $blog_id |
1129 | - * @param Integer $item_id |
|
1130 | - * |
|
1131 | - *@return String |
|
1124 | + * @param integer $post_id |
|
1132 | 1125 | */ |
1133 | 1126 | public static function display_rating_form ($type, $blog_id, $post_id, $comment_id = NULL) |
1134 | 1127 | { |
@@ -2113,7 +2106,7 @@ discard block |
||
2113 | 2106 | * |
2114 | 2107 | * @param Integer $blog_id |
2115 | 2108 | * |
2116 | - * @return Html Form with sortable table with users to unsubcribe from a blog. |
|
2109 | + * @return false|null Form with sortable table with users to unsubcribe from a blog. |
|
2117 | 2110 | */ |
2118 | 2111 | public static function display_form_user_unsubscribe ($blog_id) |
2119 | 2112 | { |
@@ -2234,6 +2227,7 @@ discard block |
||
2234 | 2227 | * @author Toon Keppens |
2235 | 2228 | * |
2236 | 2229 | * @param Integer $blog_id |
2230 | + * @param integer $post_id |
|
2237 | 2231 | */ |
2238 | 2232 | public static function display_new_comment_form($blog_id, $post_id, $title) |
2239 | 2233 | { |
@@ -2282,10 +2276,8 @@ discard block |
||
2282 | 2276 | * @author Patrick Cool |
2283 | 2277 | * @author Toon Keppens |
2284 | 2278 | * |
2285 | - * @param Array $blogitems an array containing all the blog items for the given month |
|
2286 | 2279 | * @param Integer $month: the integer value of the month we are viewing |
2287 | 2280 | * @param Integer $year: the 4-digit year indication e.g. 2005 |
2288 | - * @param String $monthName: the language variable for the mont name |
|
2289 | 2281 | * |
2290 | 2282 | * @return html code |
2291 | 2283 | */ |
@@ -2579,6 +2571,7 @@ discard block |
||
2579 | 2571 | * @param the blog's id |
2580 | 2572 | * @param the post's id |
2581 | 2573 | * @param the comment's id |
2574 | + * @param integer $blog_id |
|
2582 | 2575 | * @return array with the post info according the parameters |
2583 | 2576 | * @author Julio Montoya Dokeos |
2584 | 2577 | * @version avril 2008, dokeos 1.8.5 |
@@ -2620,6 +2613,9 @@ discard block |
||
2620 | 2613 | * @param the blog's id |
2621 | 2614 | * @param the post's id |
2622 | 2615 | * @param the comment's id |
2616 | + * @param integer $blog_id |
|
2617 | + * @param integer $post_id |
|
2618 | + * @param integer $comment_id |
|
2623 | 2619 | * @author Julio Montoya Dokeos |
2624 | 2620 | * @version avril 2008, dokeos 1.8.5 |
2625 | 2621 | */ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Set the name of the browser |
161 | - * @param $browser string The name of the Browser |
|
161 | + * @param string $browser string The name of the Browser |
|
162 | 162 | */ |
163 | 163 | public function setBrowser($browser) |
164 | 164 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | /** |
268 | 268 | * Set the browser to be from AOL |
269 | - * @param $isAol |
|
269 | + * @param boolean $isAol |
|
270 | 270 | */ |
271 | 271 | public function setAol($isAol) |
272 | 272 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @return array |
|
87 | + * @return string[] |
|
88 | 88 | */ |
89 | 89 | public function get_status_list() |
90 | 90 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @todo the form should be auto generated |
97 | 97 | * @param string $url |
98 | 98 | * @param string $action add, edit |
99 | - * @return obj form validator obj |
|
99 | + * @return FormValidator form validator obj |
|
100 | 100 | */ |
101 | 101 | public function return_form($url, $action) |
102 | 102 | { |