@@ -1334,9 +1334,9 @@ discard block |
||
| 1334 | 1334 | * @param integer $sessionCategoryId |
| 1335 | 1335 | * @param int $visibility |
| 1336 | 1336 | * @param string $description |
| 1337 | - * @param bool $showDescription |
|
| 1337 | + * @param integer $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 | { |
@@ -2356,7 +2358,7 @@ discard block |
||
| 2356 | 2358 | * @param integer Course ID |
| 2357 | 2359 | * @param string Field variable name |
| 2358 | 2360 | * @param string Field value |
| 2359 | - * @return boolean true if field updated, false otherwise |
|
| 2361 | + * @return boolean|null true if field updated, false otherwise |
|
| 2360 | 2362 | */ |
| 2361 | 2363 | public static function update_session_extra_field_value($sessionId, $variable, $value = '') |
| 2362 | 2364 | { |
@@ -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 |
@@ -5267,7 +5272,6 @@ discard block |
||
| 5267 | 5272 | * @param string $lastConnectionDate |
| 5268 | 5273 | * @param array $sessionIdList |
| 5269 | 5274 | * @param array $studentIdList |
| 5270 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
| 5271 | 5275 | * |
| 5272 | 5276 | * @return array|int |
| 5273 | 5277 | */ |
@@ -5419,7 +5423,7 @@ discard block |
||
| 5419 | 5423 | /** |
| 5420 | 5424 | * Get the list of course tools that have to be dealt with in case of |
| 5421 | 5425 | * registering any course to a session |
| 5422 | - * @return array The list of tools to be dealt with (literal names) |
|
| 5426 | + * @return string[] The list of tools to be dealt with (literal names) |
|
| 5423 | 5427 | */ |
| 5424 | 5428 | public static function getCourseToolToBeManaged() |
| 5425 | 5429 | { |
@@ -5433,7 +5437,7 @@ discard block |
||
| 5433 | 5437 | * Calls the methods bound to each tool when a course is registered into a session |
| 5434 | 5438 | * @param int $sessionId |
| 5435 | 5439 | * @param int $courseId |
| 5436 | - * @return void |
|
| 5440 | + * @return boolean|null |
|
| 5437 | 5441 | */ |
| 5438 | 5442 | public static function installCourse($sessionId, $courseId) |
| 5439 | 5443 | { |
@@ -6073,6 +6077,7 @@ discard block |
||
| 6073 | 6077 | * @param int $categoryId The internal ID of the session category |
| 6074 | 6078 | * @param string $target Value to search for in the session field values |
| 6075 | 6079 | * @param array $extraFields A list of fields to be scanned and returned |
| 6080 | + * @param DateTime $publicationDate |
|
| 6076 | 6081 | * @return mixed |
| 6077 | 6082 | */ |
| 6078 | 6083 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -7402,7 +7407,7 @@ discard block |
||
| 7402 | 7407 | /** |
| 7403 | 7408 | * Get link to the admin page for this session |
| 7404 | 7409 | * @param int $id Session ID |
| 7405 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
| 7410 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
| 7406 | 7411 | */ |
| 7407 | 7412 | public static function getAdminPath($id) |
| 7408 | 7413 | { |
@@ -7419,7 +7424,7 @@ discard block |
||
| 7419 | 7424 | * If a course is provided, build the link to the course |
| 7420 | 7425 | * @param int $id Session ID |
| 7421 | 7426 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
| 7422 | - * @return mixed URL to the page to use the session, or false on error |
|
| 7427 | + * @return false|string URL to the page to use the session, or false on error |
|
| 7423 | 7428 | */ |
| 7424 | 7429 | public static function getPath($id, $courseId = 0) |
| 7425 | 7430 | { |
@@ -7517,7 +7522,7 @@ discard block |
||
| 7517 | 7522 | /** |
| 7518 | 7523 | * Return true if coach is allowed to access this session |
| 7519 | 7524 | * @param int $sessionId |
| 7520 | - * @return bool |
|
| 7525 | + * @return integer |
|
| 7521 | 7526 | */ |
| 7522 | 7527 | public static function isSessionDateOkForCoach($sessionId) |
| 7523 | 7528 | { |