@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
156 | - * @return array |
|
156 | + * @return string[] |
|
157 | 157 | */ |
158 | 158 | public static function getValidExtraFieldTypes() |
159 | 159 | { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | |
239 | 239 | /** |
240 | 240 | * @param array $conditions |
241 | - * @param null $order_field_options_by |
|
241 | + * @param string $order_field_options_by |
|
242 | 242 | * |
243 | 243 | * @return array |
244 | 244 | */ |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | /** |
401 | 401 | * @param string $handler |
402 | 402 | * |
403 | - * @return array |
|
403 | + * @return string[] |
|
404 | 404 | */ |
405 | 405 | public static function get_extra_fields_by_handler($handler) |
406 | 406 | { |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | } |
628 | 628 | |
629 | 629 | /** |
630 | - * @return array |
|
630 | + * @return string[] |
|
631 | 631 | */ |
632 | 632 | public function get_field_types() |
633 | 633 | { |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | /** |
638 | 638 | * @param int $id |
639 | 639 | * |
640 | - * @return null |
|
640 | + * @return string|null |
|
641 | 641 | */ |
642 | 642 | public function get_field_type_by_id($id) |
643 | 643 | { |
@@ -2044,7 +2044,7 @@ discard block |
||
2044 | 2044 | } |
2045 | 2045 | |
2046 | 2046 | /** |
2047 | - * @return array |
|
2047 | + * @return string[] |
|
2048 | 2048 | */ |
2049 | 2049 | public function getJqgridColumnNames() |
2050 | 2050 | { |
@@ -1770,7 +1770,7 @@ discard block |
||
1770 | 1770 | * @param array $user_list |
1771 | 1771 | * @param int $session_visibility |
1772 | 1772 | * @param bool $empty_users |
1773 | - * @return bool |
|
1773 | + * @return false|null |
|
1774 | 1774 | */ |
1775 | 1775 | public static function subscribe_users_to_session( |
1776 | 1776 | $id_session, |
@@ -2115,7 +2115,7 @@ discard block |
||
2115 | 2115 | * @param array $courseInfo |
2116 | 2116 | * @param int $status |
2117 | 2117 | * @param bool $updateTotal |
2118 | - * @return bool |
|
2118 | + * @return false|null |
|
2119 | 2119 | */ |
2120 | 2120 | public static function removeUsersFromCourseSession( |
2121 | 2121 | $userList, |
@@ -2181,7 +2181,7 @@ discard block |
||
2181 | 2181 | * @param string $course_code |
2182 | 2182 | * @param int $session_visibility |
2183 | 2183 | * @param bool $removeUsersNotInList |
2184 | - * @return bool |
|
2184 | + * @return false|null |
|
2185 | 2185 | */ |
2186 | 2186 | public static function subscribe_users_to_session_course( |
2187 | 2187 | $user_list, |
@@ -2364,7 +2364,7 @@ discard block |
||
2364 | 2364 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2365 | 2365 | * existing courses and users (true, default) or not (false) |
2366 | 2366 | * @param bool $copyEvaluation from base course to session course |
2367 | - * @return void Nothing, or false on error |
|
2367 | + * @return false|null Nothing, or false on error |
|
2368 | 2368 | * */ |
2369 | 2369 | public static function add_courses_to_session( |
2370 | 2370 | $sessionId, |
@@ -2673,7 +2673,7 @@ discard block |
||
2673 | 2673 | * @param int $fieldType Field's type |
2674 | 2674 | * @param string $displayText Field's language var name |
2675 | 2675 | * @param string $default Field's default value |
2676 | - * @return int new extra field id |
|
2676 | + * @return boolean new extra field id |
|
2677 | 2677 | */ |
2678 | 2678 | public static function create_session_extra_field( |
2679 | 2679 | $variable, |
@@ -2767,7 +2767,7 @@ discard block |
||
2767 | 2767 | * @param integer year_end |
2768 | 2768 | * @param integer month_end |
2769 | 2769 | * @param integer day_end |
2770 | - * @return int session ID |
|
2770 | + * @return string|false session ID |
|
2771 | 2771 | * */ |
2772 | 2772 | public static function create_category_session( |
2773 | 2773 | $sname, |
@@ -2843,7 +2843,7 @@ discard block |
||
2843 | 2843 | * @param integer year_end |
2844 | 2844 | * @param integer month_end |
2845 | 2845 | * @param integer day_end |
2846 | - * @return bool |
|
2846 | + * @return string|boolean |
|
2847 | 2847 | * The parameter id is a primary key |
2848 | 2848 | * */ |
2849 | 2849 | public static function edit_category_session( |
@@ -2907,7 +2907,7 @@ discard block |
||
2907 | 2907 | * @param array id_checked |
2908 | 2908 | * @param bool include delete session |
2909 | 2909 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2910 | - * @return void Nothing, or false on error |
|
2910 | + * @return boolean Nothing, or false on error |
|
2911 | 2911 | * The parameters is a array to delete sessions |
2912 | 2912 | * */ |
2913 | 2913 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3677,8 +3677,8 @@ discard block |
||
3677 | 3677 | /** |
3678 | 3678 | * Gets the list of courses by session filtered by access_url |
3679 | 3679 | * |
3680 | - * @param $userId |
|
3681 | - * @param $sessionId |
|
3680 | + * @param integer $userId |
|
3681 | + * @param null|integer $sessionId |
|
3682 | 3682 | * @param null $from |
3683 | 3683 | * @param null $limit |
3684 | 3684 | * @param null $column |
@@ -3802,6 +3802,7 @@ discard block |
||
3802 | 3802 | /** |
3803 | 3803 | * Gets the count of courses by session filtered by access_url |
3804 | 3804 | * @param int session id |
3805 | + * @param integer $session_id |
|
3805 | 3806 | * @return array list of courses |
3806 | 3807 | */ |
3807 | 3808 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -4056,6 +4057,7 @@ discard block |
||
4056 | 4057 | * Updates a session status |
4057 | 4058 | * @param int session id |
4058 | 4059 | * @param int status |
4060 | + * @param integer $status |
|
4059 | 4061 | */ |
4060 | 4062 | public static function set_session_status($session_id, $status) |
4061 | 4063 | { |
@@ -4248,6 +4250,7 @@ discard block |
||
4248 | 4250 | /** |
4249 | 4251 | * Get the number of sessions |
4250 | 4252 | * @param int ID of the URL we want to filter on (optional) |
4253 | + * @param integer $access_url_id |
|
4251 | 4254 | * @return int Number of sessions |
4252 | 4255 | */ |
4253 | 4256 | public static function count_sessions($access_url_id = null) |
@@ -4268,7 +4271,7 @@ discard block |
||
4268 | 4271 | * Protect a session to be edited. |
4269 | 4272 | * @param int $id |
4270 | 4273 | * @param bool $checkSession |
4271 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
4274 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
4272 | 4275 | */ |
4273 | 4276 | public static function protectSession($id, $checkSession = true) |
4274 | 4277 | { |
@@ -4376,7 +4379,7 @@ discard block |
||
4376 | 4379 | |
4377 | 4380 | /** |
4378 | 4381 | * @param $id |
4379 | - * @return bool |
|
4382 | + * @return null|boolean |
|
4380 | 4383 | */ |
4381 | 4384 | public static function protect_teacher_session_edit($id) |
4382 | 4385 | { |
@@ -4453,7 +4456,7 @@ discard block |
||
4453 | 4456 | * true: if the session exists it will be updated. |
4454 | 4457 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4455 | 4458 | * @param int $defaultUserId |
4456 | - * @param mixed $logger |
|
4459 | + * @param Logger $logger |
|
4457 | 4460 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4458 | 4461 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4459 | 4462 | * @param string $extraFieldId |
@@ -5992,7 +5995,7 @@ discard block |
||
5992 | 5995 | /** |
5993 | 5996 | * Get the list of course tools that have to be dealt with in case of |
5994 | 5997 | * registering any course to a session |
5995 | - * @return array The list of tools to be dealt with (literal names) |
|
5998 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5996 | 5999 | */ |
5997 | 6000 | public static function getCourseToolToBeManaged() |
5998 | 6001 | { |
@@ -6006,7 +6009,7 @@ discard block |
||
6006 | 6009 | * Calls the methods bound to each tool when a course is registered into a session |
6007 | 6010 | * @param int $sessionId |
6008 | 6011 | * @param int $courseId |
6009 | - * @return void |
|
6012 | + * @return boolean|null |
|
6010 | 6013 | */ |
6011 | 6014 | public static function installCourse($sessionId, $courseId) |
6012 | 6015 | { |
@@ -6664,6 +6667,7 @@ discard block |
||
6664 | 6667 | * @param int $categoryId The internal ID of the session category |
6665 | 6668 | * @param string $target Value to search for in the session field values |
6666 | 6669 | * @param array $extraFields A list of fields to be scanned and returned |
6670 | + * @param DateTime $publicationDate |
|
6667 | 6671 | * @return mixed |
6668 | 6672 | */ |
6669 | 6673 | public static function getShortSessionListAndExtraByCategory( |
@@ -8139,7 +8143,7 @@ discard block |
||
8139 | 8143 | /** |
8140 | 8144 | * Get link to the admin page for this session |
8141 | 8145 | * @param int $id Session ID |
8142 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
8146 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
8143 | 8147 | */ |
8144 | 8148 | public static function getAdminPath($id) |
8145 | 8149 | { |
@@ -8156,7 +8160,7 @@ discard block |
||
8156 | 8160 | * If a course is provided, build the link to the course |
8157 | 8161 | * @param int $id Session ID |
8158 | 8162 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
8159 | - * @return mixed URL to the page to use the session, or false on error |
|
8163 | + * @return false|string URL to the page to use the session, or false on error |
|
8160 | 8164 | */ |
8161 | 8165 | public static function getPath($id, $courseId = 0) |
8162 | 8166 | { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * @param string |
277 | 277 | * @param string |
278 | - * @return true if the user is allowed to see the document, false otherwise |
|
278 | + * @return boolean if the user is allowed to see the document, false otherwise |
|
279 | 279 | * @author Sergio A Kessler, first version |
280 | 280 | * @author Roan Embrechts, bugfix |
281 | 281 | * @todo not only check if a file is visible, but also check if the user is allowed to see the file?? |
@@ -1663,6 +1663,8 @@ discard block |
||
1663 | 1663 | * @param int |
1664 | 1664 | * @param int |
1665 | 1665 | * @param bool |
1666 | + * @param integer $session_id |
|
1667 | + * @param integer $user_id |
|
1666 | 1668 | * @return bool |
1667 | 1669 | */ |
1668 | 1670 | public static function is_visible_by_id( |
@@ -2031,7 +2033,7 @@ discard block |
||
2031 | 2033 | * Remove default certificate |
2032 | 2034 | * @param string $course_id The course code |
2033 | 2035 | * @param int $default_certificate_id The document id of the default certificate |
2034 | - * @return void |
|
2036 | + * @return false|null |
|
2035 | 2037 | */ |
2036 | 2038 | public static function remove_attach_certificate($course_id, $default_certificate_id) |
2037 | 2039 | { |
@@ -2164,6 +2166,7 @@ discard block |
||
2164 | 2166 | * @param bool is file or string html |
2165 | 2167 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
2166 | 2168 | * @param int level of recursivity we're in |
2169 | + * @param string $source_html |
|
2167 | 2170 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
2168 | 2171 | * if the file should be copied into the zip or just linked |
2169 | 2172 | */ |
@@ -3073,6 +3076,8 @@ discard block |
||
3073 | 3076 | |
3074 | 3077 | /** |
3075 | 3078 | * Obtains the text inside the file with the right parser |
3079 | + * @param string $doc_path |
|
3080 | + * @param string $doc_mime |
|
3076 | 3081 | */ |
3077 | 3082 | public static function get_text_content($doc_path, $doc_mime) |
3078 | 3083 | { |
@@ -3325,6 +3330,7 @@ discard block |
||
3325 | 3330 | * Shows a play icon next to the document title in the document list |
3326 | 3331 | * @param int |
3327 | 3332 | * @param string |
3333 | + * @param integer|null $i |
|
3328 | 3334 | * @return string html content |
3329 | 3335 | */ |
3330 | 3336 | public static function generate_media_preview($i, $type = 'simple') |
@@ -4283,7 +4289,7 @@ discard block |
||
4283 | 4289 | } |
4284 | 4290 | |
4285 | 4291 | /** |
4286 | - * @return array |
|
4292 | + * @return string[] |
|
4287 | 4293 | */ |
4288 | 4294 | public static function get_web_odf_extension_list() |
4289 | 4295 | { |
@@ -4292,10 +4298,10 @@ discard block |
||
4292 | 4298 | |
4293 | 4299 | /** |
4294 | 4300 | * Set of extension allowed to use Jodconverter |
4295 | - * @param $mode 'from' |
|
4301 | + * @param string $mode 'from' |
|
4296 | 4302 | * 'to' |
4297 | 4303 | * 'all' |
4298 | - * @param $format 'text' |
|
4304 | + * @param string $format 'text' |
|
4299 | 4305 | * 'spreadsheet' |
4300 | 4306 | * 'presentation' |
4301 | 4307 | * 'drawing' |
@@ -4499,7 +4505,7 @@ discard block |
||
4499 | 4505 | } |
4500 | 4506 | |
4501 | 4507 | /** |
4502 | - * @return array |
|
4508 | + * @return string[] |
|
4503 | 4509 | */ |
4504 | 4510 | public static function get_system_folders() |
4505 | 4511 | { |
@@ -4517,7 +4523,7 @@ discard block |
||
4517 | 4523 | } |
4518 | 4524 | |
4519 | 4525 | /** |
4520 | - * @return array |
|
4526 | + * @return string[] |
|
4521 | 4527 | */ |
4522 | 4528 | public static function getProtectedFolderFromStudent() |
4523 | 4529 | { |
@@ -4673,7 +4679,7 @@ discard block |
||
4673 | 4679 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
4674 | 4680 | * @param string $wavFile |
4675 | 4681 | * @param bool $removeWavFileIfSuccess |
4676 | - * @return bool |
|
4682 | + * @return string|false |
|
4677 | 4683 | */ |
4678 | 4684 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
4679 | 4685 | { |
@@ -5254,6 +5260,8 @@ discard block |
||
5254 | 5260 | * @param string The current folder (path inside of the "document" directory, including the prefix "/") |
5255 | 5261 | * @param string Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root) |
5256 | 5262 | * @param boolean Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form) |
5263 | + * @param string $document_id |
|
5264 | + * @param FormValidator $form |
|
5257 | 5265 | * @return string html form |
5258 | 5266 | */ |
5259 | 5267 | public static function build_directory_selector( |
@@ -5987,9 +5995,6 @@ discard block |
||
5987 | 5995 | /** |
5988 | 5996 | * Creates the row of edit icons for a file/folder |
5989 | 5997 | * |
5990 | - * @param string $curdirpath current path (cfr open folder) |
|
5991 | - * @param string $type (file/folder) |
|
5992 | - * @param string $path dbase path of file/folder |
|
5993 | 5998 | * @param int $visibility (1/0) |
5994 | 5999 | * @param int $id dbase id of the document |
5995 | 6000 | * @return string html img tags with hyperlinks |
@@ -6211,7 +6216,7 @@ discard block |
||
6211 | 6216 | /** |
6212 | 6217 | * Gets the path translated with title of docs and folders |
6213 | 6218 | * @param string $path the real path |
6214 | - * @return the path which should be displayed |
|
6219 | + * @return string path which should be displayed |
|
6215 | 6220 | */ |
6216 | 6221 | public static function get_titles_of_path($path) |
6217 | 6222 | { |
@@ -6267,7 +6272,8 @@ discard block |
||
6267 | 6272 | |
6268 | 6273 | /** |
6269 | 6274 | * Checks whether the user is in shared folder |
6270 | - * @return return bool Return true when user is into shared folder |
|
6275 | + * @param integer $current_session_id |
|
6276 | + * @return boolean bool Return true when user is into shared folder |
|
6271 | 6277 | */ |
6272 | 6278 | public static function is_shared_folder($curdirpath, $current_session_id) |
6273 | 6279 | { |
@@ -6283,7 +6289,7 @@ discard block |
||
6283 | 6289 | |
6284 | 6290 | /** |
6285 | 6291 | * Checks whether the user is into any user shared folder |
6286 | - * @return return bool Return true when user is in any user shared folder |
|
6292 | + * @return boolean bool Return true when user is in any user shared folder |
|
6287 | 6293 | */ |
6288 | 6294 | public static function is_any_user_shared_folder($path, $current_session_id) |
6289 | 6295 | { |
@@ -6497,7 +6503,7 @@ discard block |
||
6497 | 6503 | * @param int $id |
6498 | 6504 | * @param array $courseInfo |
6499 | 6505 | * @param int $sessionId |
6500 | - * @return bool |
|
6506 | + * @return boolean|null |
|
6501 | 6507 | */ |
6502 | 6508 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
6503 | 6509 | { |
@@ -6516,7 +6522,7 @@ discard block |
||
6516 | 6522 | * @param array $courseInfo |
6517 | 6523 | * @param int $sessionId |
6518 | 6524 | * |
6519 | - * @return bool |
|
6525 | + * @return false|null |
|
6520 | 6526 | */ |
6521 | 6527 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
6522 | 6528 | { |
@@ -6555,7 +6561,7 @@ discard block |
||
6555 | 6561 | * @param array $courseInfo |
6556 | 6562 | * @param int $sessionId |
6557 | 6563 | * |
6558 | - * @return bool |
|
6564 | + * @return false|null |
|
6559 | 6565 | */ |
6560 | 6566 | public static function deleteDocumentsFromSession($courseInfo, $sessionId) |
6561 | 6567 | { |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | } |
274 | 274 | |
275 | 275 | /** |
276 | - * @return array |
|
276 | + * @return string[] |
|
277 | 277 | */ |
278 | 278 | public static function notificationTags() |
279 | 279 | { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | * @param array $courseInfo |
298 | 298 | * @param array $certificateInfo |
299 | 299 | * |
300 | - * @return bool |
|
300 | + * @return false|null |
|
301 | 301 | */ |
302 | 302 | public static function sendNotification( |
303 | 303 | $subject, |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | * Generates a QR code for the certificate. The QR code embeds the text given |
396 | 396 | * @param string $text Text to be added in the QR code |
397 | 397 | * @param string $path file path of the image |
398 | - * @return bool |
|
398 | + * @return null|false |
|
399 | 399 | **/ |
400 | 400 | public function generateQRImage($text, $path) |
401 | 401 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @return array |
|
36 | + * @return string[] |
|
37 | 37 | */ |
38 | 38 | public static function toolList() |
39 | 39 | { |
@@ -307,7 +307,6 @@ discard block |
||
307 | 307 | * 'page_nr' = The page to display |
308 | 308 | * 'hide_navigation' = true to hide the navigation |
309 | 309 | * @param array $query_vars Additional variables to add in the query-string |
310 | - * @param array $form actions Additional variables to add in the query-string |
|
311 | 310 | * @param mixed An array with bool values to know which columns show. |
312 | 311 | * i.e: $visibility_options= array(true, false) we will only show the first column |
313 | 312 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -348,7 +347,6 @@ discard block |
||
348 | 347 | * 'page_nr' = The page to display |
349 | 348 | * 'hide_navigation' = true to hide the navigation |
350 | 349 | * @param array $query_vars Additional variables to add in the query-string |
351 | - * @param array $form actions Additional variables to add in the query-string |
|
352 | 350 | * @param mixed An array with bool values to know which columns show. i.e: |
353 | 351 | * $visibility_options= array(true, false) we will only show the first column |
354 | 352 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -403,10 +401,11 @@ discard block |
||
403 | 401 | * 'per_page' = number of items to show per page |
404 | 402 | * 'page_nr' = The page to display |
405 | 403 | * @param array $query_vars Additional variables to add in the query-string |
406 | - * @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
404 | + * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column |
|
407 | 405 | * @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
408 | 406 | * i.e: $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column |
409 | 407 | * @param array $form_actions Set optional forms actions |
408 | + * @param string $table_name |
|
410 | 409 | * |
411 | 410 | * @author Julio Montoya |
412 | 411 | */ |
@@ -462,7 +461,7 @@ discard block |
||
462 | 461 | * @deprecated Use <code>Display::addFlash(Display::return_message($message, 'normal'));</code> |
463 | 462 | * Or <code>echo Display::return_message($message, 'normal')</code> |
464 | 463 | * |
465 | - * @return void |
|
464 | + * @return string|null |
|
466 | 465 | */ |
467 | 466 | public static function display_normal_message( |
468 | 467 | $message, |
@@ -500,7 +499,7 @@ discard block |
||
500 | 499 | * Displays an confirmation message. Use this if something has been done successfully |
501 | 500 | * @param bool Filter (true) or not (false) |
502 | 501 | * @deprecated use Display::addFlash(Display::return_message($message, 'confirm')); |
503 | - * @return void |
|
502 | + * @return string|null |
|
504 | 503 | */ |
505 | 504 | public static function display_confirmation_message( |
506 | 505 | $message, |
@@ -522,7 +521,7 @@ discard block |
||
522 | 521 | * @param bool Filter (true) or not (false) |
523 | 522 | * @deprecated use Display::addFlash(Display::return_message($message, 'error')); |
524 | 523 | * |
525 | - * @return void |
|
524 | + * @return string|null |
|
526 | 525 | */ |
527 | 526 | public static function display_error_message( |
528 | 527 | $message, |
@@ -725,6 +724,7 @@ discard block |
||
725 | 724 | * @param string The alt text (probably a language variable) |
726 | 725 | * @param array additional attributes (for instance height, width, onclick, ...) |
727 | 726 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
727 | + * @param string $image |
|
728 | 728 | * @return void |
729 | 729 | */ |
730 | 730 | public static function display_icon( |
@@ -976,6 +976,7 @@ discard block |
||
976 | 976 | |
977 | 977 | /** |
978 | 978 | * Displays an HTML input tag |
979 | + * @param string $type |
|
979 | 980 | */ |
980 | 981 | public static function input($type, $name, $value, $attributes = array()) |
981 | 982 | { |
@@ -992,8 +993,8 @@ discard block |
||
992 | 993 | } |
993 | 994 | |
994 | 995 | /** |
995 | - * @param $name |
|
996 | - * @param $value |
|
996 | + * @param string $name |
|
997 | + * @param string $value |
|
997 | 998 | * @param array $attributes |
998 | 999 | * @return string |
999 | 1000 | */ |
@@ -1008,6 +1009,7 @@ discard block |
||
1008 | 1009 | /** |
1009 | 1010 | * Displays an HTML select tag |
1010 | 1011 | * |
1012 | + * @param string $blank_item_text |
|
1011 | 1013 | */ |
1012 | 1014 | public static function select( |
1013 | 1015 | $name, |
@@ -1078,8 +1080,8 @@ discard block |
||
1078 | 1080 | $( "#tabs" ).tabs(); |
1079 | 1081 | }); |
1080 | 1082 | </script> |
1081 | - * @param array $headers list of the tab titles |
|
1082 | - * @param array $items |
|
1083 | + * @param string[] $headers list of the tab titles |
|
1084 | + * @param string[] $items |
|
1083 | 1085 | * @param string $id id of the container of the tab in the example "tabs" |
1084 | 1086 | * @param array $attributes for the ul |
1085 | 1087 | * @param array $ul_attributes |
@@ -1159,7 +1161,7 @@ discard block |
||
1159 | 1161 | |
1160 | 1162 | /** |
1161 | 1163 | * @param $headers |
1162 | - * @param null $selected |
|
1164 | + * @param integer $selected |
|
1163 | 1165 | * |
1164 | 1166 | * @return string |
1165 | 1167 | */ |
@@ -1202,6 +1204,7 @@ discard block |
||
1202 | 1204 | * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work |
1203 | 1205 | * |
1204 | 1206 | * @param string the div id, this value must be the same with the first parameter of Display::grid_js() |
1207 | + * @param string $div_id |
|
1205 | 1208 | * @return string html |
1206 | 1209 | * |
1207 | 1210 | */ |
@@ -1795,6 +1798,9 @@ discard block |
||
1795 | 1798 | return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>'; |
1796 | 1799 | } |
1797 | 1800 | |
1801 | + /** |
|
1802 | + * @param string $title |
|
1803 | + */ |
|
1798 | 1804 | public static function page_subheader2($title, $second_title = null) |
1799 | 1805 | { |
1800 | 1806 | return self::page_header($title, $second_title, 'h4'); |
@@ -2443,7 +2449,7 @@ discard block |
||
2443 | 2449 | |
2444 | 2450 | /** |
2445 | 2451 | * @param string $id |
2446 | - * @param array $content |
|
2452 | + * @param string[] $content |
|
2447 | 2453 | * @param array $colsWidth Optional. Columns width |
2448 | 2454 | * @return string |
2449 | 2455 | */ |
@@ -2484,7 +2490,7 @@ discard block |
||
2484 | 2490 | /** |
2485 | 2491 | * Get a HTML code for a icon by Font Awesome |
2486 | 2492 | * @param string $name The icon name |
2487 | - * @param int|string $size Optional. The size for the icon. (Example: lg, 2, 3, 4, 5) |
|
2493 | + * @param integer $size Optional. The size for the icon. (Example: lg, 2, 3, 4, 5) |
|
2488 | 2494 | * @param boolean $fixWidth Optional. Whether add the fw class |
2489 | 2495 | * @param string $additionalClass Optional. Additional class |
2490 | 2496 | * |
@@ -2529,10 +2535,10 @@ discard block |
||
2529 | 2535 | /** |
2530 | 2536 | * @param string $title |
2531 | 2537 | * @param string $content |
2532 | - * @param null $id |
|
2538 | + * @param string $id |
|
2533 | 2539 | * @param array $params |
2534 | - * @param null $idAccordion |
|
2535 | - * @param null $idCollapse |
|
2540 | + * @param string $idAccordion |
|
2541 | + * @param string $idCollapse |
|
2536 | 2542 | * @param bool|true $open |
2537 | 2543 | * @param bool|false $fullClickable |
2538 | 2544 | * @return null|string |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | * Save a participant in a meeting room |
402 | 402 | * @param int $meetingId |
403 | 403 | * @param int $participantId |
404 | - * @return false|int The last inserted ID. Otherwise return false |
|
404 | + * @return false|string The last inserted ID. Otherwise return false |
|
405 | 405 | */ |
406 | 406 | public function saveParticipant($meetingId, $participantId) |
407 | 407 | { |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | /** |
479 | 479 | * Returns a meeting "join" URL |
480 | 480 | * @param string The name of the meeting (usually the course code) |
481 | - * @return mixed The URL to join the meeting, or false on error |
|
481 | + * @return false|string The URL to join the meeting, or false on error |
|
482 | 482 | * @todo implement moderator pass |
483 | 483 | * @assert ('') === false |
484 | 484 | * @assert ('abcdefghijklmnopqrstuvwxyzabcdefghijklmno') === false |
@@ -872,7 +872,7 @@ discard block |
||
872 | 872 | * @param string The internal ID of the meeting (id field for this meeting) |
873 | 873 | * @param string $courseCode |
874 | 874 | * |
875 | - * @return void |
|
875 | + * @return false|null |
|
876 | 876 | * @assert (0) === false |
877 | 877 | */ |
878 | 878 | public function endMeeting($id, $courseCode = null) |
@@ -1358,7 +1358,7 @@ discard block |
||
1358 | 1358 | * @param array $recordInfo |
1359 | 1359 | * @param bool $isGlobal |
1360 | 1360 | * @param bool $isAdminReport |
1361 | - * @return array |
|
1361 | + * @return string[] |
|
1362 | 1362 | */ |
1363 | 1363 | private function getActionLinks($meetingInfo, $recordInfo, $isGlobal = false, $isAdminReport = false) |
1364 | 1364 | { |
@@ -1488,7 +1488,7 @@ discard block |
||
1488 | 1488 | |
1489 | 1489 | /** |
1490 | 1490 | * @param array $userInfo |
1491 | - * @return bool |
|
1491 | + * @return boolean|null |
|
1492 | 1492 | */ |
1493 | 1493 | public static function showGlobalConferenceLink($userInfo) |
1494 | 1494 | { |
@@ -63,6 +63,9 @@ |
||
63 | 63 | ); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $latestMessages |
|
68 | + */ |
|
66 | 69 | public function getLatestChat($currentUserId, $userId, $latestMessages) |
67 | 70 | { |
68 | 71 | $items = self::getPreviousMessages( |
@@ -172,6 +172,7 @@ discard block |
||
172 | 172 | * (moving a course to a different course category) |
173 | 173 | * @param int $courseId |
174 | 174 | * @param int Category id |
175 | + * @param integer $newcategory |
|
175 | 176 | * @return bool True if it success |
176 | 177 | */ |
177 | 178 | public function updateCourseCategory($courseId, $newcategory) |
@@ -204,6 +205,9 @@ discard block |
||
204 | 205 | * @param string Direction (up/down) |
205 | 206 | * @param string Course code |
206 | 207 | * @param int Category id |
208 | + * @param string $direction |
|
209 | + * @param string $course2move |
|
210 | + * @param integer $category |
|
207 | 211 | * @return bool True if it success |
208 | 212 | */ |
209 | 213 | public function move_course($direction, $course2move, $category) |
@@ -325,6 +329,8 @@ discard block |
||
325 | 329 | * Updates the user course category in the chamilo_user database |
326 | 330 | * @param string Category title |
327 | 331 | * @param int Category id |
332 | + * @param string $title |
|
333 | + * @param integer $category_id |
|
328 | 334 | * @return bool True if it success |
329 | 335 | */ |
330 | 336 | public function store_edit_course_category($title, $category_id) |
@@ -517,6 +523,7 @@ discard block |
||
517 | 523 | /** |
518 | 524 | * stores the user course category in the chamilo_user database |
519 | 525 | * @param string Category title |
526 | + * @param string $category_title |
|
520 | 527 | * @return bool True if it success |
521 | 528 | */ |
522 | 529 | public function store_course_category($category_title) |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * @param string $courseCode the course code |
785 | 785 | * @param int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible) |
786 | 786 | * |
787 | - * @return boolean true if added succesfully, false otherwise. |
|
787 | + * @return boolean|string true if added succesfully, false otherwise. |
|
788 | 788 | */ |
789 | 789 | public static function addUserVisibilityToCourseInCatalogue( |
790 | 790 | $userId, |
@@ -1107,6 +1107,7 @@ discard block |
||
1107 | 1107 | * @param int $user_id |
1108 | 1108 | * @param string $course_code , if this parameter is null, it'll check for all courses |
1109 | 1109 | * @param bool $in_a_session True for checking inside sessions too, by default is not checked |
1110 | + * @param integer $session_id |
|
1110 | 1111 | * @return bool $session_id true if the user is registered in the course, false otherwise |
1111 | 1112 | */ |
1112 | 1113 | public static function is_user_subscribed_in_course( |
@@ -4657,6 +4658,7 @@ discard block |
||
4657 | 4658 | * @param int session id |
4658 | 4659 | * @param id url id |
4659 | 4660 | * @param integer $session_id |
4661 | + * @param integer $url_id |
|
4660 | 4662 | * @return array |
4661 | 4663 | **/ |
4662 | 4664 | public static function update_course_ranking( |
@@ -5918,7 +5920,6 @@ discard block |
||
5918 | 5920 | /** |
5919 | 5921 | * Shows the form for sending a message to a specific group or user. |
5920 | 5922 | * @param FormValidator $form |
5921 | - * @param int $group_id id |
|
5922 | 5923 | * @param array $to |
5923 | 5924 | * |
5924 | 5925 | * @return HTML_QuickForm_element |