@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | * @author Bert Vanderkimpen |
696 | 696 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
697 | 697 | * @param string $base_work_dir Base work dir (.../work) |
698 | - * @param string $desiredDirName complete path of the desired name |
|
698 | + * @param string $desired_dir_name complete path of the desired name |
|
699 | 699 | * |
700 | 700 | * @return string actual directory name if it succeeds, boolean false otherwise |
701 | 701 | */ |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | /** |
718 | 718 | * Delete a work-tool directory |
719 | 719 | * @param int $id work directory id to delete |
720 | - * @return integer -1 on error |
|
720 | + * @return boolean|null -1 on error |
|
721 | 721 | */ |
722 | 722 | function deleteDirWork($id) |
723 | 723 | { |
@@ -860,7 +860,7 @@ discard block |
||
860 | 860 | * Update the url of a dir in the student_publication table |
861 | 861 | * @param array $work_data work original data |
862 | 862 | * @param string $newPath Example: "folder1" |
863 | - * @return bool |
|
863 | + * @return boolean|null |
|
864 | 864 | */ |
865 | 865 | function updateDirName($work_data, $newPath) |
866 | 866 | { |
@@ -921,6 +921,7 @@ discard block |
||
921 | 921 | /** |
922 | 922 | * Transform an all directory structure (only directories) in an array |
923 | 923 | * @param string path of the directory |
924 | + * @param string $directory |
|
924 | 925 | * @return array the directory structure into an array |
925 | 926 | * @author Julio Montoya Dokeos |
926 | 927 | * @version April 2008 |
@@ -990,7 +991,7 @@ discard block |
||
990 | 991 | * @param string the path of the directory |
991 | 992 | * @param boolean true if we want the total quantity of files |
992 | 993 | * include in others child directories, false only files in the directory |
993 | - * @return array the first element is an integer with the number of files |
|
994 | + * @return integer[] the first element is an integer with the number of files |
|
994 | 995 | * in the folder, the second element is the number of directories |
995 | 996 | * @author Julio Montoya |
996 | 997 | * @version April 2008 |
@@ -2723,7 +2724,7 @@ discard block |
||
2723 | 2724 | * @param int $userId |
2724 | 2725 | * @param int $workId |
2725 | 2726 | * @param int $courseId |
2726 | - * @return bool |
|
2727 | + * @return boolean|null |
|
2727 | 2728 | */ |
2728 | 2729 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
2729 | 2730 | { |
@@ -2997,6 +2998,7 @@ discard block |
||
2997 | 2998 | * @param int $parentId |
2998 | 2999 | * @param array $courseInfo |
2999 | 3000 | * @param int $sessionId |
3001 | + * @param integer $userId |
|
3000 | 3002 | * @return int |
3001 | 3003 | */ |
3002 | 3004 | function getLastWorkStudentFromParentByUser( |
@@ -3668,7 +3670,7 @@ discard block |
||
3668 | 3670 | * @param array $formValues |
3669 | 3671 | * @param int $user_id |
3670 | 3672 | * @param array $courseInfo |
3671 | - * @param int $group_id |
|
3673 | + * @param integer $groupId |
|
3672 | 3674 | * @param int $session_id |
3673 | 3675 | * @return bool|int |
3674 | 3676 | * @note $params can have the following elements, but should at least have the 2 first ones: ( |
@@ -4173,7 +4175,7 @@ discard block |
||
4173 | 4175 | } |
4174 | 4176 | |
4175 | 4177 | /** |
4176 | - * @return array |
|
4178 | + * @return string[] |
|
4177 | 4179 | */ |
4178 | 4180 | function getUploadDocumentType() |
4179 | 4181 | { |
@@ -4546,7 +4548,7 @@ discard block |
||
4546 | 4548 | * @param int Session ID |
4547 | 4549 | * @param $correction |
4548 | 4550 | * |
4549 | - * @return array|bool |
|
4551 | + * @return boolean |
|
4550 | 4552 | */ |
4551 | 4553 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
4552 | 4554 | { |
@@ -4664,7 +4666,7 @@ discard block |
||
4664 | 4666 | * @param int $userId |
4665 | 4667 | * @param array $courseInfo |
4666 | 4668 | * @param string $format |
4667 | - * @return bool |
|
4669 | + * @return false|null |
|
4668 | 4670 | */ |
4669 | 4671 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
4670 | 4672 | { |
@@ -4710,7 +4712,7 @@ discard block |
||
4710 | 4712 | * @param array $courseInfo |
4711 | 4713 | * @param int $sessionId |
4712 | 4714 | * @param string $format |
4713 | - * @return bool |
|
4715 | + * @return false|null |
|
4714 | 4716 | */ |
4715 | 4717 | function exportAllStudentWorkFromPublication( |
4716 | 4718 | $workId, |
@@ -4848,7 +4850,7 @@ discard block |
||
4848 | 4850 | * Downloads all user files per user |
4849 | 4851 | * @param int $userId |
4850 | 4852 | * @param array $courseInfo |
4851 | - * @return bool |
|
4853 | + * @return false|null |
|
4852 | 4854 | */ |
4853 | 4855 | function downloadAllFilesPerUser($userId, $courseInfo) |
4854 | 4856 | { |
@@ -4962,7 +4964,7 @@ discard block |
||
4962 | 4964 | /** |
4963 | 4965 | * @param array $courseInfo |
4964 | 4966 | * @param int $workId |
4965 | - * @return bool |
|
4967 | + * @return boolean|null |
|
4966 | 4968 | */ |
4967 | 4969 | function protectWork($courseInfo, $workId) |
4968 | 4970 | { |
@@ -318,7 +318,6 @@ |
||
318 | 318 | } |
319 | 319 | |
320 | 320 | /** |
321 | - * @param int $courseId |
|
322 | 321 | * @return array |
323 | 322 | * @throws Exception |
324 | 323 | */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @return array |
|
48 | + * @return string[] |
|
49 | 49 | */ |
50 | 50 | public static function getFoldersToDelete() |
51 | 51 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | public static function getFilesToDelete() |
101 | 101 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Get the class instance |
27 | 27 | * @staticvar MsiLtiPlugin $result |
28 | - * @return MsiLtiPlugin |
|
28 | + * @return ImsLtiPlugin |
|
29 | 29 | */ |
30 | 30 | public static function create() |
31 | 31 | { |
@@ -20,6 +20,9 @@ |
||
20 | 20 | return $this->id; |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
23 | 26 | public function getName() |
24 | 27 | { |
25 | 28 | return $this->name; |
@@ -334,6 +334,9 @@ |
||
334 | 334 | return preg_replace('/, $/','',$result); |
335 | 335 | } |
336 | 336 | |
337 | + /** |
|
338 | + * @param string $paramString |
|
339 | + */ |
|
337 | 340 | private function _parseParameterString ($paramString) |
338 | 341 | { |
339 | 342 | $elements = explode('&',$paramString); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Returns the name without extension, used for the title |
54 | 54 | * |
55 | 55 | * @param string $name |
56 | - * @return name without the extension |
|
56 | + * @return string without the extension |
|
57 | 57 | */ |
58 | 58 | function get_document_title($name) |
59 | 59 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * This function checks if the upload succeeded |
68 | 68 | * |
69 | 69 | * @param array $uploaded_file ($_FILES) |
70 | - * @return true if upload succeeded |
|
70 | + * @return boolean if upload succeeded |
|
71 | 71 | */ |
72 | 72 | function process_uploaded_file($uploaded_file, $show_output = true) |
73 | 73 | { |
@@ -1025,7 +1025,7 @@ discard block |
||
1025 | 1025 | * @param array $courseInfo |
1026 | 1026 | * @param array $userInfo |
1027 | 1027 | * @param array $uploaded_file - follows the $_FILES Structure |
1028 | - * @param string $upload_path - destination of the upload. |
|
1028 | + * @param string $uploadPath - destination of the upload. |
|
1029 | 1029 | * This path is to append to $base_work_dir |
1030 | 1030 | * @param string $base_work_dir - base working directory of the module |
1031 | 1031 | * @param int $maxFilledSpace - amount of bytes to not exceed in the base |
@@ -1212,7 +1212,7 @@ discard block |
||
1212 | 1212 | * @param int $session_id Session ID, if any |
1213 | 1213 | * @param int $userId creator id |
1214 | 1214 | * |
1215 | - * @return int id if inserted document |
|
1215 | + * @return string|false id if inserted document |
|
1216 | 1216 | */ |
1217 | 1217 | function add_document( |
1218 | 1218 | $_course, |
@@ -1346,7 +1346,7 @@ discard block |
||
1346 | 1346 | * |
1347 | 1347 | * @author Olivier Cauberghe <[email protected]> |
1348 | 1348 | * @param path+filename eg: /main/document/document.php |
1349 | - * @return The directory depth |
|
1349 | + * @return integer directory depth |
|
1350 | 1350 | */ |
1351 | 1351 | function get_levels($filename) { |
1352 | 1352 | $levels = explode('/', $filename); |
@@ -1363,6 +1363,8 @@ discard block |
||
1363 | 1363 | * @author Olivier Cauberghe <[email protected]> |
1364 | 1364 | * @param path,filename |
1365 | 1365 | * action: Adds an entry to the document table with the default settings. |
1366 | + * @param string $upload_path |
|
1367 | + * @param string $filename |
|
1366 | 1368 | */ |
1367 | 1369 | function set_default_settings($upload_path, $filename, $filetype = 'file') |
1368 | 1370 | { |
@@ -1818,7 +1820,6 @@ discard block |
||
1818 | 1820 | * @param int $groupId |
1819 | 1821 | * @param bool $output |
1820 | 1822 | * @param array $parent |
1821 | - * @param string $uploadPath |
|
1822 | 1823 | * |
1823 | 1824 | */ |
1824 | 1825 | function add_all_documents_in_folder_to_database( |
@@ -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 | { |
@@ -37,6 +37,8 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @param int Error code |
39 | 39 | * @param string Error message |
40 | + * @param integer $code |
|
41 | + * @param string $message |
|
40 | 42 | */ |
41 | 43 | public function __construct($code, $message) |
42 | 44 | { |
@@ -48,6 +50,7 @@ discard block |
||
48 | 50 | * Sets the error handler |
49 | 51 | * |
50 | 52 | * @param WSErrorHandler Error handler |
53 | + * @param WSCMSoapErrorHandler $handler |
|
51 | 54 | */ |
52 | 55 | public static function setErrorHandler($handler) |
53 | 56 | { |
@@ -86,6 +89,7 @@ discard block |
||
86 | 89 | * Handle method |
87 | 90 | * |
88 | 91 | * @param WSError Error |
92 | + * @return void |
|
89 | 93 | */ |
90 | 94 | public function handle($error); |
91 | 95 | } |
@@ -114,7 +118,7 @@ discard block |
||
114 | 118 | * Verifies the API key |
115 | 119 | * |
116 | 120 | * @param string Secret key |
117 | - * @return mixed WSError in case of failure, null in case of success |
|
121 | + * @return WSCMError|null WSError in case of failure, null in case of success |
|
118 | 122 | */ |
119 | 123 | protected function verifyKey($secret_key) |
120 | 124 | { |