@@ -1532,7 +1532,7 @@ discard block |
||
| 1532 | 1532 | * @param array $id_checked an array to delete sessions |
| 1533 | 1533 | * @param boolean $from_ws optional, true if the function is called |
| 1534 | 1534 | * by a webservice, false otherwise. |
| 1535 | - * @return void Nothing, or false on error |
|
| 1535 | + * @return boolean Nothing, or false on error |
|
| 1536 | 1536 | * */ |
| 1537 | 1537 | public static function delete($id_checked, $from_ws = false) |
| 1538 | 1538 | { |
@@ -1669,7 +1669,7 @@ discard block |
||
| 1669 | 1669 | * @param array $user_list |
| 1670 | 1670 | * @param int $session_visibility |
| 1671 | 1671 | * @param bool $empty_users |
| 1672 | - * @return bool |
|
| 1672 | + * @return false|null |
|
| 1673 | 1673 | */ |
| 1674 | 1674 | public static function subscribe_users_to_session( |
| 1675 | 1675 | $id_session, |
@@ -1942,7 +1942,7 @@ discard block |
||
| 1942 | 1942 | * @param array $courseInfo |
| 1943 | 1943 | * @param int $status |
| 1944 | 1944 | * @param bool $updateTotal |
| 1945 | - * @return bool |
|
| 1945 | + * @return false|null |
|
| 1946 | 1946 | */ |
| 1947 | 1947 | public static function removeUsersFromCourseSession( |
| 1948 | 1948 | $userList, |
@@ -2008,7 +2008,7 @@ discard block |
||
| 2008 | 2008 | * @param string $course_code |
| 2009 | 2009 | * @param int $session_visibility |
| 2010 | 2010 | * @param bool $removeUsersNotInList |
| 2011 | - * @return bool |
|
| 2011 | + * @return false|null |
|
| 2012 | 2012 | */ |
| 2013 | 2013 | public static function subscribe_users_to_session_course( |
| 2014 | 2014 | $user_list, |
@@ -2192,7 +2192,7 @@ discard block |
||
| 2192 | 2192 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
| 2193 | 2193 | * existing courses and users (true, default) or not (false) |
| 2194 | 2194 | * @param $copyEvaluation from base course to session course |
| 2195 | - * @return void Nothing, or false on error |
|
| 2195 | + * @return false|null Nothing, or false on error |
|
| 2196 | 2196 | * */ |
| 2197 | 2197 | public static function add_courses_to_session( |
| 2198 | 2198 | $sessionId, |
@@ -2441,7 +2441,7 @@ discard block |
||
| 2441 | 2441 | * @param string $variable Field's internal variable name |
| 2442 | 2442 | * @param int $fieldType Field's type |
| 2443 | 2443 | * @param string $displayText Field's language var name |
| 2444 | - * @return int new extra field id |
|
| 2444 | + * @return boolean new extra field id |
|
| 2445 | 2445 | */ |
| 2446 | 2446 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
| 2447 | 2447 | { |
@@ -2670,7 +2670,7 @@ discard block |
||
| 2670 | 2670 | * @param array id_checked |
| 2671 | 2671 | * @param bool include delete session |
| 2672 | 2672 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
| 2673 | - * @return void Nothing, or false on error |
|
| 2673 | + * @return boolean Nothing, or false on error |
|
| 2674 | 2674 | * The parameters is a array to delete sessions |
| 2675 | 2675 | * */ |
| 2676 | 2676 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3436,8 +3436,8 @@ discard block |
||
| 3436 | 3436 | /** |
| 3437 | 3437 | * Gets the list of courses by session filtered by access_url |
| 3438 | 3438 | * |
| 3439 | - * @param $userId |
|
| 3440 | - * @param $sessionId |
|
| 3439 | + * @param integer $userId |
|
| 3440 | + * @param null|integer $sessionId |
|
| 3441 | 3441 | * @param null $from |
| 3442 | 3442 | * @param null $limit |
| 3443 | 3443 | * @param null $column |
@@ -3562,6 +3562,7 @@ discard block |
||
| 3562 | 3562 | /** |
| 3563 | 3563 | * Gets the count of courses by session filtered by access_url |
| 3564 | 3564 | * @param int session id |
| 3565 | + * @param integer $session_id |
|
| 3565 | 3566 | * @return array list of courses |
| 3566 | 3567 | */ |
| 3567 | 3568 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3820,6 +3821,7 @@ discard block |
||
| 3820 | 3821 | * Updates a session status |
| 3821 | 3822 | * @param int session id |
| 3822 | 3823 | * @param int status |
| 3824 | + * @param integer $status |
|
| 3823 | 3825 | */ |
| 3824 | 3826 | public static function set_session_status($session_id, $status) |
| 3825 | 3827 | { |
@@ -4028,7 +4030,7 @@ discard block |
||
| 4028 | 4030 | * Protect a session to be edited. |
| 4029 | 4031 | * @param int $id |
| 4030 | 4032 | * @param bool $checkSession |
| 4031 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
| 4033 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
| 4032 | 4034 | */ |
| 4033 | 4035 | public static function protectSession($id, $checkSession = true) |
| 4034 | 4036 | { |
@@ -4136,7 +4138,7 @@ discard block |
||
| 4136 | 4138 | |
| 4137 | 4139 | /** |
| 4138 | 4140 | * @param $id |
| 4139 | - * @return bool |
|
| 4141 | + * @return null|boolean |
|
| 4140 | 4142 | */ |
| 4141 | 4143 | public static function protect_teacher_session_edit($id) |
| 4142 | 4144 | { |
@@ -4201,7 +4203,7 @@ discard block |
||
| 4201 | 4203 | * true: if the session exists it will be updated. |
| 4202 | 4204 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
| 4203 | 4205 | * @param int $defaultUserId |
| 4204 | - * @param mixed $logger |
|
| 4206 | + * @param Logger $logger |
|
| 4205 | 4207 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
| 4206 | 4208 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
| 4207 | 4209 | * @param string $extraFieldId |
@@ -5504,7 +5506,6 @@ discard block |
||
| 5504 | 5506 | * @param string $lastConnectionDate |
| 5505 | 5507 | * @param array $sessionIdList |
| 5506 | 5508 | * @param array $studentIdList |
| 5507 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
| 5508 | 5509 | * |
| 5509 | 5510 | * @return array|int |
| 5510 | 5511 | */ |
@@ -5656,7 +5657,7 @@ discard block |
||
| 5656 | 5657 | /** |
| 5657 | 5658 | * Get the list of course tools that have to be dealt with in case of |
| 5658 | 5659 | * registering any course to a session |
| 5659 | - * @return array The list of tools to be dealt with (literal names) |
|
| 5660 | + * @return string[] The list of tools to be dealt with (literal names) |
|
| 5660 | 5661 | */ |
| 5661 | 5662 | public static function getCourseToolToBeManaged() |
| 5662 | 5663 | { |
@@ -5670,7 +5671,7 @@ discard block |
||
| 5670 | 5671 | * Calls the methods bound to each tool when a course is registered into a session |
| 5671 | 5672 | * @param int $sessionId |
| 5672 | 5673 | * @param int $courseId |
| 5673 | - * @return void |
|
| 5674 | + * @return boolean|null |
|
| 5674 | 5675 | */ |
| 5675 | 5676 | public static function installCourse($sessionId, $courseId) |
| 5676 | 5677 | { |
@@ -6320,6 +6321,7 @@ discard block |
||
| 6320 | 6321 | * @param int $categoryId The internal ID of the session category |
| 6321 | 6322 | * @param string $target Value to search for in the session field values |
| 6322 | 6323 | * @param array $extraFields A list of fields to be scanned and returned |
| 6324 | + * @param DateTime $publicationDate |
|
| 6323 | 6325 | * @return mixed |
| 6324 | 6326 | */ |
| 6325 | 6327 | public static function getShortSessionListAndExtraByCategory( |
@@ -7656,7 +7658,7 @@ discard block |
||
| 7656 | 7658 | /** |
| 7657 | 7659 | * Get link to the admin page for this session |
| 7658 | 7660 | * @param int $id Session ID |
| 7659 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
| 7661 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
| 7660 | 7662 | */ |
| 7661 | 7663 | public static function getAdminPath($id) |
| 7662 | 7664 | { |
@@ -7673,7 +7675,7 @@ discard block |
||
| 7673 | 7675 | * If a course is provided, build the link to the course |
| 7674 | 7676 | * @param int $id Session ID |
| 7675 | 7677 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
| 7676 | - * @return mixed URL to the page to use the session, or false on error |
|
| 7678 | + * @return false|string URL to the page to use the session, or false on error |
|
| 7677 | 7679 | */ |
| 7678 | 7680 | public static function getPath($id, $courseId = 0) |
| 7679 | 7681 | { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @param int $resourceId |
| 77 | 77 | * @param int $type |
| 78 | - * @return boolean |
|
| 78 | + * @return boolean|null |
|
| 79 | 79 | */ |
| 80 | 80 | public function deleteResource($resourceId, $type) |
| 81 | 81 | { |