@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param string $course Course code |
88 | 88 | * @param integer $lp_id |
89 | 89 | * @param integer $user_id |
90 | - * @return mixed True on success, false on error |
|
90 | + * @return boolean True on success, false on error |
|
91 | 91 | */ |
92 | 92 | public function __construct($course, $lp_id, $user_id) |
93 | 93 | { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * @param int $max_time_allowed |
492 | 492 | * @param int $userId |
493 | 493 | * |
494 | - * @return int |
|
494 | + * @return false|string |
|
495 | 495 | */ |
496 | 496 | public function add_item( |
497 | 497 | $parent, |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | * @param array $courseInfo |
1043 | 1043 | * @param integer Learnpath ID |
1044 | 1044 | * @param string Whether to delete data or keep it (default: 'keep', others: 'remove') |
1045 | - * @return boolean True on success, false on failure (might change that to return number of elements deleted) |
|
1045 | + * @return false|null True on success, false on failure (might change that to return number of elements deleted) |
|
1046 | 1046 | */ |
1047 | 1047 | public function delete($courseInfo = null, $id = null, $delete = 'keep') |
1048 | 1048 | { |
@@ -1181,7 +1181,7 @@ discard block |
||
1181 | 1181 | * @param integer $id Elem ID (0 if first) |
1182 | 1182 | * @param integer $remove Whether to remove the resource/data from the |
1183 | 1183 | * system or leave it (default: 'keep', others 'remove') |
1184 | - * @return integer Number of elements moved |
|
1184 | + * @return false|null Number of elements moved |
|
1185 | 1185 | * @todo implement resource removal |
1186 | 1186 | */ |
1187 | 1187 | public function delete_item($id, $remove = 'keep') |
@@ -1263,7 +1263,7 @@ discard block |
||
1263 | 1263 | * @param array $audio The array resulting of the $_FILES[mp3] element |
1264 | 1264 | * @param int $max_time_allowed |
1265 | 1265 | * @param string $url |
1266 | - * @return boolean True on success, false on error |
|
1266 | + * @return false|null True on success, false on error |
|
1267 | 1267 | */ |
1268 | 1268 | public function edit_item( |
1269 | 1269 | $id, |
@@ -1782,7 +1782,7 @@ discard block |
||
1782 | 1782 | |
1783 | 1783 | /** |
1784 | 1784 | * Gets the first element URL. |
1785 | - * @return string URL to load into the viewer |
|
1785 | + * @return false|null URL to load into the viewer |
|
1786 | 1786 | */ |
1787 | 1787 | public function first() |
1788 | 1788 | { |
@@ -2296,6 +2296,7 @@ discard block |
||
2296 | 2296 | * @param int $student_id |
2297 | 2297 | * @param string Course code (optional) |
2298 | 2298 | * @param int $sessionId |
2299 | + * @param string $courseCode |
|
2299 | 2300 | * @return bool |
2300 | 2301 | */ |
2301 | 2302 | public static function is_lp_visible_for_student( |
@@ -2593,7 +2594,7 @@ discard block |
||
2593 | 2594 | |
2594 | 2595 | /** |
2595 | 2596 | * Gets the learnpath session id |
2596 | - * @return string Learnpath theme |
|
2597 | + * @return integer Learnpath theme |
|
2597 | 2598 | */ |
2598 | 2599 | public function get_lp_session_id() |
2599 | 2600 | { |
@@ -2626,7 +2627,7 @@ discard block |
||
2626 | 2627 | /** |
2627 | 2628 | * @param string $size |
2628 | 2629 | * @param string $path_type |
2629 | - * @return bool|string |
|
2630 | + * @return string|false |
|
2630 | 2631 | */ |
2631 | 2632 | public function get_preview_image_path($size = null, $path_type = 'web') |
2632 | 2633 | { |
@@ -2772,6 +2773,8 @@ discard block |
||
2772 | 2773 | * Returns the XML DOM document's node |
2773 | 2774 | * @param resource Reference to a list of objects to search for the given ITEM_* |
2774 | 2775 | * @param string The identifier to look for |
2776 | + * @param DOMNodeList $children |
|
2777 | + * @param string $id |
|
2775 | 2778 | * @return mixed The reference to the element found with that identifier. False if not found |
2776 | 2779 | */ |
2777 | 2780 | public function get_scorm_xml_node(& $children, $id) |
@@ -3019,7 +3022,7 @@ discard block |
||
3019 | 3022 | /** |
3020 | 3023 | * Generate and return the table of contents for this learnpath. The (flat) table returned can be |
3021 | 3024 | * used by get_html_toc() to be ready to display |
3022 | - * @return array TOC as a table with 4 elements per row: title, link, status and level |
|
3025 | + * @return boolean TOC as a table with 4 elements per row: title, link, status and level |
|
3023 | 3026 | */ |
3024 | 3027 | public function get_toc() |
3025 | 3028 | { |
@@ -3155,7 +3158,7 @@ discard block |
||
3155 | 3158 | } |
3156 | 3159 | |
3157 | 3160 | /** |
3158 | - * @return array |
|
3161 | + * @return string[] |
|
3159 | 3162 | */ |
3160 | 3163 | public static function getChapterTypes() |
3161 | 3164 | { |
@@ -4061,7 +4064,7 @@ discard block |
||
4061 | 4064 | * Open a resource = initialise all local variables relative to this resource. Depending on the child |
4062 | 4065 | * class, this might be redefined to allow several behaviours depending on the document type. |
4063 | 4066 | * @param integer Resource ID |
4064 | - * @return boolean True on success, false otherwise |
|
4067 | + * @return boolean|null True on success, false otherwise |
|
4065 | 4068 | */ |
4066 | 4069 | public function open($id) |
4067 | 4070 | { |
@@ -4190,7 +4193,7 @@ discard block |
||
4190 | 4193 | * Can be used as abstract |
4191 | 4194 | * @param integer $lp_id Learnpath id |
4192 | 4195 | * @param string $set_visibility New visibility (v/i - visible/invisible) |
4193 | - * @return bool |
|
4196 | + * @return false|null |
|
4194 | 4197 | */ |
4195 | 4198 | public static function toggle_publish($lp_id, $set_visibility = 'v') |
4196 | 4199 | { |
@@ -4275,7 +4278,7 @@ discard block |
||
4275 | 4278 | * Make sure the results are saved with anoter method. This method should probably be |
4276 | 4279 | * redefined in children classes. |
4277 | 4280 | * To use a similar method statically, use the create_new_attempt() method |
4278 | - * @return string URL to load in the viewer |
|
4281 | + * @return boolean URL to load in the viewer |
|
4279 | 4282 | */ |
4280 | 4283 | public function restart() |
4281 | 4284 | { |
@@ -4353,6 +4356,7 @@ discard block |
||
4353 | 4356 | * Saves the given item |
4354 | 4357 | * @param integer $item_id. Optional (will take from $_REQUEST if null) |
4355 | 4358 | * @param boolean $from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true |
4359 | + * @param integer $item_id |
|
4356 | 4360 | * @return boolean |
4357 | 4361 | */ |
4358 | 4362 | public function save_item($item_id = null, $from_outside = true) |
@@ -4850,7 +4854,7 @@ discard block |
||
4850 | 4854 | |
4851 | 4855 | /** |
4852 | 4856 | * Sets use_max_score |
4853 | - * @param string $use_max_score Optional string giving the new location of this learnpath |
|
4857 | + * @param integer $use_max_score Optional string giving the new location of this learnpath |
|
4854 | 4858 | * @return boolean True on success / False on error |
4855 | 4859 | */ |
4856 | 4860 | public function set_use_max_score($use_max_score = 1) |
@@ -5253,6 +5257,7 @@ discard block |
||
5253 | 5257 | * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags |
5254 | 5258 | * |
5255 | 5259 | * @param string 'seriousgame', 'single' or 'multiple' |
5260 | + * @param string $mode |
|
5256 | 5261 | * @return boolean |
5257 | 5262 | * @author ndiechburg <[email protected]> |
5258 | 5263 | **/ |
@@ -5295,7 +5300,7 @@ discard block |
||
5295 | 5300 | /** |
5296 | 5301 | * Switch between multiple attempt, single attempt or serious_game mode (only for scorm) |
5297 | 5302 | * |
5298 | - * @return boolean |
|
5303 | + * @return boolean|null |
|
5299 | 5304 | * @author ndiechburg <[email protected]> |
5300 | 5305 | **/ |
5301 | 5306 | public function switch_attempt_mode() |
@@ -5486,7 +5491,6 @@ discard block |
||
5486 | 5491 | /** |
5487 | 5492 | * Function that creates a html list of learning path items so that we can add audio files to them |
5488 | 5493 | * @author Kevin Van Den Haute |
5489 | - * @param int $lp_id |
|
5490 | 5494 | * @return string |
5491 | 5495 | */ |
5492 | 5496 | public function overview() |
@@ -6446,7 +6450,7 @@ discard block |
||
6446 | 6450 | /** |
6447 | 6451 | * Function that displays a list with al the resources that |
6448 | 6452 | * could be added to the learning path |
6449 | - * @return string |
|
6453 | + * @return boolean |
|
6450 | 6454 | */ |
6451 | 6455 | public function display_resources() |
6452 | 6456 | { |
@@ -9991,7 +9995,7 @@ discard block |
||
9991 | 9995 | |
9992 | 9996 | /** |
9993 | 9997 | * @param int $lp_id |
9994 | - * @return bool |
|
9998 | + * @return false|null |
|
9995 | 9999 | */ |
9996 | 10000 | public function scorm_export_to_pdf($lp_id) |
9997 | 10001 | { |
@@ -10526,7 +10530,7 @@ discard block |
||
10526 | 10530 | |
10527 | 10531 | /** |
10528 | 10532 | * @param int $itemId |
10529 | - * @return learnpathItem|false |
|
10533 | + * @return string |
|
10530 | 10534 | */ |
10531 | 10535 | public function getItem($itemId) |
10532 | 10536 | { |
@@ -10576,7 +10580,6 @@ discard block |
||
10576 | 10580 | /** |
10577 | 10581 | * Set whether this is a learning path with the possibility to subscribe |
10578 | 10582 | * users or not |
10579 | - * @param int $subscribeUsers (0 = false, 1 = true) |
|
10580 | 10583 | */ |
10581 | 10584 | public function setSubscribeUsers($value) |
10582 | 10585 | { |
@@ -10701,7 +10704,7 @@ discard block |
||
10701 | 10704 | |
10702 | 10705 | /** |
10703 | 10706 | * Get the item of exercise type (evaluation type) |
10704 | - * @return array The final evaluation. Otherwise return false |
|
10707 | + * @return integer The final evaluation. Otherwise return false |
|
10705 | 10708 | */ |
10706 | 10709 | public function getFinalEvaluationItem() |
10707 | 10710 | { |
@@ -10925,7 +10928,7 @@ discard block |
||
10925 | 10928 | /** |
10926 | 10929 | * Create a forum for this learning path |
10927 | 10930 | * @param type $forumCategoryId |
10928 | - * @return int The forum ID if was created. Otherwise return false |
|
10931 | + * @return false|string The forum ID if was created. Otherwise return false |
|
10929 | 10932 | */ |
10930 | 10933 | public function createForum($forumCategoryId) |
10931 | 10934 | { |
@@ -10974,7 +10977,7 @@ discard block |
||
10974 | 10977 | /** |
10975 | 10978 | * Get the LP Final Item Template |
10976 | 10979 | * |
10977 | - * @return html |
|
10980 | + * @return string |
|
10978 | 10981 | */ |
10979 | 10982 | private function getFinalItemTemplate() |
10980 | 10983 | { |
@@ -1336,7 +1336,7 @@ discard block |
||
1336 | 1336 | * @param string $description |
1337 | 1337 | * @param int $showDescription |
1338 | 1338 | * @param int $duration |
1339 | - * @param array $extraFields |
|
1339 | + * @param boolean|null $extraFields |
|
1340 | 1340 | * @param int $sessionAdminId |
1341 | 1341 | * @param boolean $sendSubscriptionNotification Optional. |
1342 | 1342 | * Whether send a mail notification to users being subscribed |
@@ -1565,7 +1565,7 @@ discard block |
||
1565 | 1565 | * @param array $user_list |
1566 | 1566 | * @param int $session_visibility |
1567 | 1567 | * @param bool $empty_users |
1568 | - * @return bool |
|
1568 | + * @return false|null |
|
1569 | 1569 | */ |
1570 | 1570 | public static function suscribe_users_to_session( |
1571 | 1571 | $id_session, |
@@ -1837,7 +1837,7 @@ discard block |
||
1837 | 1837 | * @param array $courseInfo |
1838 | 1838 | * @param int $status |
1839 | 1839 | * @param bool $updateTotal |
1840 | - * @return bool |
|
1840 | + * @return false|null |
|
1841 | 1841 | */ |
1842 | 1842 | public static function removeUsersFromCourseSession( |
1843 | 1843 | $userList, |
@@ -1903,7 +1903,7 @@ discard block |
||
1903 | 1903 | * @param string $course_code |
1904 | 1904 | * @param int $session_visibility |
1905 | 1905 | * @param bool $removeUsersNotInList |
1906 | - * @return bool |
|
1906 | + * @return false|null |
|
1907 | 1907 | */ |
1908 | 1908 | public static function subscribe_users_to_session_course( |
1909 | 1909 | $user_list, |
@@ -2086,7 +2086,7 @@ discard block |
||
2086 | 2086 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2087 | 2087 | * existing courses and users (true, default) or not (false) |
2088 | 2088 | * @param $copyEvaluation from base course to session course |
2089 | - * @return void Nothing, or false on error |
|
2089 | + * @return false|null Nothing, or false on error |
|
2090 | 2090 | * */ |
2091 | 2091 | public static function add_courses_to_session( |
2092 | 2092 | $sessionId, |
@@ -2282,6 +2282,8 @@ discard block |
||
2282 | 2282 | * |
2283 | 2283 | * @param int Session id |
2284 | 2284 | * @param int Course id |
2285 | + * @param integer $session_id |
|
2286 | + * @param integer $course_id |
|
2285 | 2287 | * @return bool True in case of success, false otherwise |
2286 | 2288 | */ |
2287 | 2289 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2337,7 +2339,7 @@ discard block |
||
2337 | 2339 | * @param string $variable Field's internal variable name |
2338 | 2340 | * @param int $fieldType Field's type |
2339 | 2341 | * @param string $displayText Field's language var name |
2340 | - * @return int new extra field id |
|
2342 | + * @return boolean new extra field id |
|
2341 | 2343 | */ |
2342 | 2344 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2343 | 2345 | { |
@@ -2561,7 +2563,7 @@ discard block |
||
2561 | 2563 | * @param array id_checked |
2562 | 2564 | * @param bool include delete session |
2563 | 2565 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2564 | - * @return void Nothing, or false on error |
|
2566 | + * @return boolean Nothing, or false on error |
|
2565 | 2567 | * The parameters is a array to delete sessions |
2566 | 2568 | * */ |
2567 | 2569 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3056,6 +3058,7 @@ discard block |
||
3056 | 3058 | * @param string $orderCondition |
3057 | 3059 | * @param string $keyword |
3058 | 3060 | * @param string $description |
3061 | + * @param integer $status |
|
3059 | 3062 | * @return array sessions |
3060 | 3063 | */ |
3061 | 3064 | public static function getSessionsFollowedByUser( |
@@ -3268,8 +3271,8 @@ discard block |
||
3268 | 3271 | /** |
3269 | 3272 | * Gets the list of courses by session filtered by access_url |
3270 | 3273 | * |
3271 | - * @param $userId |
|
3272 | - * @param $sessionId |
|
3274 | + * @param integer $userId |
|
3275 | + * @param null|integer $sessionId |
|
3273 | 3276 | * @param null $from |
3274 | 3277 | * @param null $limit |
3275 | 3278 | * @param null $column |
@@ -3394,6 +3397,7 @@ discard block |
||
3394 | 3397 | /** |
3395 | 3398 | * Gets the count of courses by session filtered by access_url |
3396 | 3399 | * @param int session id |
3400 | + * @param integer $session_id |
|
3397 | 3401 | * @return array list of courses |
3398 | 3402 | */ |
3399 | 3403 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3645,6 +3649,7 @@ discard block |
||
3645 | 3649 | * Updates a session status |
3646 | 3650 | * @param int session id |
3647 | 3651 | * @param int status |
3652 | + * @param integer $status |
|
3648 | 3653 | */ |
3649 | 3654 | public static function set_session_status($session_id, $status) |
3650 | 3655 | { |
@@ -3853,7 +3858,7 @@ discard block |
||
3853 | 3858 | * Protect a session to be edited. |
3854 | 3859 | * @param int $id |
3855 | 3860 | * @param bool $checkSession |
3856 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
3861 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
3857 | 3862 | */ |
3858 | 3863 | public static function protectSession($id, $checkSession = true) |
3859 | 3864 | { |
@@ -3961,7 +3966,7 @@ discard block |
||
3961 | 3966 | |
3962 | 3967 | /** |
3963 | 3968 | * @param $id |
3964 | - * @return bool |
|
3969 | + * @return null|boolean |
|
3965 | 3970 | */ |
3966 | 3971 | public static function protect_teacher_session_edit($id) |
3967 | 3972 | { |
@@ -4025,7 +4030,7 @@ discard block |
||
4025 | 4030 | * true: if the session exists it will be updated. |
4026 | 4031 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4027 | 4032 | * @param int $defaultUserId |
4028 | - * @param mixed $logger |
|
4033 | + * @param Logger $logger |
|
4029 | 4034 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4030 | 4035 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4031 | 4036 | * @param string $extraFieldId |
@@ -5273,7 +5278,6 @@ discard block |
||
5273 | 5278 | * @param string $lastConnectionDate |
5274 | 5279 | * @param array $sessionIdList |
5275 | 5280 | * @param array $studentIdList |
5276 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5277 | 5281 | * |
5278 | 5282 | * @return array|int |
5279 | 5283 | */ |
@@ -5425,7 +5429,7 @@ discard block |
||
5425 | 5429 | /** |
5426 | 5430 | * Get the list of course tools that have to be dealt with in case of |
5427 | 5431 | * registering any course to a session |
5428 | - * @return array The list of tools to be dealt with (literal names) |
|
5432 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5429 | 5433 | */ |
5430 | 5434 | public static function getCourseToolToBeManaged() |
5431 | 5435 | { |
@@ -5439,7 +5443,7 @@ discard block |
||
5439 | 5443 | * Calls the methods bound to each tool when a course is registered into a session |
5440 | 5444 | * @param int $sessionId |
5441 | 5445 | * @param int $courseId |
5442 | - * @return void |
|
5446 | + * @return boolean|null |
|
5443 | 5447 | */ |
5444 | 5448 | public static function installCourse($sessionId, $courseId) |
5445 | 5449 | { |
@@ -6079,6 +6083,7 @@ discard block |
||
6079 | 6083 | * @param int $categoryId The internal ID of the session category |
6080 | 6084 | * @param string $target Value to search for in the session field values |
6081 | 6085 | * @param array $extraFields A list of fields to be scanned and returned |
6086 | + * @param DateTime $publicationDate |
|
6082 | 6087 | * @return mixed |
6083 | 6088 | */ |
6084 | 6089 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -6591,6 +6596,8 @@ discard block |
||
6591 | 6596 | * Converts "start date" and "end date" to "From start date to end date" string |
6592 | 6597 | * @param string $startDate |
6593 | 6598 | * @param string $endDate |
6599 | + * @param boolean $showTime |
|
6600 | + * @param boolean $dateHuman |
|
6594 | 6601 | * |
6595 | 6602 | * @return string |
6596 | 6603 | */ |
@@ -7407,7 +7414,7 @@ discard block |
||
7407 | 7414 | /** |
7408 | 7415 | * Get link to the admin page for this session |
7409 | 7416 | * @param int $id Session ID |
7410 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7417 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7411 | 7418 | */ |
7412 | 7419 | public static function getAdminPath($id) |
7413 | 7420 | { |
@@ -7424,7 +7431,7 @@ discard block |
||
7424 | 7431 | * If a course is provided, build the link to the course |
7425 | 7432 | * @param int $id Session ID |
7426 | 7433 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7427 | - * @return mixed URL to the page to use the session, or false on error |
|
7434 | + * @return false|string URL to the page to use the session, or false on error |
|
7428 | 7435 | */ |
7429 | 7436 | public static function getPath($id, $courseId = 0) |
7430 | 7437 | { |
@@ -7522,7 +7529,7 @@ discard block |
||
7522 | 7529 | /** |
7523 | 7530 | * Return true if coach is allowed to access this session |
7524 | 7531 | * @param int $sessionId |
7525 | - * @return bool |
|
7532 | + * @return integer |
|
7526 | 7533 | */ |
7527 | 7534 | public static function isSessionDateOkForCoach($sessionId) |
7528 | 7535 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Displays the tools of a certain category. |
220 | 220 | * |
221 | - * @return void |
|
221 | + * @return string |
|
222 | 222 | * @param string $course_tool_category contains the category of tools to display: |
223 | 223 | * "Public", "PublicButHide", "courseAdmin", "claroAdmin" |
224 | 224 | */ |
@@ -1210,6 +1210,7 @@ discard block |
||
1210 | 1210 | |
1211 | 1211 | /** |
1212 | 1212 | * Show a toolbar with shortcuts to the course tool |
1213 | + * @param integer $orientation |
|
1213 | 1214 | */ |
1214 | 1215 | public static function show_navigation_tool_shortcuts($orientation = SHORTCUTS_HORIZONTAL) |
1215 | 1216 | { |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | * @param string $courseCode the course code |
748 | 748 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
749 | 749 | * |
750 | - * @return boolean true if added succesfully, false otherwise. |
|
750 | + * @return boolean|string true if added succesfully, false otherwise. |
|
751 | 751 | */ |
752 | 752 | public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1) |
753 | 753 | { |
@@ -2335,7 +2335,7 @@ discard block |
||
2335 | 2335 | |
2336 | 2336 | /** |
2337 | 2337 | * Creates a file called mysql_dump.sql in the course folder |
2338 | - * @param $course_code The code of the course |
|
2338 | + * @param string $course_code The code of the course |
|
2339 | 2339 | * @todo Implementation for single database |
2340 | 2340 | */ |
2341 | 2341 | public static function create_database_dump($course_code) |
@@ -3135,6 +3135,7 @@ discard block |
||
3135 | 3135 | * @param int $limit |
3136 | 3136 | * @param string $column |
3137 | 3137 | * @param string $direction |
3138 | + * @param integer $status |
|
3138 | 3139 | * @return array courses |
3139 | 3140 | */ |
3140 | 3141 | public static function get_courses_followed_by_drh( |
@@ -3738,6 +3739,7 @@ discard block |
||
3738 | 3739 | * class userportal-course-item. |
3739 | 3740 | * @param int User category id |
3740 | 3741 | * @param bool Whether to show the document quick-loader or not |
3742 | + * @param integer $user_category_id |
|
3741 | 3743 | * @return string |
3742 | 3744 | */ |
3743 | 3745 | public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false) |
@@ -4940,7 +4942,7 @@ discard block |
||
4940 | 4942 | /** |
4941 | 4943 | * Returns the SQL conditions to filter course only visible by the user in the catalogue |
4942 | 4944 | * |
4943 | - * @param $courseTableAlias Alias of the course table |
|
4945 | + * @param string $courseTableAlias Alias of the course table |
|
4944 | 4946 | * @return string SQL conditions |
4945 | 4947 | */ |
4946 | 4948 | public static function getCourseVisibilitySQLCondition($courseTableAlias) { |
@@ -6137,7 +6139,7 @@ discard block |
||
6137 | 6139 | * @param int $accessUrlId The access URL ID |
6138 | 6140 | * @param string $param |
6139 | 6141 | * @param string $msgLabel |
6140 | - * @return bool|string |
|
6142 | + * @return boolean |
|
6141 | 6143 | */ |
6142 | 6144 | private static function checkCreateCourseAccessUrlParam($_configuration, $accessUrlId, $param, $msgLabel) |
6143 | 6145 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * Read and validate the quiz module XML |
318 | 318 | * |
319 | 319 | * @param resource $moduleXml XML file |
320 | - * @return mixed | array if is a valid xml file, false otherwise |
|
320 | + * @return string | array if is a valid xml file, false otherwise |
|
321 | 321 | */ |
322 | 322 | public function readQuizModule($moduleXml) |
323 | 323 | { |
@@ -537,9 +537,9 @@ discard block |
||
537 | 537 | * |
538 | 538 | * @param array $questionList |
539 | 539 | * @param string $questionType |
540 | - * @param object $questionInstance Question/Answer instance |
|
540 | + * @param Question $questionInstance Question/Answer instance |
|
541 | 541 | * @param array $currentQuestion |
542 | - * @return integer db response |
|
542 | + * @return boolean|null db response |
|
543 | 543 | */ |
544 | 544 | public function processAnswers($questionList, $questionType, $questionInstance, $currentQuestion) |
545 | 545 | { |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | /** |
666 | 666 | * Process Chamilo Unique Answer |
667 | 667 | * |
668 | - * @param object $objAnswer |
|
668 | + * @param Answer $objAnswer |
|
669 | 669 | * @param array $answerValues |
670 | 670 | * @param integer $position |
671 | 671 | * @param integer $questionWeighting |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | /** |
699 | 699 | * Process Chamilo True False |
700 | 700 | * |
701 | - * @param object $objAnswer |
|
701 | + * @param Answer $objAnswer |
|
702 | 702 | * @param array $answerValues |
703 | 703 | * @param integer $position |
704 | 704 | * @param integer $questionWeighting |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | /** |
732 | 732 | * Process Chamilo FillBlanks |
733 | 733 | * |
734 | - * @param object $objAnswer |
|
734 | + * @param Answer $objAnswer |
|
735 | 735 | * @param array $questionType |
736 | 736 | * @param array $answerValues |
737 | 737 | * @param string $placeholder |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | * Litle utility to delete the unuseful tags |
827 | 827 | * |
828 | 828 | * @param $array |
829 | - * @param $keys |
|
829 | + * @param string[] $keys |
|
830 | 830 | */ |
831 | 831 | public function traverseArray(&$array, $keys) |
832 | 832 | { |
@@ -183,6 +183,7 @@ discard block |
||
183 | 183 | * (moving a course to a different course category) |
184 | 184 | * @param int $courseId |
185 | 185 | * @param int Category id |
186 | + * @param integer $newcategory |
|
186 | 187 | * @return bool True if it success |
187 | 188 | */ |
188 | 189 | public function updateCourseCategory($courseId, $newcategory) |
@@ -215,6 +216,9 @@ discard block |
||
215 | 216 | * @param string Direction (up/down) |
216 | 217 | * @param string Course code |
217 | 218 | * @param int Category id |
219 | + * @param string $direction |
|
220 | + * @param string $course2move |
|
221 | + * @param integer $category |
|
218 | 222 | * @return bool True if it success |
219 | 223 | */ |
220 | 224 | public function move_course($direction, $course2move, $category) |
@@ -285,6 +289,8 @@ discard block |
||
285 | 289 | * Moves the course one place up or down |
286 | 290 | * @param string Direction up/down |
287 | 291 | * @param string Category id |
292 | + * @param string $direction |
|
293 | + * @param integer $category2move |
|
288 | 294 | * @return bool True If it success |
289 | 295 | */ |
290 | 296 | public function move_category($direction, $category2move) |
@@ -348,6 +354,8 @@ discard block |
||
348 | 354 | * Updates the user course category in the chamilo_user database |
349 | 355 | * @param string Category title |
350 | 356 | * @param int Category id |
357 | + * @param string $title |
|
358 | + * @param integer $category_id |
|
351 | 359 | * @return bool True if it success |
352 | 360 | */ |
353 | 361 | public function store_edit_course_category($title, $category_id) |
@@ -1103,7 +1103,7 @@ |
||
1103 | 1103 | * @param String $type |
1104 | 1104 | * @param Integer $blog_id |
1105 | 1105 | * @param Integer $item_id |
1106 | - * @return array |
|
1106 | + * @return double |
|
1107 | 1107 | */ |
1108 | 1108 | public static function display_rating($type, $blog_id, $item_id) |
1109 | 1109 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Get description titles by default |
362 | - * @return array |
|
362 | + * @return string[] |
|
363 | 363 | */ |
364 | 364 | public function get_default_description_title() |
365 | 365 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * Get description titles editable by default |
381 | - * @return array |
|
381 | + * @return boolean[] |
|
382 | 382 | */ |
383 | 383 | public function get_default_description_title_editable() |
384 | 384 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | /** |
399 | 399 | * Get description icons by default |
400 | - * @return array |
|
400 | + * @return string[] |
|
401 | 401 | */ |
402 | 402 | public function get_default_description_icon() |
403 | 403 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Get questions by default for help |
420 | - * @return array |
|
420 | + * @return string[] |
|
421 | 421 | */ |
422 | 422 | public function get_default_question() |
423 | 423 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | |
437 | 437 | /** |
438 | 438 | * Get informations by default for help |
439 | - * @return array |
|
439 | + * @return string[] |
|
440 | 440 | */ |
441 | 441 | public function get_default_information() |
442 | 442 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | /** |
575 | 575 | * get progress of a description |
576 | 576 | * |
577 | - * @return int |
|
577 | + * @return string |
|
578 | 578 | */ |
579 | 579 | public function get_progress() |
580 | 580 | { |
@@ -259,10 +259,10 @@ |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | /** |
262 | - * @param $form |
|
262 | + * @param CatForm $form |
|
263 | 263 | * @param string $name |
264 | 264 | * @param null $default_value |
265 | - * @return bool |
|
265 | + * @return false|null |
|
266 | 266 | */ |
267 | 267 | public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null) |
268 | 268 | { |