@@ -306,7 +306,7 @@ |
||
306 | 306 | * @param bool $add_to_calendar |
307 | 307 | * @param bool $sendEmailTest |
308 | 308 | * |
309 | - * @return mixed insert_id on success, false on failure |
|
309 | + * @return false|string insert_id on success, false on failure |
|
310 | 310 | */ |
311 | 311 | public static function add_announcement( |
312 | 312 | $title, |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Start a timer and hand it back to the JS by assigning the current time (of start) to |
11 | 11 | * var asset_timer |
12 | - * @return string JavaScript time intializer |
|
12 | + * @return integer JavaScript time intializer |
|
13 | 13 | */ |
14 | 14 | function start_timer() |
15 | 15 | { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | * @param int $sessionId |
130 | 130 | * @param string $downloadCertificateLink |
131 | 131 | * @param string $badgeLink |
132 | - * @return mixed|string |
|
132 | + * @return string |
|
133 | 133 | */ |
134 | 134 | function generateLPFinalItemTemplate($lpItemId, $courseCode, $sessionId = 0, $downloadCertificateLink = '', $badgeLink = '') |
135 | 135 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Gets html pages and compose them into a learning path |
44 | 44 | * @param array The files that will compose the generated learning path. Unused so far. |
45 | - * @return boolean False if file does not exit. Nothing otherwise. |
|
45 | + * @return false|null False if file does not exit. Nothing otherwise. |
|
46 | 46 | */ |
47 | 47 | function make_lp($files = array()) |
48 | 48 | { |
@@ -96,6 +96,7 @@ discard block |
||
96 | 96 | * Manages dir/chapter splitting |
97 | 97 | * @param string Chapter header |
98 | 98 | * @param string Content |
99 | + * @param string $content |
|
99 | 100 | * @return void |
100 | 101 | */ |
101 | 102 | function dealPerChapter($header, $content) |
@@ -187,6 +188,7 @@ discard block |
||
187 | 188 | * Manages page splitting |
188 | 189 | * @param string Page header |
189 | 190 | * @param string Page body |
191 | + * @param string $body |
|
190 | 192 | * @return void |
191 | 193 | */ |
192 | 194 | function dealPerPage($header, $body) |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Gets html pages and compose them into a learning path |
40 | 40 | * @param array The files that will compose the generated learning path. Unused so far. |
41 | - * @return boolean False if file does not exit. Nothing otherwise. |
|
41 | + * @return false|null False if file does not exit. Nothing otherwise. |
|
42 | 42 | */ |
43 | 43 | public function make_lp($files = array()) |
44 | 44 | { |
@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | * Manages dir/chapter splitting |
93 | 93 | * @param string Chapter header |
94 | 94 | * @param string Content |
95 | + * @param string $content |
|
95 | 96 | * @return void |
96 | 97 | */ |
97 | 98 | function dealPerChapter($header, $content) |
@@ -181,6 +182,7 @@ discard block |
||
181 | 182 | * Manages page splitting |
182 | 183 | * @param string Page header |
183 | 184 | * @param string Page body |
185 | + * @param string $body |
|
184 | 186 | * @return void |
185 | 187 | */ |
186 | 188 | function dealPerPage($header, $body) |
@@ -2626,6 +2626,9 @@ |
||
2626 | 2626 | ) |
2627 | 2627 | ); |
2628 | 2628 | |
2629 | +/** |
|
2630 | + * @param string $type |
|
2631 | + */ |
|
2629 | 2632 | function WSHelperActionOnUsers($params, $type) { |
2630 | 2633 | if (!WSHelperVerifyKey($params)) { |
2631 | 2634 | return returnError(WS_ERROR_SECRET_KEY); |
@@ -342,6 +342,7 @@ |
||
342 | 342 | * @param string User id value |
343 | 343 | * @param int Set to 1 to subscribe, 0 to unsubscribe |
344 | 344 | * @param int Status (STUDENT or TEACHER) Used for subscription only |
345 | + * @param integer $state |
|
345 | 346 | * @return mixed True if subscription or unsubscription was successful, false otherwise |
346 | 347 | */ |
347 | 348 | protected function changeUserSubscription($course_id_field_name, $course_id_value, $user_id_field_name, $user_id_value, $state, $status = STUDENT) { |
@@ -327,7 +327,7 @@ |
||
327 | 327 | * @param array $arr1 first array |
328 | 328 | * @param array $arr2 second array |
329 | 329 | * |
330 | - * @return array difference between the two arrays |
|
330 | + * @return string difference between the two arrays |
|
331 | 331 | */ |
332 | 332 | function diff($arr1, $arr2) |
333 | 333 | { |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | * @author Bert Vanderkimpen |
715 | 715 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
716 | 716 | * @param string $base_work_dir Base work dir (.../work) |
717 | - * @param string $desiredDirName complete path of the desired name |
|
717 | + * @param string $desired_dir_name complete path of the desired name |
|
718 | 718 | * |
719 | 719 | * @return string actual directory name if it succeeds, boolean false otherwise |
720 | 720 | */ |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | /** |
737 | 737 | * Delete a work-tool directory |
738 | 738 | * @param int $id work directory id to delete |
739 | - * @return integer -1 on error |
|
739 | + * @return boolean|null -1 on error |
|
740 | 740 | */ |
741 | 741 | function deleteDirWork($id) |
742 | 742 | { |
@@ -893,7 +893,7 @@ discard block |
||
893 | 893 | * Update the url of a dir in the student_publication table |
894 | 894 | * @param array $work_data work original data |
895 | 895 | * @param string $newPath Example: "folder1" |
896 | - * @return bool |
|
896 | + * @return boolean|null |
|
897 | 897 | */ |
898 | 898 | function updateDirName($work_data, $newPath) |
899 | 899 | { |
@@ -952,6 +952,7 @@ discard block |
||
952 | 952 | /** |
953 | 953 | * Transform an all directory structure (only directories) in an array |
954 | 954 | * @param string path of the directory |
955 | + * @param string $directory |
|
955 | 956 | * @return array the directory structure into an array |
956 | 957 | * @author Julio Montoya |
957 | 958 | * @version April 2008 |
@@ -1026,7 +1027,7 @@ discard block |
||
1026 | 1027 | * @param string the path of the directory |
1027 | 1028 | * @param boolean true if we want the total quantity of files |
1028 | 1029 | * include in others child directories, false only files in the directory |
1029 | - * @return array the first element is an integer with the number of files |
|
1030 | + * @return integer[] the first element is an integer with the number of files |
|
1030 | 1031 | * in the folder, the second element is the number of directories |
1031 | 1032 | * @author Julio Montoya |
1032 | 1033 | * @version April 2008 |
@@ -2781,7 +2782,7 @@ discard block |
||
2781 | 2782 | * @param int $userId |
2782 | 2783 | * @param int $workId |
2783 | 2784 | * @param int $courseId |
2784 | - * @return bool |
|
2785 | + * @return boolean|null |
|
2785 | 2786 | */ |
2786 | 2787 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
2787 | 2788 | { |
@@ -3058,6 +3059,7 @@ discard block |
||
3058 | 3059 | * @param int $parentId |
3059 | 3060 | * @param array $courseInfo |
3060 | 3061 | * @param int $sessionId |
3062 | + * @param integer $userId |
|
3061 | 3063 | * @return int |
3062 | 3064 | */ |
3063 | 3065 | function getLastWorkStudentFromParentByUser( |
@@ -3753,7 +3755,7 @@ discard block |
||
3753 | 3755 | * @param array $formValues |
3754 | 3756 | * @param int $user_id |
3755 | 3757 | * @param array $courseInfo |
3756 | - * @param int $group_id |
|
3758 | + * @param integer $groupId |
|
3757 | 3759 | * @param int $session_id |
3758 | 3760 | * @return bool|int |
3759 | 3761 | * @note $params can have the following elements, but should at least have the 2 first ones: ( |
@@ -4280,7 +4282,7 @@ discard block |
||
4280 | 4282 | } |
4281 | 4283 | |
4282 | 4284 | /** |
4283 | - * @return array |
|
4285 | + * @return string[] |
|
4284 | 4286 | */ |
4285 | 4287 | function getUploadDocumentType() |
4286 | 4288 | { |
@@ -4668,7 +4670,7 @@ discard block |
||
4668 | 4670 | * @param int Session ID |
4669 | 4671 | * @param $correction |
4670 | 4672 | * |
4671 | - * @return array|bool |
|
4673 | + * @return boolean |
|
4672 | 4674 | */ |
4673 | 4675 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
4674 | 4676 | { |
@@ -4786,7 +4788,7 @@ discard block |
||
4786 | 4788 | * @param int $userId |
4787 | 4789 | * @param array $courseInfo |
4788 | 4790 | * @param string $format |
4789 | - * @return bool |
|
4791 | + * @return false|null |
|
4790 | 4792 | */ |
4791 | 4793 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
4792 | 4794 | { |
@@ -4832,7 +4834,7 @@ discard block |
||
4832 | 4834 | * @param array $courseInfo |
4833 | 4835 | * @param int $sessionId |
4834 | 4836 | * @param string $format |
4835 | - * @return bool |
|
4837 | + * @return false|null |
|
4836 | 4838 | */ |
4837 | 4839 | function exportAllStudentWorkFromPublication( |
4838 | 4840 | $workId, |
@@ -4970,7 +4972,7 @@ discard block |
||
4970 | 4972 | * Downloads all user files per user |
4971 | 4973 | * @param int $userId |
4972 | 4974 | * @param array $courseInfo |
4973 | - * @return bool |
|
4975 | + * @return false|null |
|
4974 | 4976 | */ |
4975 | 4977 | function downloadAllFilesPerUser($userId, $courseInfo) |
4976 | 4978 | { |
@@ -5084,7 +5086,7 @@ discard block |
||
5084 | 5086 | /** |
5085 | 5087 | * @param array $courseInfo |
5086 | 5088 | * @param int $workId |
5087 | - * @return bool |
|
5089 | + * @return boolean|null |
|
5088 | 5090 | */ |
5089 | 5091 | function protectWork($courseInfo, $workId) |
5090 | 5092 | { |