@@ -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 | { |
@@ -1619,7 +1619,7 @@ discard block |
||
1619 | 1619 | * @param array $user_list |
1620 | 1620 | * @param int $session_visibility |
1621 | 1621 | * @param bool $empty_users |
1622 | - * @return bool |
|
1622 | + * @return false|null |
|
1623 | 1623 | */ |
1624 | 1624 | public static function suscribe_users_to_session( |
1625 | 1625 | $id_session, |
@@ -1891,7 +1891,7 @@ discard block |
||
1891 | 1891 | * @param array $courseInfo |
1892 | 1892 | * @param int $status |
1893 | 1893 | * @param bool $updateTotal |
1894 | - * @return bool |
|
1894 | + * @return false|null |
|
1895 | 1895 | */ |
1896 | 1896 | public static function removeUsersFromCourseSession( |
1897 | 1897 | $userList, |
@@ -1957,7 +1957,7 @@ discard block |
||
1957 | 1957 | * @param string $course_code |
1958 | 1958 | * @param int $session_visibility |
1959 | 1959 | * @param bool $removeUsersNotInList |
1960 | - * @return bool |
|
1960 | + * @return false|null |
|
1961 | 1961 | */ |
1962 | 1962 | public static function subscribe_users_to_session_course( |
1963 | 1963 | $user_list, |
@@ -2140,7 +2140,7 @@ discard block |
||
2140 | 2140 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2141 | 2141 | * existing courses and users (true, default) or not (false) |
2142 | 2142 | * @param $copyEvaluation from base course to session course |
2143 | - * @return void Nothing, or false on error |
|
2143 | + * @return false|null Nothing, or false on error |
|
2144 | 2144 | * */ |
2145 | 2145 | public static function add_courses_to_session( |
2146 | 2146 | $sessionId, |
@@ -2336,6 +2336,8 @@ discard block |
||
2336 | 2336 | * |
2337 | 2337 | * @param int Session id |
2338 | 2338 | * @param int Course id |
2339 | + * @param integer $session_id |
|
2340 | + * @param integer $course_id |
|
2339 | 2341 | * @return bool True in case of success, false otherwise |
2340 | 2342 | */ |
2341 | 2343 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2391,7 +2393,7 @@ discard block |
||
2391 | 2393 | * @param string $variable Field's internal variable name |
2392 | 2394 | * @param int $fieldType Field's type |
2393 | 2395 | * @param string $displayText Field's language var name |
2394 | - * @return int new extra field id |
|
2396 | + * @return boolean new extra field id |
|
2395 | 2397 | */ |
2396 | 2398 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2397 | 2399 | { |
@@ -2615,7 +2617,7 @@ discard block |
||
2615 | 2617 | * @param array id_checked |
2616 | 2618 | * @param bool include delete session |
2617 | 2619 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2618 | - * @return void Nothing, or false on error |
|
2620 | + * @return boolean Nothing, or false on error |
|
2619 | 2621 | * The parameters is a array to delete sessions |
2620 | 2622 | * */ |
2621 | 2623 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3381,8 +3383,8 @@ discard block |
||
3381 | 3383 | /** |
3382 | 3384 | * Gets the list of courses by session filtered by access_url |
3383 | 3385 | * |
3384 | - * @param $userId |
|
3385 | - * @param $sessionId |
|
3386 | + * @param integer $userId |
|
3387 | + * @param null|integer $sessionId |
|
3386 | 3388 | * @param null $from |
3387 | 3389 | * @param null $limit |
3388 | 3390 | * @param null $column |
@@ -3507,6 +3509,7 @@ discard block |
||
3507 | 3509 | /** |
3508 | 3510 | * Gets the count of courses by session filtered by access_url |
3509 | 3511 | * @param int session id |
3512 | + * @param integer $session_id |
|
3510 | 3513 | * @return array list of courses |
3511 | 3514 | */ |
3512 | 3515 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3758,6 +3761,7 @@ discard block |
||
3758 | 3761 | * Updates a session status |
3759 | 3762 | * @param int session id |
3760 | 3763 | * @param int status |
3764 | + * @param integer $status |
|
3761 | 3765 | */ |
3762 | 3766 | public static function set_session_status($session_id, $status) |
3763 | 3767 | { |
@@ -3966,7 +3970,7 @@ discard block |
||
3966 | 3970 | * Protect a session to be edited. |
3967 | 3971 | * @param int $id |
3968 | 3972 | * @param bool $checkSession |
3969 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
3973 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
3970 | 3974 | */ |
3971 | 3975 | public static function protectSession($id, $checkSession = true) |
3972 | 3976 | { |
@@ -4074,7 +4078,7 @@ discard block |
||
4074 | 4078 | |
4075 | 4079 | /** |
4076 | 4080 | * @param $id |
4077 | - * @return bool |
|
4081 | + * @return null|boolean |
|
4078 | 4082 | */ |
4079 | 4083 | public static function protect_teacher_session_edit($id) |
4080 | 4084 | { |
@@ -4138,7 +4142,7 @@ discard block |
||
4138 | 4142 | * true: if the session exists it will be updated. |
4139 | 4143 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4140 | 4144 | * @param int $defaultUserId |
4141 | - * @param mixed $logger |
|
4145 | + * @param Logger $logger |
|
4142 | 4146 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4143 | 4147 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4144 | 4148 | * @param string $extraFieldId |
@@ -5441,7 +5445,6 @@ discard block |
||
5441 | 5445 | * @param string $lastConnectionDate |
5442 | 5446 | * @param array $sessionIdList |
5443 | 5447 | * @param array $studentIdList |
5444 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5445 | 5448 | * |
5446 | 5449 | * @return array|int |
5447 | 5450 | */ |
@@ -5593,7 +5596,7 @@ discard block |
||
5593 | 5596 | /** |
5594 | 5597 | * Get the list of course tools that have to be dealt with in case of |
5595 | 5598 | * registering any course to a session |
5596 | - * @return array The list of tools to be dealt with (literal names) |
|
5599 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5597 | 5600 | */ |
5598 | 5601 | public static function getCourseToolToBeManaged() |
5599 | 5602 | { |
@@ -5607,7 +5610,7 @@ discard block |
||
5607 | 5610 | * Calls the methods bound to each tool when a course is registered into a session |
5608 | 5611 | * @param int $sessionId |
5609 | 5612 | * @param int $courseId |
5610 | - * @return void |
|
5613 | + * @return boolean|null |
|
5611 | 5614 | */ |
5612 | 5615 | public static function installCourse($sessionId, $courseId) |
5613 | 5616 | { |
@@ -6247,6 +6250,7 @@ discard block |
||
6247 | 6250 | * @param int $categoryId The internal ID of the session category |
6248 | 6251 | * @param string $target Value to search for in the session field values |
6249 | 6252 | * @param array $extraFields A list of fields to be scanned and returned |
6253 | + * @param DateTime $publicationDate |
|
6250 | 6254 | * @return mixed |
6251 | 6255 | */ |
6252 | 6256 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -7577,7 +7581,7 @@ discard block |
||
7577 | 7581 | /** |
7578 | 7582 | * Get link to the admin page for this session |
7579 | 7583 | * @param int $id Session ID |
7580 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7584 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7581 | 7585 | */ |
7582 | 7586 | public static function getAdminPath($id) |
7583 | 7587 | { |
@@ -7594,7 +7598,7 @@ discard block |
||
7594 | 7598 | * If a course is provided, build the link to the course |
7595 | 7599 | * @param int $id Session ID |
7596 | 7600 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7597 | - * @return mixed URL to the page to use the session, or false on error |
|
7601 | + * @return false|string URL to the page to use the session, or false on error |
|
7598 | 7602 | */ |
7599 | 7603 | public static function getPath($id, $courseId = 0) |
7600 | 7604 | { |