@@ -453,6 +453,7 @@ |
||
453 | 453 | * @param string Session id field name |
454 | 454 | * @param string Session id value |
455 | 455 | * @param int State (1 to subscribe, 0 to unsubscribe) |
456 | + * @param integer $state |
|
456 | 457 | * @return mixed True on success, WSError otherwise |
457 | 458 | */ |
458 | 459 | protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) { |
@@ -453,6 +453,7 @@ |
||
453 | 453 | * @param string Session id field name |
454 | 454 | * @param string Session id value |
455 | 455 | * @param int State (1 to subscribe, 0 to unsubscribe) |
456 | + * @param integer $state |
|
456 | 457 | * @return mixed True on success, WSError otherwise |
457 | 458 | */ |
458 | 459 | protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @param string |
279 | 279 | * @param string |
280 | - * @return true if the user is allowed to see the document, false otherwise |
|
280 | + * @return boolean if the user is allowed to see the document, false otherwise |
|
281 | 281 | * @author Sergio A Kessler, first version |
282 | 282 | * @author Roan Embrechts, bugfix |
283 | 283 | * @todo not only check if a file is visible, but also check if the user is allowed to see the file?? |
@@ -1527,7 +1527,7 @@ discard block |
||
1527 | 1527 | * Return true if the documentpath have visibility=1 as |
1528 | 1528 | * item_property (you should use the is_visible_by_id) |
1529 | 1529 | * |
1530 | - * @param string $document_path the relative complete path of the document |
|
1530 | + * @param string $doc_path the relative complete path of the document |
|
1531 | 1531 | * @param array $course the _course array info of the document's course |
1532 | 1532 | * @param int |
1533 | 1533 | * @param string |
@@ -1612,6 +1612,8 @@ discard block |
||
1612 | 1612 | * @param int |
1613 | 1613 | * @param int |
1614 | 1614 | * @param bool |
1615 | + * @param integer $session_id |
|
1616 | + * @param integer $user_id |
|
1615 | 1617 | * @return bool |
1616 | 1618 | */ |
1617 | 1619 | public static function is_visible_by_id( |
@@ -2090,6 +2092,7 @@ discard block |
||
2090 | 2092 | * @param bool is file or string html |
2091 | 2093 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
2092 | 2094 | * @param int level of recursivity we're in |
2095 | + * @param string $source_html |
|
2093 | 2096 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
2094 | 2097 | * if the file should be copied into the zip or just linked |
2095 | 2098 | */ |
@@ -2913,6 +2916,7 @@ discard block |
||
2913 | 2916 | |
2914 | 2917 | /** |
2915 | 2918 | * Obtains the text inside the file with the right parser |
2919 | + * @param string $doc_path |
|
2916 | 2920 | */ |
2917 | 2921 | public static function get_text_content($doc_path, $doc_mime) |
2918 | 2922 | { |
@@ -3163,6 +3167,7 @@ discard block |
||
3163 | 3167 | * Shows a play icon next to the document title in the document list |
3164 | 3168 | * @param int |
3165 | 3169 | * @param string |
3170 | + * @param integer|null $i |
|
3166 | 3171 | * @return string html content |
3167 | 3172 | */ |
3168 | 3173 | static function generate_media_preview($i, $type = 'simple') |
@@ -3557,7 +3562,7 @@ discard block |
||
3557 | 3562 | * @param bool $add_move_button |
3558 | 3563 | * @param string $target |
3559 | 3564 | * @param string $overwrite_url |
3560 | - * @return null|string |
|
3565 | + * @return string |
|
3561 | 3566 | */ |
3562 | 3567 | private static function parseFile( |
3563 | 3568 | $course_info, |
@@ -4058,7 +4063,7 @@ discard block |
||
4058 | 4063 | } |
4059 | 4064 | |
4060 | 4065 | /** |
4061 | - * @return array |
|
4066 | + * @return string[] |
|
4062 | 4067 | */ |
4063 | 4068 | public static function get_web_odf_extension_list() |
4064 | 4069 | { |
@@ -4067,10 +4072,10 @@ discard block |
||
4067 | 4072 | |
4068 | 4073 | /** |
4069 | 4074 | * Set of extension allowed to use Jodconverter |
4070 | - * @param $mode 'from' |
|
4075 | + * @param string $mode 'from' |
|
4071 | 4076 | * 'to' |
4072 | 4077 | * 'all' |
4073 | - * @param $format 'text' |
|
4078 | + * @param string $format 'text' |
|
4074 | 4079 | * 'spreadsheet' |
4075 | 4080 | * 'presentation' |
4076 | 4081 | * 'drawing' |
@@ -4274,7 +4279,7 @@ discard block |
||
4274 | 4279 | } |
4275 | 4280 | |
4276 | 4281 | /** |
4277 | - * @return array |
|
4282 | + * @return string[] |
|
4278 | 4283 | */ |
4279 | 4284 | public static function get_system_folders() |
4280 | 4285 | { |
@@ -4292,7 +4297,7 @@ discard block |
||
4292 | 4297 | } |
4293 | 4298 | |
4294 | 4299 | /** |
4295 | - * @return array |
|
4300 | + * @return string[] |
|
4296 | 4301 | */ |
4297 | 4302 | public static function getProtectedFolderFromStudent() |
4298 | 4303 | { |
@@ -4448,7 +4453,7 @@ discard block |
||
4448 | 4453 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
4449 | 4454 | * @param string $wavFile |
4450 | 4455 | * @param bool $removeWavFileIfSuccess |
4451 | - * @return bool |
|
4456 | + * @return string|false |
|
4452 | 4457 | */ |
4453 | 4458 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
4454 | 4459 | { |
@@ -5536,9 +5541,6 @@ discard block |
||
5536 | 5541 | /** |
5537 | 5542 | * Creates the row of edit icons for a file/folder |
5538 | 5543 | * |
5539 | - * @param string $curdirpath current path (cfr open folder) |
|
5540 | - * @param string $type (file/folder) |
|
5541 | - * @param string $path dbase path of file/folder |
|
5542 | 5544 | * @param int $visibility (1/0) |
5543 | 5545 | * @param int $id dbase id of the document |
5544 | 5546 | * @return string html img tags with hyperlinks |
@@ -5867,7 +5869,7 @@ discard block |
||
5867 | 5869 | /** |
5868 | 5870 | * Gets the path translated with title of docs and folders |
5869 | 5871 | * @param string $path the real path |
5870 | - * @return the path which should be displayed |
|
5872 | + * @return string path which should be displayed |
|
5871 | 5873 | */ |
5872 | 5874 | public static function get_titles_of_path($path) |
5873 | 5875 | { |
@@ -5922,7 +5924,8 @@ discard block |
||
5922 | 5924 | |
5923 | 5925 | /** |
5924 | 5926 | * Checks whether the user is in shared folder |
5925 | - * @return return bool Return true when user is into shared folder |
|
5927 | + * @param integer $current_session_id |
|
5928 | + * @return boolean bool Return true when user is into shared folder |
|
5926 | 5929 | */ |
5927 | 5930 | public static function is_shared_folder($curdirpath, $current_session_id) |
5928 | 5931 | { |
@@ -5938,7 +5941,7 @@ discard block |
||
5938 | 5941 | |
5939 | 5942 | /** |
5940 | 5943 | * Checks whether the user is into any user shared folder |
5941 | - * @return return bool Return true when user is in any user shared folder |
|
5944 | + * @return boolean bool Return true when user is in any user shared folder |
|
5942 | 5945 | */ |
5943 | 5946 | public static function is_any_user_shared_folder($path, $current_session_id) |
5944 | 5947 | { |
@@ -6152,7 +6155,7 @@ discard block |
||
6152 | 6155 | * @param int $id |
6153 | 6156 | * @param array $courseInfo |
6154 | 6157 | * @param int $sessionId |
6155 | - * @return bool |
|
6158 | + * @return boolean|null |
|
6156 | 6159 | */ |
6157 | 6160 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
6158 | 6161 | { |
@@ -6171,7 +6174,7 @@ discard block |
||
6171 | 6174 | * @param array $courseInfo |
6172 | 6175 | * @param int $sessionId |
6173 | 6176 | * |
6174 | - * @return bool |
|
6177 | + * @return false|null |
|
6175 | 6178 | */ |
6176 | 6179 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
6177 | 6180 | { |
@@ -6210,7 +6213,7 @@ discard block |
||
6210 | 6213 | * @param array $courseInfo |
6211 | 6214 | * @param int $sessionId |
6212 | 6215 | * |
6213 | - * @return bool |
|
6216 | + * @return false|null |
|
6214 | 6217 | */ |
6215 | 6218 | public function deleteDocumentsFromSession($courseInfo, $sessionId) |
6216 | 6219 | { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Available driver list. |
87 | - * @return array |
|
87 | + * @return string[] |
|
88 | 88 | */ |
89 | 89 | private function getDefaultDriverList() |
90 | 90 | { |
@@ -639,6 +639,8 @@ discard block |
||
639 | 639 | * @param int message id |
640 | 640 | * @param int message user id (receiver user id or sender user id) |
641 | 641 | * @param int group id (optional) |
642 | + * @param integer $message_id |
|
643 | + * @param integer $message_uid |
|
642 | 644 | * @return void |
643 | 645 | */ |
644 | 646 | public static function delete_message_attachment_file($message_id, $message_uid, $group_id = 0) |
@@ -683,7 +685,7 @@ discard block |
||
683 | 685 | * update messages by user id and message id |
684 | 686 | * @param int $user_id |
685 | 687 | * @param int $message_id |
686 | - * @return resource |
|
688 | + * @return false|null |
|
687 | 689 | */ |
688 | 690 | public static function update_message($user_id, $message_id) |
689 | 691 | { |
@@ -703,7 +705,7 @@ discard block |
||
703 | 705 | * @param int $user_id |
704 | 706 | * @param int $message_id |
705 | 707 | * @param string $type |
706 | - * @return bool |
|
708 | + * @return false|null |
|
707 | 709 | */ |
708 | 710 | public static function update_message_status($user_id, $message_id,$type) |
709 | 711 | { |
@@ -740,6 +742,7 @@ discard block |
||
740 | 742 | /** |
741 | 743 | * get messages by group id |
742 | 744 | * @param int group id |
745 | + * @param integer $group_id |
|
743 | 746 | * @return array |
744 | 747 | */ |
745 | 748 | public static function get_messages_by_group($group_id) |
@@ -1477,7 +1480,7 @@ discard block |
||
1477 | 1480 | * Sort date by desc from a multi-dimensional array |
1478 | 1481 | * @param array $array1 first array to compare |
1479 | 1482 | * @param array $array2 second array to compare |
1480 | - * @return bool |
|
1483 | + * @return integer |
|
1481 | 1484 | */ |
1482 | 1485 | public function order_desc_date($array1, $array2) |
1483 | 1486 | { |
@@ -1555,7 +1558,6 @@ discard block |
||
1555 | 1558 | /** |
1556 | 1559 | * @param $id |
1557 | 1560 | * @param array $params |
1558 | - * @param string $display |
|
1559 | 1561 | * @return string |
1560 | 1562 | */ |
1561 | 1563 | public static function generate_invitation_form($id, $params = array()) |
@@ -1644,7 +1646,7 @@ discard block |
||
1644 | 1646 | |
1645 | 1647 | /** |
1646 | 1648 | * @param string $keyword |
1647 | - * @return null|string |
|
1649 | + * @return string |
|
1648 | 1650 | */ |
1649 | 1651 | public static function outbox_display($keyword = '') |
1650 | 1652 | { |
@@ -1336,9 +1336,9 @@ discard block |
||
1336 | 1336 | * @param integer $sessionCategoryId |
1337 | 1337 | * @param int $visibility |
1338 | 1338 | * @param string $description |
1339 | - * @param bool $showDescription |
|
1339 | + * @param integer $showDescription |
|
1340 | 1340 | * @param int $duration |
1341 | - * @param array $extraFields |
|
1341 | + * @param boolean|null $extraFields |
|
1342 | 1342 | * @param int $sessionAdminId |
1343 | 1343 | * @param boolean $sendSubscriptionNotification Optional. |
1344 | 1344 | * Whether send a mail notification to users being subscribed |
@@ -1558,7 +1558,7 @@ discard block |
||
1558 | 1558 | * @param array $user_list |
1559 | 1559 | * @param int $session_visibility |
1560 | 1560 | * @param bool $empty_users |
1561 | - * @return bool |
|
1561 | + * @return false|null |
|
1562 | 1562 | */ |
1563 | 1563 | public static function suscribe_users_to_session( |
1564 | 1564 | $id_session, |
@@ -1830,7 +1830,7 @@ discard block |
||
1830 | 1830 | * @param array $courseInfo |
1831 | 1831 | * @param int $status |
1832 | 1832 | * @param bool $updateTotal |
1833 | - * @return bool |
|
1833 | + * @return false|null |
|
1834 | 1834 | */ |
1835 | 1835 | public static function removeUsersFromCourseSession( |
1836 | 1836 | $userList, |
@@ -1896,7 +1896,7 @@ discard block |
||
1896 | 1896 | * @param string $course_code |
1897 | 1897 | * @param int $session_visibility |
1898 | 1898 | * @param bool $removeUsersNotInList |
1899 | - * @return bool |
|
1899 | + * @return false|null |
|
1900 | 1900 | */ |
1901 | 1901 | public static function subscribe_users_to_session_course( |
1902 | 1902 | $user_list, |
@@ -2079,7 +2079,7 @@ discard block |
||
2079 | 2079 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2080 | 2080 | * existing courses and users (true, default) or not (false) |
2081 | 2081 | * @param $copyEvaluation from base course to session course |
2082 | - * @return void Nothing, or false on error |
|
2082 | + * @return false|null Nothing, or false on error |
|
2083 | 2083 | * */ |
2084 | 2084 | public static function add_courses_to_session( |
2085 | 2085 | $sessionId, |
@@ -2275,6 +2275,8 @@ discard block |
||
2275 | 2275 | * |
2276 | 2276 | * @param int Session id |
2277 | 2277 | * @param int Course id |
2278 | + * @param integer $session_id |
|
2279 | + * @param integer $course_id |
|
2278 | 2280 | * @return bool True in case of success, false otherwise |
2279 | 2281 | */ |
2280 | 2282 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2330,7 +2332,7 @@ discard block |
||
2330 | 2332 | * @param string $variable Field's internal variable name |
2331 | 2333 | * @param int $fieldType Field's type |
2332 | 2334 | * @param string $displayText Field's language var name |
2333 | - * @return int new extra field id |
|
2335 | + * @return boolean new extra field id |
|
2334 | 2336 | */ |
2335 | 2337 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2336 | 2338 | { |
@@ -2349,7 +2351,7 @@ discard block |
||
2349 | 2351 | * @param integer Course ID |
2350 | 2352 | * @param string Field variable name |
2351 | 2353 | * @param string Field value |
2352 | - * @return boolean true if field updated, false otherwise |
|
2354 | + * @return boolean|null true if field updated, false otherwise |
|
2353 | 2355 | */ |
2354 | 2356 | public static function update_session_extra_field_value($sessionId, $variable, $value = '') |
2355 | 2357 | { |
@@ -2554,7 +2556,7 @@ discard block |
||
2554 | 2556 | * @param array id_checked |
2555 | 2557 | * @param bool include delete session |
2556 | 2558 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2557 | - * @return void Nothing, or false on error |
|
2559 | + * @return boolean Nothing, or false on error |
|
2558 | 2560 | * The parameters is a array to delete sessions |
2559 | 2561 | * */ |
2560 | 2562 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3049,6 +3051,7 @@ discard block |
||
3049 | 3051 | * @param string $orderCondition |
3050 | 3052 | * @param string $keyword |
3051 | 3053 | * @param string $description |
3054 | + * @param integer $status |
|
3052 | 3055 | * @return array sessions |
3053 | 3056 | */ |
3054 | 3057 | public static function getSessionsFollowedByUser( |
@@ -3261,8 +3264,8 @@ discard block |
||
3261 | 3264 | /** |
3262 | 3265 | * Gets the list of courses by session filtered by access_url |
3263 | 3266 | * |
3264 | - * @param $userId |
|
3265 | - * @param $sessionId |
|
3267 | + * @param integer $userId |
|
3268 | + * @param null|integer $sessionId |
|
3266 | 3269 | * @param null $from |
3267 | 3270 | * @param null $limit |
3268 | 3271 | * @param null $column |
@@ -3387,6 +3390,7 @@ discard block |
||
3387 | 3390 | /** |
3388 | 3391 | * Gets the count of courses by session filtered by access_url |
3389 | 3392 | * @param int session id |
3393 | + * @param integer $session_id |
|
3390 | 3394 | * @return array list of courses |
3391 | 3395 | */ |
3392 | 3396 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3638,6 +3642,7 @@ discard block |
||
3638 | 3642 | * Updates a session status |
3639 | 3643 | * @param int session id |
3640 | 3644 | * @param int status |
3645 | + * @param integer $status |
|
3641 | 3646 | */ |
3642 | 3647 | public static function set_session_status($session_id, $status) |
3643 | 3648 | { |
@@ -3949,7 +3954,7 @@ discard block |
||
3949 | 3954 | |
3950 | 3955 | /** |
3951 | 3956 | * @param $id |
3952 | - * @return bool |
|
3957 | + * @return null|boolean |
|
3953 | 3958 | */ |
3954 | 3959 | public static function protect_teacher_session_edit($id) |
3955 | 3960 | { |
@@ -4013,7 +4018,7 @@ discard block |
||
4013 | 4018 | * true: if the session exists it will be updated. |
4014 | 4019 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4015 | 4020 | * @param int $defaultUserId |
4016 | - * @param mixed $logger |
|
4021 | + * @param Logger $logger |
|
4017 | 4022 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4018 | 4023 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4019 | 4024 | * @param string $extraFieldId |
@@ -5255,7 +5260,6 @@ discard block |
||
5255 | 5260 | * @param string $lastConnectionDate |
5256 | 5261 | * @param array $sessionIdList |
5257 | 5262 | * @param array $studentIdList |
5258 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5259 | 5263 | * |
5260 | 5264 | * @return array|int |
5261 | 5265 | */ |
@@ -5407,7 +5411,7 @@ discard block |
||
5407 | 5411 | /** |
5408 | 5412 | * Get the list of course tools that have to be dealt with in case of |
5409 | 5413 | * registering any course to a session |
5410 | - * @return array The list of tools to be dealt with (literal names) |
|
5414 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5411 | 5415 | */ |
5412 | 5416 | public static function getCourseToolToBeManaged() |
5413 | 5417 | { |
@@ -5421,7 +5425,7 @@ discard block |
||
5421 | 5425 | * Calls the methods bound to each tool when a course is registered into a session |
5422 | 5426 | * @param int $sessionId |
5423 | 5427 | * @param int $courseId |
5424 | - * @return void |
|
5428 | + * @return boolean|null |
|
5425 | 5429 | */ |
5426 | 5430 | public static function installCourse($sessionId, $courseId) |
5427 | 5431 | { |
@@ -6061,6 +6065,7 @@ discard block |
||
6061 | 6065 | * @param int $categoryId The internal ID of the session category |
6062 | 6066 | * @param string $target Value to search for in the session field values |
6063 | 6067 | * @param array $extraFields A list of fields to be scanned and returned |
6068 | + * @param DateTime $publicationDate |
|
6064 | 6069 | * @return mixed |
6065 | 6070 | */ |
6066 | 6071 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -7390,7 +7395,7 @@ discard block |
||
7390 | 7395 | /** |
7391 | 7396 | * Get link to the admin page for this session |
7392 | 7397 | * @param int $id Session ID |
7393 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7398 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7394 | 7399 | */ |
7395 | 7400 | public static function getAdminPath($id) |
7396 | 7401 | { |
@@ -7407,7 +7412,7 @@ discard block |
||
7407 | 7412 | * If a course is provided, build the link to the course |
7408 | 7413 | * @param int $id Session ID |
7409 | 7414 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7410 | - * @return mixed URL to the page to use the session, or false on error |
|
7415 | + * @return false|string URL to the page to use the session, or false on error |
|
7411 | 7416 | */ |
7412 | 7417 | public static function getPath($id, $courseId = 0) |
7413 | 7418 | { |
@@ -7505,7 +7510,7 @@ discard block |
||
7505 | 7510 | /** |
7506 | 7511 | * Return true if coach is allowed to access this session |
7507 | 7512 | * @param int $sessionId |
7508 | - * @return bool |
|
7513 | + * @return integer |
|
7509 | 7514 | */ |
7510 | 7515 | public static function isSessionDateOkForCoach($sessionId) |
7511 | 7516 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Deletes all survey invitations of a user |
48 | 48 | * @param int $user_id |
49 | 49 | * |
50 | - * @return boolean |
|
50 | + * @return false|null |
|
51 | 51 | * @assert ('') === false |
52 | 52 | */ |
53 | 53 | public static function delete_all_survey_invitations_by_user($user_id) |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Retrieves all the survey information |
105 | 105 | * |
106 | 106 | * @param integer $survey_id the id of the survey |
107 | - * @param boolean $shared this parameter determines if |
|
107 | + * @param integer $shared this parameter determines if |
|
108 | 108 | * we have to get the information of a survey from the central (shared) database or from the |
109 | 109 | * course database |
110 | 110 | * @param string course code optional |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | * This function deletes a survey (and also all the question in that survey |
572 | 572 | * |
573 | 573 | * @param int $survey_id id of the survey that has to be deleted |
574 | - * @return true |
|
574 | + * @return boolean |
|
575 | 575 | * |
576 | 576 | * @author Patrick Cool <[email protected]>, Ghent University |
577 | 577 | * @version January 2007 |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * |
757 | 757 | * @param int $survey_id id of the survey that has to be duplicated |
758 | 758 | * @param int $courseId id of the course which survey has to be duplicated |
759 | - * @return true |
|
759 | + * @return boolean |
|
760 | 760 | * |
761 | 761 | * @author Eric Marguin <[email protected]>, Elixir Interactive |
762 | 762 | * @version October 2007 |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | /** |
797 | 797 | * This function recalculates the number of people who have taken the survey (=filled at least one question) |
798 | 798 | * |
799 | - * @param int $survey_id the id of the survey somebody |
|
799 | + * @param int $survey_data the id of the survey somebody |
|
800 | 800 | * @return true |
801 | 801 | * |
802 | 802 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | * This function deletes a shared survey question from the main database and all its options |
1368 | 1368 | * |
1369 | 1369 | * @param int $question_id the id of the question |
1370 | - * @param int $shared |
|
1370 | + * @param integer $survey_id |
|
1371 | 1371 | * |
1372 | 1372 | * @todo delete all the options of this question |
1373 | 1373 | * |
@@ -1494,8 +1494,8 @@ discard block |
||
1494 | 1494 | * This function deletes all the options of the questions of a given survey |
1495 | 1495 | * This function is normally only called when a survey is deleted |
1496 | 1496 | * |
1497 | - * @param $survey_id the id of the survey that has to be deleted |
|
1498 | - * @return true |
|
1497 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1498 | + * @return boolean |
|
1499 | 1499 | * |
1500 | 1500 | * @author Patrick Cool <[email protected]>, Ghent University |
1501 | 1501 | * @version January 2007 |
@@ -1561,8 +1561,8 @@ discard block |
||
1561 | 1561 | * This function deletes all the answers anyone has given on this survey |
1562 | 1562 | * This function is normally only called when a survey is deleted |
1563 | 1563 | * |
1564 | - * @param $survey_id the id of the survey that has to be deleted |
|
1565 | - * @return true |
|
1564 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1565 | + * @return boolean |
|
1566 | 1566 | * |
1567 | 1567 | * @todo write the function |
1568 | 1568 | * |
@@ -1804,7 +1804,7 @@ discard block |
||
1804 | 1804 | /** |
1805 | 1805 | * This function checks the parameters that are used in this page |
1806 | 1806 | * |
1807 | - * @return string The header, an error and the footer if any parameter fails, else it returns true |
|
1807 | + * @return null|boolean The header, an error and the footer if any parameter fails, else it returns true |
|
1808 | 1808 | * @author Patrick Cool <[email protected]>, Ghent University |
1809 | 1809 | * @version February 2007 |
1810 | 1810 | */ |
@@ -2371,6 +2371,7 @@ discard block |
||
2371 | 2371 | * Display score data about a survey question |
2372 | 2372 | * @param array Question info |
2373 | 2373 | * @param integer The offset of results shown |
2374 | + * @param integer $offset |
|
2374 | 2375 | * @return void (direct output) |
2375 | 2376 | */ |
2376 | 2377 | public static function display_question_report_score($survey_data, $question, $offset) |
@@ -3208,7 +3209,7 @@ discard block |
||
3208 | 3209 | * @param array User's answers |
3209 | 3210 | * @param mixed User ID or user details as string - Used as a string in the result string |
3210 | 3211 | * @param boolean Whether to display user fields or not |
3211 | - * @return string One line of the csv file |
|
3212 | + * @return string[] One line of the csv file |
|
3212 | 3213 | */ |
3213 | 3214 | public static function export_complete_report_row_xls( |
3214 | 3215 | $survey_data, |
@@ -3801,7 +3802,7 @@ discard block |
||
3801 | 3802 | |
3802 | 3803 | /** |
3803 | 3804 | * @param $params |
3804 | - * @return bool|int |
|
3805 | + * @return false|string |
|
3805 | 3806 | */ |
3806 | 3807 | public static function save_invitation($params) |
3807 | 3808 | { |
@@ -3855,6 +3856,7 @@ discard block |
||
3855 | 3856 | * |
3856 | 3857 | * @param int invitedUser - the userId (course user) or emailaddress of additional user |
3857 | 3858 | * $param string $invitation_code - the unique invitation code for the URL |
3859 | + * @param string|null $invitation_text |
|
3858 | 3860 | * @return void |
3859 | 3861 | */ |
3860 | 3862 | public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text) |
@@ -4783,7 +4785,7 @@ discard block |
||
4783 | 4785 | /** |
4784 | 4786 | * @author Isaac Flores Paz <[email protected]> |
4785 | 4787 | * @param int $user_id - User ID |
4786 | - * @param int $user_id_answer - User in survey answer table (user id or anonymus) |
|
4788 | + * @param int $user_answer - User in survey answer table (user id or anonymus) |
|
4787 | 4789 | * @return boolean |
4788 | 4790 | */ |
4789 | 4791 | static function show_link_available($user_id, $survey_code, $user_answer) |
@@ -4829,7 +4831,7 @@ discard block |
||
4829 | 4831 | * Display survey question chart |
4830 | 4832 | * @param array Chart data |
4831 | 4833 | * @param boolean Tells if the chart has a serie. False by default |
4832 | - * @return void (direct output) |
|
4834 | + * @return string (direct output) |
|
4833 | 4835 | */ |
4834 | 4836 | public static function drawChart($chartData, $hasSerie = false, $chartContainerId = 'chartContainer') |
4835 | 4837 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param string $course Course code |
85 | 85 | * @param integer $lp_id |
86 | 86 | * @param integer $user_id |
87 | - * @return mixed True on success, false on error |
|
87 | + * @return boolean True on success, false on error |
|
88 | 88 | */ |
89 | 89 | public function __construct($course, $lp_id, $user_id) |
90 | 90 | { |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | * @param int $max_time_allowed |
486 | 486 | * @param int $userId |
487 | 487 | * |
488 | - * @return int |
|
488 | + * @return false|string |
|
489 | 489 | */ |
490 | 490 | public function add_item( |
491 | 491 | $parent, |
@@ -1036,7 +1036,7 @@ discard block |
||
1036 | 1036 | * @param array $courseInfo |
1037 | 1037 | * @param integer Learnpath ID |
1038 | 1038 | * @param string Whether to delete data or keep it (default: 'keep', others: 'remove') |
1039 | - * @return boolean True on success, false on failure (might change that to return number of elements deleted) |
|
1039 | + * @return false|null True on success, false on failure (might change that to return number of elements deleted) |
|
1040 | 1040 | */ |
1041 | 1041 | public function delete($courseInfo = null, $id = null, $delete = 'keep') |
1042 | 1042 | { |
@@ -1170,7 +1170,7 @@ discard block |
||
1170 | 1170 | * @param integer $id Elem ID (0 if first) |
1171 | 1171 | * @param integer $remove Whether to remove the resource/data from the |
1172 | 1172 | * system or leave it (default: 'keep', others 'remove') |
1173 | - * @return integer Number of elements moved |
|
1173 | + * @return false|null Number of elements moved |
|
1174 | 1174 | * @todo implement resource removal |
1175 | 1175 | */ |
1176 | 1176 | public function delete_item($id, $remove = 'keep') |
@@ -1252,7 +1252,7 @@ discard block |
||
1252 | 1252 | * @param array $audio The array resulting of the $_FILES[mp3] element |
1253 | 1253 | * @param int $max_time_allowed |
1254 | 1254 | * @param string $url |
1255 | - * @return boolean True on success, false on error |
|
1255 | + * @return false|null True on success, false on error |
|
1256 | 1256 | */ |
1257 | 1257 | public function edit_item( |
1258 | 1258 | $id, |
@@ -1775,7 +1775,7 @@ discard block |
||
1775 | 1775 | |
1776 | 1776 | /** |
1777 | 1777 | * Gets the first element URL. |
1778 | - * @return string URL to load into the viewer |
|
1778 | + * @return false|null URL to load into the viewer |
|
1779 | 1779 | */ |
1780 | 1780 | public function first() |
1781 | 1781 | { |
@@ -2291,6 +2291,7 @@ discard block |
||
2291 | 2291 | * @param int $student_id |
2292 | 2292 | * @param string Course code (optional) |
2293 | 2293 | * @param int $sessionId |
2294 | + * @param string $courseCode |
|
2294 | 2295 | * @return bool |
2295 | 2296 | */ |
2296 | 2297 | public static function is_lp_visible_for_student( |
@@ -2590,7 +2591,7 @@ discard block |
||
2590 | 2591 | |
2591 | 2592 | /** |
2592 | 2593 | * Gets the learnpath session id |
2593 | - * @return string Learnpath theme |
|
2594 | + * @return integer Learnpath theme |
|
2594 | 2595 | */ |
2595 | 2596 | public function get_lp_session_id() |
2596 | 2597 | { |
@@ -2623,7 +2624,7 @@ discard block |
||
2623 | 2624 | /** |
2624 | 2625 | * @param string $size |
2625 | 2626 | * @param string $path_type |
2626 | - * @return bool|string |
|
2627 | + * @return string|false |
|
2627 | 2628 | */ |
2628 | 2629 | public function get_preview_image_path($size = null, $path_type = 'web') |
2629 | 2630 | { |
@@ -2769,6 +2770,8 @@ discard block |
||
2769 | 2770 | * Returns the XML DOM document's node |
2770 | 2771 | * @param resource Reference to a list of objects to search for the given ITEM_* |
2771 | 2772 | * @param string The identifier to look for |
2773 | + * @param DOMNodeList $children |
|
2774 | + * @param string $id |
|
2772 | 2775 | * @return mixed The reference to the element found with that identifier. False if not found |
2773 | 2776 | */ |
2774 | 2777 | public function get_scorm_xml_node(& $children, $id) |
@@ -3016,7 +3019,7 @@ discard block |
||
3016 | 3019 | /** |
3017 | 3020 | * Generate and return the table of contents for this learnpath. The (flat) table returned can be |
3018 | 3021 | * used by get_html_toc() to be ready to display |
3019 | - * @return array TOC as a table with 4 elements per row: title, link, status and level |
|
3022 | + * @return boolean TOC as a table with 4 elements per row: title, link, status and level |
|
3020 | 3023 | */ |
3021 | 3024 | public function get_toc() |
3022 | 3025 | { |
@@ -3152,7 +3155,7 @@ discard block |
||
3152 | 3155 | } |
3153 | 3156 | |
3154 | 3157 | /** |
3155 | - * @return array |
|
3158 | + * @return string[] |
|
3156 | 3159 | */ |
3157 | 3160 | public static function getChapterTypes() |
3158 | 3161 | { |
@@ -4054,7 +4057,7 @@ discard block |
||
4054 | 4057 | * Open a resource = initialise all local variables relative to this resource. Depending on the child |
4055 | 4058 | * class, this might be redefined to allow several behaviours depending on the document type. |
4056 | 4059 | * @param integer Resource ID |
4057 | - * @return boolean True on success, false otherwise |
|
4060 | + * @return boolean|null True on success, false otherwise |
|
4058 | 4061 | */ |
4059 | 4062 | public function open($id) |
4060 | 4063 | { |
@@ -4183,7 +4186,7 @@ discard block |
||
4183 | 4186 | * Can be used as abstract |
4184 | 4187 | * @param integer $lp_id Learnpath id |
4185 | 4188 | * @param string $set_visibility New visibility (v/i - visible/invisible) |
4186 | - * @return bool |
|
4189 | + * @return false|null |
|
4187 | 4190 | */ |
4188 | 4191 | public static function toggle_publish($lp_id, $set_visibility = 'v') |
4189 | 4192 | { |
@@ -4268,7 +4271,7 @@ discard block |
||
4268 | 4271 | * Make sure the results are saved with anoter method. This method should probably be |
4269 | 4272 | * redefined in children classes. |
4270 | 4273 | * To use a similar method statically, use the create_new_attempt() method |
4271 | - * @return string URL to load in the viewer |
|
4274 | + * @return boolean URL to load in the viewer |
|
4272 | 4275 | */ |
4273 | 4276 | public function restart() |
4274 | 4277 | { |
@@ -4346,6 +4349,7 @@ discard block |
||
4346 | 4349 | * Saves the given item |
4347 | 4350 | * @param integer $item_id. Optional (will take from $_REQUEST if null) |
4348 | 4351 | * @param boolean $from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true |
4352 | + * @param integer $item_id |
|
4349 | 4353 | * @return boolean |
4350 | 4354 | */ |
4351 | 4355 | public function save_item($item_id = null, $from_outside = true) |
@@ -4843,7 +4847,7 @@ discard block |
||
4843 | 4847 | |
4844 | 4848 | /** |
4845 | 4849 | * Sets use_max_score |
4846 | - * @param string $use_max_score Optional string giving the new location of this learnpath |
|
4850 | + * @param integer $use_max_score Optional string giving the new location of this learnpath |
|
4847 | 4851 | * @return boolean True on success / False on error |
4848 | 4852 | */ |
4849 | 4853 | public function set_use_max_score($use_max_score = 1) |
@@ -5244,6 +5248,7 @@ discard block |
||
5244 | 5248 | * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags |
5245 | 5249 | * |
5246 | 5250 | * @param string 'seriousgame', 'single' or 'multiple' |
5251 | + * @param string $mode |
|
5247 | 5252 | * @return boolean |
5248 | 5253 | * @author ndiechburg <[email protected]> |
5249 | 5254 | **/ |
@@ -5286,7 +5291,7 @@ discard block |
||
5286 | 5291 | /** |
5287 | 5292 | * Switch between multiple attempt, single attempt or serious_game mode (only for scorm) |
5288 | 5293 | * |
5289 | - * @return boolean |
|
5294 | + * @return boolean|null |
|
5290 | 5295 | * @author ndiechburg <[email protected]> |
5291 | 5296 | **/ |
5292 | 5297 | public function switch_attempt_mode() |
@@ -5477,7 +5482,6 @@ discard block |
||
5477 | 5482 | /** |
5478 | 5483 | * Function that creates a html list of learning path items so that we can add audio files to them |
5479 | 5484 | * @author Kevin Van Den Haute |
5480 | - * @param int $lp_id |
|
5481 | 5485 | * @return string |
5482 | 5486 | */ |
5483 | 5487 | public function overview() |
@@ -5852,7 +5856,7 @@ discard block |
||
5852 | 5856 | /** |
5853 | 5857 | * This function builds the action menu |
5854 | 5858 | * @param bool $returnContent |
5855 | - * @return void |
|
5859 | + * @return string|null |
|
5856 | 5860 | */ |
5857 | 5861 | public function build_action_menu($returnContent = false) |
5858 | 5862 | { |
@@ -6371,7 +6375,7 @@ discard block |
||
6371 | 6375 | /** |
6372 | 6376 | * Function that displays a list with al the resources that |
6373 | 6377 | * could be added to the learning path |
6374 | - * @return string |
|
6378 | + * @return boolean |
|
6375 | 6379 | */ |
6376 | 6380 | public function display_resources() |
6377 | 6381 | { |
@@ -8875,7 +8879,7 @@ discard block |
||
8875 | 8879 | |
8876 | 8880 | /** |
8877 | 8881 | * Creates a list with all the student publications in it |
8878 | - * @return unknown |
|
8882 | + * @return string |
|
8879 | 8883 | */ |
8880 | 8884 | public function get_student_publications() |
8881 | 8885 | { |
@@ -9827,7 +9831,7 @@ discard block |
||
9827 | 9831 | |
9828 | 9832 | /** |
9829 | 9833 | * @param int $lp_id |
9830 | - * @return bool |
|
9834 | + * @return false|null |
|
9831 | 9835 | */ |
9832 | 9836 | public function scorm_export_to_pdf($lp_id) |
9833 | 9837 | { |
@@ -10344,6 +10348,7 @@ discard block |
||
10344 | 10348 | } |
10345 | 10349 | |
10346 | 10350 | /** |
10351 | + * @param string $courseCode |
|
10347 | 10352 | * @return \learnpath |
10348 | 10353 | */ |
10349 | 10354 | public static function getLpFromSession($courseCode, $lp_id, $user_id) |
@@ -10363,7 +10368,7 @@ discard block |
||
10363 | 10368 | |
10364 | 10369 | /** |
10365 | 10370 | * @param int $itemId |
10366 | - * @return learnpathItem|false |
|
10371 | + * @return string |
|
10367 | 10372 | */ |
10368 | 10373 | public function getItem($itemId) |
10369 | 10374 | { |
@@ -10413,7 +10418,6 @@ discard block |
||
10413 | 10418 | /** |
10414 | 10419 | * Set whether this is a learning path with the possibility to subscribe |
10415 | 10420 | * users or not |
10416 | - * @param int $subscribeUsers (0 = false, 1 = true) |
|
10417 | 10421 | */ |
10418 | 10422 | public function setSubscribeUsers($value) |
10419 | 10423 | { |
@@ -10538,7 +10542,7 @@ discard block |
||
10538 | 10542 | |
10539 | 10543 | /** |
10540 | 10544 | * Get the item of exercise type (evaluation type) |
10541 | - * @return array The final evaluation. Otherwise return false |
|
10545 | + * @return integer The final evaluation. Otherwise return false |
|
10542 | 10546 | */ |
10543 | 10547 | public function getFinalEvaluationItem() |
10544 | 10548 | { |
@@ -10762,7 +10766,7 @@ discard block |
||
10762 | 10766 | /** |
10763 | 10767 | * Create a forum for this learning path |
10764 | 10768 | * @param type $forumCategoryId |
10765 | - * @return int The forum ID if was created. Otherwise return false |
|
10769 | + * @return false|string The forum ID if was created. Otherwise return false |
|
10766 | 10770 | */ |
10767 | 10771 | public function createForum($forumCategoryId) |
10768 | 10772 | { |
@@ -10811,7 +10815,7 @@ discard block |
||
10811 | 10815 | /** |
10812 | 10816 | * Get the LP Final Item Template |
10813 | 10817 | * |
10814 | - * @return html |
|
10818 | + * @return string |
|
10815 | 10819 | */ |
10816 | 10820 | private function getFinalItemTemplate() |
10817 | 10821 | { |
@@ -10834,7 +10838,7 @@ discard block |
||
10834 | 10838 | /** |
10835 | 10839 | * Get the LP Final Item form |
10836 | 10840 | * |
10837 | - * @return html |
|
10841 | + * @return string |
|
10838 | 10842 | */ |
10839 | 10843 | public function getFinalItemForm() |
10840 | 10844 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
242 | - * @param doc_id id of document (id in mainDb.document table) |
|
242 | + * @param doc_id string of document (id in mainDb.document table) |
|
243 | 243 | * @author Sebastien Piraux <[email protected]> |
244 | 244 | * @desc Record information for upload event |
245 | 245 | * used in the works tool to record informations when |
@@ -311,6 +311,8 @@ discard block |
||
311 | 311 | * @param int session_id |
312 | 312 | * @param int learnpath_id (id of the learnpath) |
313 | 313 | * @param int learnpath_item_id (id of the learnpath_item) |
314 | + * @param integer $weighting |
|
315 | + * @param integer $session_id |
|
314 | 316 | * |
315 | 317 | * @author Sebastien Piraux <[email protected]> |
316 | 318 | * @author Julio Montoya Armas <[email protected]> Reworked 2010 |
@@ -412,7 +414,9 @@ discard block |
||
412 | 414 | * @param integer Session ID (from the session table). Default value of null means "get from context". |
413 | 415 | * @param integer Learnpath ID (from c_lp table). Default value of null means "get from context". |
414 | 416 | * @param integer Learnpath item ID (from the c_lp_item table). Default value of null means "get from context". |
415 | - * @return boolean Result of the insert query |
|
417 | + * @param integer $exe_id |
|
418 | + * @param integer $position |
|
419 | + * @return false|string Result of the insert query |
|
416 | 420 | */ |
417 | 421 | public static function saveQuestionAttempt( |
418 | 422 | $score, |
@@ -582,6 +586,7 @@ discard block |
||
582 | 586 | * @param int Whether this answer is correct (1) or not (0) |
583 | 587 | * @param string Coordinates of this point (e.g. 123;324) |
584 | 588 | * @param bool update results? |
589 | + * @param integer $exe_id |
|
585 | 590 | * @return boolean Result of the insert query |
586 | 591 | * @uses Course code and user_id from global scope $_cid and $_user |
587 | 592 | */ |
@@ -714,7 +719,6 @@ discard block |
||
714 | 719 | /** |
715 | 720 | * Get every email stored in the database |
716 | 721 | * |
717 | - * @param int $etId |
|
718 | 722 | * @return type |
719 | 723 | * @assert () !== false |
720 | 724 | */ |
@@ -782,11 +786,11 @@ discard block |
||
782 | 786 | /** |
783 | 787 | * Save the new message for one event and for one language |
784 | 788 | * |
785 | - * @param string $eventName |
|
789 | + * @param string $event_name |
|
786 | 790 | * @param array $users |
787 | 791 | * @param string $message |
788 | 792 | * @param string $subject |
789 | - * @param string $eventMessageLanguage |
|
793 | + * @param string $event_message_language |
|
790 | 794 | * @param int $activated |
791 | 795 | */ |
792 | 796 | public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated) |
@@ -920,10 +924,10 @@ discard block |
||
920 | 924 | } |
921 | 925 | |
922 | 926 | /** |
923 | - * @param $user_id |
|
927 | + * @param integer $user_id |
|
924 | 928 | * @param $exerciseId |
925 | - * @param $lp_id |
|
926 | - * @param $lp_item_id |
|
929 | + * @param integer $lp_id |
|
930 | + * @param integer $lp_item_id |
|
927 | 931 | * @return int |
928 | 932 | */ |
929 | 933 | public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id) |
@@ -1100,6 +1104,7 @@ discard block |
||
1100 | 1104 | * @param int exercise id |
1101 | 1105 | * @param int $courseId |
1102 | 1106 | * @param int session id |
1107 | + * @param integer $user_id |
|
1103 | 1108 | * @return array with the results |
1104 | 1109 | * |
1105 | 1110 | */ |
@@ -1195,6 +1200,7 @@ discard block |
||
1195 | 1200 | * @param int exercise id |
1196 | 1201 | * @param int $courseId |
1197 | 1202 | * @param int session id |
1203 | + * @param integer $user_id |
|
1198 | 1204 | * @return array with the results |
1199 | 1205 | * |
1200 | 1206 | */ |
@@ -1235,6 +1241,7 @@ discard block |
||
1235 | 1241 | * @param int exercise id |
1236 | 1242 | * @param string course code |
1237 | 1243 | * @param int session id |
1244 | + * @param integer $exe_id |
|
1238 | 1245 | * @return array with the results |
1239 | 1246 | * |
1240 | 1247 | */ |
@@ -1284,6 +1291,8 @@ discard block |
||
1284 | 1291 | * @param int lp id |
1285 | 1292 | * @param int lp item id |
1286 | 1293 | * @param string order asc or desc |
1294 | + * @param integer $courseId |
|
1295 | + * @param string $order |
|
1287 | 1296 | * @return array with the results |
1288 | 1297 | * |
1289 | 1298 | */ |
@@ -1343,7 +1352,7 @@ discard block |
||
1343 | 1352 | * @param int exercise id |
1344 | 1353 | * @param int $courseId |
1345 | 1354 | * @param int session id |
1346 | - * @return array with the results |
|
1355 | + * @return string with the results |
|
1347 | 1356 | * |
1348 | 1357 | */ |
1349 | 1358 | public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0) |
@@ -1519,7 +1528,7 @@ discard block |
||
1519 | 1528 | * @param int exercise id |
1520 | 1529 | * @param int course id |
1521 | 1530 | * @param int session id |
1522 | - * @return array with the results |
|
1531 | + * @return integer with the results |
|
1523 | 1532 | * |
1524 | 1533 | */ |
1525 | 1534 | public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0) |