@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Useful finder - experimental akelos like only use in notification.lib.php send function |
28 | + * @param string $type |
|
28 | 29 | */ |
29 | 30 | public function find($type, $options = null) |
30 | 31 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * |
39 | - * @return StaticPlugin |
|
39 | + * @return BuyCoursesPlugin |
|
40 | 40 | */ |
41 | 41 | static function create() |
42 | 42 | { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * Save a transfer account information |
254 | 254 | * @param array $params The transfer account |
255 | - * @return int Rows affected. Otherwise return false |
|
255 | + * @return false|string Rows affected. Otherwise return false |
|
256 | 256 | */ |
257 | 257 | public function saveTransferAccount($params) |
258 | 258 | { |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | /** |
665 | 665 | * Get session info |
666 | 666 | * @param array $sessionId The session ID |
667 | - * @return array |
|
667 | + * @return Session |
|
668 | 668 | */ |
669 | 669 | public function getSessionInfo($sessionId) |
670 | 670 | { |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | * Register a sale |
758 | 758 | * @param int $itemId The product ID |
759 | 759 | * @param int $paymentType The payment type |
760 | - * @return boolean |
|
760 | + * @return false|string |
|
761 | 761 | */ |
762 | 762 | public function registerSale($itemId, $paymentType) |
763 | 763 | { |
@@ -939,7 +939,7 @@ discard block |
||
939 | 939 | |
940 | 940 | /** |
941 | 941 | * Get payment types |
942 | - * @return array |
|
942 | + * @return string[] |
|
943 | 943 | */ |
944 | 944 | public function getPaymentTypes() |
945 | 945 | { |
@@ -977,7 +977,7 @@ discard block |
||
977 | 977 | |
978 | 978 | /** |
979 | 979 | * Get the statuses for sales |
980 | - * @return array |
|
980 | + * @return string[] |
|
981 | 981 | */ |
982 | 982 | public function getSaleStatuses() |
983 | 983 | { |
@@ -990,7 +990,7 @@ discard block |
||
990 | 990 | |
991 | 991 | /** |
992 | 992 | * Get the statuses for Payouts |
993 | - * @return array |
|
993 | + * @return string[] |
|
994 | 994 | */ |
995 | 995 | public function getPayoutStatuses() |
996 | 996 | { |
@@ -1003,7 +1003,7 @@ discard block |
||
1003 | 1003 | |
1004 | 1004 | /** |
1005 | 1005 | * Get the list of product types |
1006 | - * @return array |
|
1006 | + * @return string[] |
|
1007 | 1007 | */ |
1008 | 1008 | public function getProductTypes() |
1009 | 1009 | { |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | /** |
1385 | 1385 | * Register a item |
1386 | 1386 | * @param array $itemData The item data |
1387 | - * @return int The item ID. Otherwise return false |
|
1387 | + * @return false|string The item ID. Otherwise return false |
|
1388 | 1388 | */ |
1389 | 1389 | public function registerItem(array $itemData) |
1390 | 1390 | { |
@@ -1542,7 +1542,7 @@ discard block |
||
1542 | 1542 | /** |
1543 | 1543 | * Verify if the beneficiary have a paypal account |
1544 | 1544 | * @param int $userId |
1545 | - * @return true if the user have a paypal account, false if not |
|
1545 | + * @return boolean if the user have a paypal account, false if not |
|
1546 | 1546 | */ |
1547 | 1547 | public function verifyPaypalAccountByBeneficiary($userId) |
1548 | 1548 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Validates the password |
140 | 140 | * |
141 | - * @param $encoded |
|
141 | + * @param string $encoded |
|
142 | 142 | * @param $raw |
143 | 143 | * @param $salt |
144 | 144 | * @return bool |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $raw |
161 | 161 | * @param User $user |
162 | 162 | * |
163 | - * @return bool |
|
163 | + * @return string |
|
164 | 164 | */ |
165 | 165 | public static function encryptPassword($raw, User $user) |
166 | 166 | { |
@@ -979,6 +979,7 @@ discard block |
||
979 | 979 | * Disables or enables a user |
980 | 980 | * @param int user_id |
981 | 981 | * @param int Enable or disable |
982 | + * @param integer $active |
|
982 | 983 | * @return void |
983 | 984 | * @assert (-1,0) === false |
984 | 985 | * @assert (1,1) === true |
@@ -1009,6 +1010,7 @@ discard block |
||
1009 | 1010 | /** |
1010 | 1011 | * Disables a user |
1011 | 1012 | * @param int User id |
1013 | + * @param integer $user_id |
|
1012 | 1014 | * @return bool |
1013 | 1015 | * @uses UserManager::change_active_state() to actually disable the user |
1014 | 1016 | * @assert (0) === false |
@@ -1025,6 +1027,7 @@ discard block |
||
1025 | 1027 | /** |
1026 | 1028 | * Enable a user |
1027 | 1029 | * @param int User id |
1030 | + * @param integer $user_id |
|
1028 | 1031 | * @return bool |
1029 | 1032 | * @uses UserManager::change_active_state() to actually disable the user |
1030 | 1033 | * @assert (0) === false |
@@ -1189,6 +1192,7 @@ discard block |
||
1189 | 1192 | * Checks whether the user id exists in the database |
1190 | 1193 | * |
1191 | 1194 | * @param int User id |
1195 | + * @param integer $userId |
|
1192 | 1196 | * @return bool True if user id was found, false otherwise |
1193 | 1197 | */ |
1194 | 1198 | public static function is_user_id_valid($userId) |
@@ -1386,7 +1390,7 @@ discard block |
||
1386 | 1390 | * @param array $userInfo user information to avoid query the DB |
1387 | 1391 | * returns the /main/img/unknown.jpg image set it at true |
1388 | 1392 | * |
1389 | - * @return array Array of 2 elements: 'dir' and 'file' which contain |
|
1393 | + * @return integer Array of 2 elements: 'dir' and 'file' which contain |
|
1390 | 1394 | * the dir and file as the name implies if image does not exist it will |
1391 | 1395 | * return the unknow image if anonymous parameter is true if not it returns an empty array |
1392 | 1396 | */ |
@@ -1754,7 +1758,7 @@ discard block |
||
1754 | 1758 | * @param int $user_id User id |
1755 | 1759 | * @param $force Optional parameter to force building after a removal request |
1756 | 1760 | * |
1757 | - * @return A string containing the XHTML code to dipslay the production list, or FALSE |
|
1761 | + * @return boolean|string string containing the XHTML code to dipslay the production list, or FALSE |
|
1758 | 1762 | */ |
1759 | 1763 | public static function build_production_list($user_id, $force = false, $showdelete = false) |
1760 | 1764 | { |
@@ -1790,7 +1794,7 @@ discard block |
||
1790 | 1794 | /** |
1791 | 1795 | * Returns an array with the user's productions. |
1792 | 1796 | * |
1793 | - * @param $user_id User id |
|
1797 | + * @param integer $user_id User id |
|
1794 | 1798 | * @return array An array containing the user's productions |
1795 | 1799 | */ |
1796 | 1800 | public static function get_user_productions($user_id) |
@@ -1945,7 +1949,7 @@ discard block |
||
1945 | 1949 | |
1946 | 1950 | /** |
1947 | 1951 | * Build a list of extra file already uploaded in $user_folder/{$extra_field}/ |
1948 | - * @param $user_id |
|
1952 | + * @param integer $user_id |
|
1949 | 1953 | * @param $extra_field |
1950 | 1954 | * @param bool $force |
1951 | 1955 | * @param bool $showdelete |
@@ -2050,7 +2054,7 @@ discard block |
||
2050 | 2054 | * @param int $fieldType Field's type |
2051 | 2055 | * @param string $displayText Field's language var name |
2052 | 2056 | * @param string $default Field's default value |
2053 | - * @return int |
|
2057 | + * @return boolean |
|
2054 | 2058 | */ |
2055 | 2059 | public static function create_extra_field($variable, $fieldType, $displayText, $default) |
2056 | 2060 | { |
@@ -2084,6 +2088,7 @@ discard block |
||
2084 | 2088 | * @param boolean Whether to prefix the fields indexes with "extra_" (might be used by formvalidator) |
2085 | 2089 | * @param boolean Whether to return invisible fields as well |
2086 | 2090 | * @param boolean Whether to split multiple-selection fields or not |
2091 | + * @param boolean $field_filter |
|
2087 | 2092 | * @return array Array of fields => value for the given user |
2088 | 2093 | */ |
2089 | 2094 | public static function get_extra_user_data( |
@@ -2270,7 +2275,6 @@ discard block |
||
2270 | 2275 | /** |
2271 | 2276 | * Get all the extra field information of a certain field (also the options) |
2272 | 2277 | * |
2273 | - * @param int $field_name the name of the field we want to know everything of |
|
2274 | 2278 | * @return array $return containing all th information about the extra profile field |
2275 | 2279 | * @author Julio Montoya |
2276 | 2280 | * @deprecated |
@@ -2315,6 +2319,7 @@ discard block |
||
2315 | 2319 | /** |
2316 | 2320 | * Get extra user data by field variable |
2317 | 2321 | * @param string field variable |
2322 | + * @param string $field_variable |
|
2318 | 2323 | * @return array data |
2319 | 2324 | */ |
2320 | 2325 | public static function get_extra_user_data_by_field_variable($field_variable) |
@@ -2864,7 +2869,7 @@ discard block |
||
2864 | 2869 | * @param string User ID |
2865 | 2870 | * @param string course directory |
2866 | 2871 | * @param string resourcetype: images, all |
2867 | - * @return int User ID (or false if not found) |
|
2872 | + * @return string User ID (or false if not found) |
|
2868 | 2873 | */ |
2869 | 2874 | public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all') |
2870 | 2875 | { |
@@ -2944,7 +2949,7 @@ discard block |
||
2944 | 2949 | /** |
2945 | 2950 | * Adds a new API key to the users' account |
2946 | 2951 | * @param int Optional user ID (defaults to the results of api_get_user_id()) |
2947 | - * @return boolean True on success, false on failure |
|
2952 | + * @return false|string True on success, false on failure |
|
2948 | 2953 | */ |
2949 | 2954 | public static function add_api_key($user_id = null, $api_service = 'dokeos') |
2950 | 2955 | { |
@@ -2999,6 +3004,7 @@ discard block |
||
2999 | 3004 | * Regenerate an API key from the user's account |
3000 | 3005 | * @param int user ID (defaults to the results of api_get_user_id()) |
3001 | 3006 | * @param string API key's internal ID |
3007 | + * @param string $api_service |
|
3002 | 3008 | * @return int num |
3003 | 3009 | */ |
3004 | 3010 | public static function update_api_key($user_id, $api_service) |
@@ -3028,6 +3034,7 @@ discard block |
||
3028 | 3034 | /** |
3029 | 3035 | * @param int user ID (defaults to the results of api_get_user_id()) |
3030 | 3036 | * @param string API key's internal ID |
3037 | + * @param string $api_service |
|
3031 | 3038 | * @return int row ID, or return false if not found |
3032 | 3039 | */ |
3033 | 3040 | public static function get_api_key_id($user_id, $api_service) |
@@ -3239,7 +3246,8 @@ discard block |
||
3239 | 3246 | * @param int user_id |
3240 | 3247 | * @param int field_id |
3241 | 3248 | * @param bool show links or not |
3242 | - * @return array |
|
3249 | + * @param integer $user_id |
|
3250 | + * @return string |
|
3243 | 3251 | */ |
3244 | 3252 | public static function get_user_tags_to_string($user_id, $field_id, $show_links = true) |
3245 | 3253 | { |
@@ -3284,6 +3292,8 @@ discard block |
||
3284 | 3292 | * Get the tag id |
3285 | 3293 | * @param int tag |
3286 | 3294 | * @param int field_id |
3295 | + * @param string $tag |
|
3296 | + * @param integer $field_id |
|
3287 | 3297 | * @return int returns 0 if fails otherwise the tag id |
3288 | 3298 | */ |
3289 | 3299 | public static function get_tag_id($tag, $field_id) |
@@ -3330,7 +3340,9 @@ discard block |
||
3330 | 3340 | * @param mixed tag |
3331 | 3341 | * @param int The user id |
3332 | 3342 | * @param int field id of the tag |
3333 | - * @return bool |
|
3343 | + * @param integer $user_id |
|
3344 | + * @param integer $field_id |
|
3345 | + * @return boolean|null |
|
3334 | 3346 | */ |
3335 | 3347 | public static function add_tag($tag, $user_id, $field_id) |
3336 | 3348 | { |
@@ -4148,7 +4160,7 @@ discard block |
||
4148 | 4160 | * Add subscribed users to a user by relation type |
4149 | 4161 | * @param int $userId The user id |
4150 | 4162 | * @param array $subscribedUsersId The id of suscribed users |
4151 | - * @param action $relationType The relation type |
|
4163 | + * @param integer $relationType The relation type |
|
4152 | 4164 | */ |
4153 | 4165 | public static function subscribeUsersToUser($userId, $subscribedUsersId, $relationType, $deleteUsersBeforeInsert = false) |
4154 | 4166 | { |
@@ -4213,6 +4225,8 @@ discard block |
||
4213 | 4225 | * This function check if an user is followed by human resources manager |
4214 | 4226 | * @param int User id |
4215 | 4227 | * @param int Human resources manager |
4228 | + * @param integer $user_id |
|
4229 | + * @param integer $hr_dept_id |
|
4216 | 4230 | * @return bool |
4217 | 4231 | */ |
4218 | 4232 | public static function is_user_followed_by_drh($user_id, $hr_dept_id) |
@@ -4285,6 +4299,8 @@ discard block |
||
4285 | 4299 | * Determines if a user is a gradebook certified |
4286 | 4300 | * @param int The category id of gradebook |
4287 | 4301 | * @param int The user id |
4302 | + * @param integer $cat_id |
|
4303 | + * @param integer $user_id |
|
4288 | 4304 | * @return boolean |
4289 | 4305 | */ |
4290 | 4306 | public static function is_user_certified($cat_id, $user_id) |
@@ -4307,6 +4323,8 @@ discard block |
||
4307 | 4323 | * Gets the info about a gradebook certificate for a user by course |
4308 | 4324 | * @param string The course code |
4309 | 4325 | * @param int The user id |
4326 | + * @param integer $course_code |
|
4327 | + * @param integer $user_id |
|
4310 | 4328 | * @return array if there is not information return false |
4311 | 4329 | */ |
4312 | 4330 | public static function get_info_gradebook_certificate($course_code, $user_id) |
@@ -4770,7 +4788,7 @@ discard block |
||
4770 | 4788 | } |
4771 | 4789 | |
4772 | 4790 | /** |
4773 | - * @return array |
|
4791 | + * @return string[] |
|
4774 | 4792 | */ |
4775 | 4793 | static function get_user_field_types() |
4776 | 4794 | { |
@@ -5063,7 +5081,7 @@ discard block |
||
5063 | 5081 | |
5064 | 5082 | /** |
5065 | 5083 | * Get the boss user ID from a followed user id |
5066 | - * @param $userId |
|
5084 | + * @param integer $userId |
|
5067 | 5085 | * @return bool |
5068 | 5086 | */ |
5069 | 5087 | public static function getStudentBossList($userId) |
@@ -5115,7 +5133,7 @@ discard block |
||
5115 | 5133 | * Get either a Gravatar URL or complete image tag for a specified email address. |
5116 | 5134 | * |
5117 | 5135 | * @param string $email The email address |
5118 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5136 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
5119 | 5137 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
5120 | 5138 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
5121 | 5139 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -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 | { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * @param int $max_time_allowed |
487 | 487 | * @param int $userId |
488 | 488 | * |
489 | - * @return int |
|
489 | + * @return false|string |
|
490 | 490 | */ |
491 | 491 | public function add_item( |
492 | 492 | $parent, |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | * @param array $courseInfo |
1038 | 1038 | * @param integer Learnpath ID |
1039 | 1039 | * @param string Whether to delete data or keep it (default: 'keep', others: 'remove') |
1040 | - * @return boolean True on success, false on failure (might change that to return number of elements deleted) |
|
1040 | + * @return false|null True on success, false on failure (might change that to return number of elements deleted) |
|
1041 | 1041 | */ |
1042 | 1042 | public function delete($courseInfo = null, $id = null, $delete = 'keep') |
1043 | 1043 | { |
@@ -1171,7 +1171,7 @@ discard block |
||
1171 | 1171 | * @param integer $id Elem ID (0 if first) |
1172 | 1172 | * @param integer $remove Whether to remove the resource/data from the |
1173 | 1173 | * system or leave it (default: 'keep', others 'remove') |
1174 | - * @return integer Number of elements moved |
|
1174 | + * @return false|null Number of elements moved |
|
1175 | 1175 | * @todo implement resource removal |
1176 | 1176 | */ |
1177 | 1177 | public function delete_item($id, $remove = 'keep') |
@@ -1253,7 +1253,7 @@ discard block |
||
1253 | 1253 | * @param array $audio The array resulting of the $_FILES[mp3] element |
1254 | 1254 | * @param int $max_time_allowed |
1255 | 1255 | * @param string $url |
1256 | - * @return boolean True on success, false on error |
|
1256 | + * @return false|null True on success, false on error |
|
1257 | 1257 | */ |
1258 | 1258 | public function edit_item( |
1259 | 1259 | $id, |
@@ -1773,7 +1773,7 @@ discard block |
||
1773 | 1773 | |
1774 | 1774 | /** |
1775 | 1775 | * Gets the first element URL. |
1776 | - * @return string URL to load into the viewer |
|
1776 | + * @return false|null URL to load into the viewer |
|
1777 | 1777 | */ |
1778 | 1778 | public function first() |
1779 | 1779 | { |
@@ -2289,6 +2289,7 @@ discard block |
||
2289 | 2289 | * @param int $student_id |
2290 | 2290 | * @param string Course code (optional) |
2291 | 2291 | * @param int $sessionId |
2292 | + * @param string $courseCode |
|
2292 | 2293 | * @return bool |
2293 | 2294 | */ |
2294 | 2295 | public static function is_lp_visible_for_student( |
@@ -2586,7 +2587,7 @@ discard block |
||
2586 | 2587 | |
2587 | 2588 | /** |
2588 | 2589 | * Gets the learnpath session id |
2589 | - * @return string Learnpath theme |
|
2590 | + * @return integer Learnpath theme |
|
2590 | 2591 | */ |
2591 | 2592 | public function get_lp_session_id() |
2592 | 2593 | { |
@@ -2619,7 +2620,7 @@ discard block |
||
2619 | 2620 | /** |
2620 | 2621 | * @param string $size |
2621 | 2622 | * @param string $path_type |
2622 | - * @return bool|string |
|
2623 | + * @return string|false |
|
2623 | 2624 | */ |
2624 | 2625 | public function get_preview_image_path($size = null, $path_type = 'web') |
2625 | 2626 | { |
@@ -2765,6 +2766,8 @@ discard block |
||
2765 | 2766 | * Returns the XML DOM document's node |
2766 | 2767 | * @param resource Reference to a list of objects to search for the given ITEM_* |
2767 | 2768 | * @param string The identifier to look for |
2769 | + * @param DOMNodeList $children |
|
2770 | + * @param string $id |
|
2768 | 2771 | * @return mixed The reference to the element found with that identifier. False if not found |
2769 | 2772 | */ |
2770 | 2773 | public function get_scorm_xml_node(& $children, $id) |
@@ -3012,7 +3015,7 @@ discard block |
||
3012 | 3015 | /** |
3013 | 3016 | * Generate and return the table of contents for this learnpath. The (flat) table returned can be |
3014 | 3017 | * used by get_html_toc() to be ready to display |
3015 | - * @return array TOC as a table with 4 elements per row: title, link, status and level |
|
3018 | + * @return boolean TOC as a table with 4 elements per row: title, link, status and level |
|
3016 | 3019 | */ |
3017 | 3020 | public function get_toc() |
3018 | 3021 | { |
@@ -3148,7 +3151,7 @@ discard block |
||
3148 | 3151 | } |
3149 | 3152 | |
3150 | 3153 | /** |
3151 | - * @return array |
|
3154 | + * @return string[] |
|
3152 | 3155 | */ |
3153 | 3156 | public static function getChapterTypes() |
3154 | 3157 | { |
@@ -4057,7 +4060,7 @@ discard block |
||
4057 | 4060 | * Open a resource = initialise all local variables relative to this resource. Depending on the child |
4058 | 4061 | * class, this might be redefined to allow several behaviours depending on the document type. |
4059 | 4062 | * @param integer Resource ID |
4060 | - * @return boolean True on success, false otherwise |
|
4063 | + * @return boolean|null True on success, false otherwise |
|
4061 | 4064 | */ |
4062 | 4065 | public function open($id) |
4063 | 4066 | { |
@@ -4186,7 +4189,7 @@ discard block |
||
4186 | 4189 | * Can be used as abstract |
4187 | 4190 | * @param integer $lp_id Learnpath id |
4188 | 4191 | * @param string $set_visibility New visibility (v/i - visible/invisible) |
4189 | - * @return bool |
|
4192 | + * @return false|null |
|
4190 | 4193 | */ |
4191 | 4194 | public static function toggle_publish($lp_id, $set_visibility = 'v') |
4192 | 4195 | { |
@@ -4271,7 +4274,7 @@ discard block |
||
4271 | 4274 | * Make sure the results are saved with anoter method. This method should probably be |
4272 | 4275 | * redefined in children classes. |
4273 | 4276 | * To use a similar method statically, use the create_new_attempt() method |
4274 | - * @return string URL to load in the viewer |
|
4277 | + * @return boolean URL to load in the viewer |
|
4275 | 4278 | */ |
4276 | 4279 | public function restart() |
4277 | 4280 | { |
@@ -4349,6 +4352,7 @@ discard block |
||
4349 | 4352 | * Saves the given item |
4350 | 4353 | * @param integer $item_id. Optional (will take from $_REQUEST if null) |
4351 | 4354 | * @param boolean $from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true |
4355 | + * @param integer $item_id |
|
4352 | 4356 | * @return boolean |
4353 | 4357 | */ |
4354 | 4358 | public function save_item($item_id = null, $from_outside = true) |
@@ -4846,7 +4850,7 @@ discard block |
||
4846 | 4850 | |
4847 | 4851 | /** |
4848 | 4852 | * Sets use_max_score |
4849 | - * @param string $use_max_score Optional string giving the new location of this learnpath |
|
4853 | + * @param integer $use_max_score Optional string giving the new location of this learnpath |
|
4850 | 4854 | * @return boolean True on success / False on error |
4851 | 4855 | */ |
4852 | 4856 | public function set_use_max_score($use_max_score = 1) |
@@ -5249,6 +5253,7 @@ discard block |
||
5249 | 5253 | * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags |
5250 | 5254 | * |
5251 | 5255 | * @param string 'seriousgame', 'single' or 'multiple' |
5256 | + * @param string $mode |
|
5252 | 5257 | * @return boolean |
5253 | 5258 | * @author ndiechburg <[email protected]> |
5254 | 5259 | **/ |
@@ -5291,7 +5296,7 @@ discard block |
||
5291 | 5296 | /** |
5292 | 5297 | * Switch between multiple attempt, single attempt or serious_game mode (only for scorm) |
5293 | 5298 | * |
5294 | - * @return boolean |
|
5299 | + * @return boolean|null |
|
5295 | 5300 | * @author ndiechburg <[email protected]> |
5296 | 5301 | **/ |
5297 | 5302 | public function switch_attempt_mode() |
@@ -5482,7 +5487,6 @@ discard block |
||
5482 | 5487 | /** |
5483 | 5488 | * Function that creates a html list of learning path items so that we can add audio files to them |
5484 | 5489 | * @author Kevin Van Den Haute |
5485 | - * @param int $lp_id |
|
5486 | 5490 | * @return string |
5487 | 5491 | */ |
5488 | 5492 | public function overview() |
@@ -5902,7 +5906,7 @@ discard block |
||
5902 | 5906 | /** |
5903 | 5907 | * This function builds the action menu |
5904 | 5908 | * @param bool $returnContent |
5905 | - * @return void |
|
5909 | + * @return string|null |
|
5906 | 5910 | */ |
5907 | 5911 | public function build_action_menu($returnContent = false) |
5908 | 5912 | { |
@@ -6447,7 +6451,7 @@ discard block |
||
6447 | 6451 | /** |
6448 | 6452 | * Function that displays a list with al the resources that |
6449 | 6453 | * could be added to the learning path |
6450 | - * @return string |
|
6454 | + * @return boolean |
|
6451 | 6455 | */ |
6452 | 6456 | public function display_resources() |
6453 | 6457 | { |
@@ -10028,7 +10032,7 @@ discard block |
||
10028 | 10032 | |
10029 | 10033 | /** |
10030 | 10034 | * @param int $lp_id |
10031 | - * @return bool |
|
10035 | + * @return false|null |
|
10032 | 10036 | */ |
10033 | 10037 | public function scorm_export_to_pdf($lp_id) |
10034 | 10038 | { |
@@ -10569,7 +10573,7 @@ discard block |
||
10569 | 10573 | |
10570 | 10574 | /** |
10571 | 10575 | * @param int $itemId |
10572 | - * @return learnpathItem|false |
|
10576 | + * @return string |
|
10573 | 10577 | */ |
10574 | 10578 | public function getItem($itemId) |
10575 | 10579 | { |
@@ -10619,7 +10623,6 @@ discard block |
||
10619 | 10623 | /** |
10620 | 10624 | * Set whether this is a learning path with the possibility to subscribe |
10621 | 10625 | * users or not |
10622 | - * @param int $subscribeUsers (0 = false, 1 = true) |
|
10623 | 10626 | */ |
10624 | 10627 | public function setSubscribeUsers($value) |
10625 | 10628 | { |
@@ -10744,7 +10747,7 @@ discard block |
||
10744 | 10747 | |
10745 | 10748 | /** |
10746 | 10749 | * Get the item of exercise type (evaluation type) |
10747 | - * @return array The final evaluation. Otherwise return false |
|
10750 | + * @return integer The final evaluation. Otherwise return false |
|
10748 | 10751 | */ |
10749 | 10752 | public function getFinalEvaluationItem() |
10750 | 10753 | { |
@@ -10968,7 +10971,7 @@ discard block |
||
10968 | 10971 | /** |
10969 | 10972 | * Create a forum for this learning path |
10970 | 10973 | * @param type $forumCategoryId |
10971 | - * @return int The forum ID if was created. Otherwise return false |
|
10974 | + * @return false|string The forum ID if was created. Otherwise return false |
|
10972 | 10975 | */ |
10973 | 10976 | public function createForum($forumCategoryId) |
10974 | 10977 | { |
@@ -11017,7 +11020,7 @@ discard block |
||
11017 | 11020 | /** |
11018 | 11021 | * Get the LP Final Item Template |
11019 | 11022 | * |
11020 | - * @return html |
|
11023 | + * @return string |
|
11021 | 11024 | */ |
11022 | 11025 | private function getFinalItemTemplate() |
11023 | 11026 | { |
@@ -11040,7 +11043,7 @@ discard block |
||
11040 | 11043 | /** |
11041 | 11044 | * Get the LP Final Item form |
11042 | 11045 | * |
11043 | - * @return html |
|
11046 | + * @return string |
|
11044 | 11047 | */ |
11045 | 11048 | public function getFinalItemForm() |
11046 | 11049 | { |
@@ -264,7 +264,7 @@ |
||
264 | 264 | } |
265 | 265 | |
266 | 266 | /** |
267 | - * @return string|false |
|
267 | + * @return string |
|
268 | 268 | */ |
269 | 269 | public function selectPicturePath() |
270 | 270 | { |
@@ -230,7 +230,7 @@ |
||
230 | 230 | /** |
231 | 231 | * Get id |
232 | 232 | * |
233 | - * @return boolean |
|
233 | + * @return integer |
|
234 | 234 | */ |
235 | 235 | public function getId() |
236 | 236 | { |