@@ -37,6 +37,8 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @param int Error code |
39 | 39 | * @param string Error message |
40 | + * @param integer $code |
|
41 | + * @param string $message |
|
40 | 42 | */ |
41 | 43 | public function __construct($code, $message) |
42 | 44 | { |
@@ -48,6 +50,7 @@ discard block |
||
48 | 50 | * Sets the error handler |
49 | 51 | * |
50 | 52 | * @param WSErrorHandler Error handler |
53 | + * @param WSCMSoapErrorHandler $handler |
|
51 | 54 | */ |
52 | 55 | public static function setErrorHandler($handler) |
53 | 56 | { |
@@ -86,6 +89,7 @@ discard block |
||
86 | 89 | * Handle method |
87 | 90 | * |
88 | 91 | * @param WSError Error |
92 | + * @return void |
|
89 | 93 | */ |
90 | 94 | public function handle($error); |
91 | 95 | } |
@@ -114,7 +118,7 @@ discard block |
||
114 | 118 | * Verifies the API key |
115 | 119 | * |
116 | 120 | * @param string Secret key |
117 | - * @return mixed WSError in case of failure, null in case of success |
|
121 | + * @return WSCMError|null WSError in case of failure, null in case of success |
|
118 | 122 | */ |
119 | 123 | protected function verifyKey($secret_key) |
120 | 124 | { |
@@ -1619,7 +1619,7 @@ discard block |
||
1619 | 1619 | * @param array $user_list |
1620 | 1620 | * @param int $session_visibility |
1621 | 1621 | * @param bool $empty_users |
1622 | - * @return bool |
|
1622 | + * @return false|null |
|
1623 | 1623 | */ |
1624 | 1624 | public static function suscribe_users_to_session( |
1625 | 1625 | $id_session, |
@@ -1891,7 +1891,7 @@ discard block |
||
1891 | 1891 | * @param array $courseInfo |
1892 | 1892 | * @param int $status |
1893 | 1893 | * @param bool $updateTotal |
1894 | - * @return bool |
|
1894 | + * @return false|null |
|
1895 | 1895 | */ |
1896 | 1896 | public static function removeUsersFromCourseSession( |
1897 | 1897 | $userList, |
@@ -1957,7 +1957,7 @@ discard block |
||
1957 | 1957 | * @param string $course_code |
1958 | 1958 | * @param int $session_visibility |
1959 | 1959 | * @param bool $removeUsersNotInList |
1960 | - * @return bool |
|
1960 | + * @return false|null |
|
1961 | 1961 | */ |
1962 | 1962 | public static function subscribe_users_to_session_course( |
1963 | 1963 | $user_list, |
@@ -2140,7 +2140,7 @@ discard block |
||
2140 | 2140 | * @param bool $removeExistingCoursesWithUsers Whether to unsubscribe |
2141 | 2141 | * existing courses and users (true, default) or not (false) |
2142 | 2142 | * @param $copyEvaluation from base course to session course |
2143 | - * @return void Nothing, or false on error |
|
2143 | + * @return false|null Nothing, or false on error |
|
2144 | 2144 | * */ |
2145 | 2145 | public static function add_courses_to_session( |
2146 | 2146 | $sessionId, |
@@ -2336,6 +2336,8 @@ discard block |
||
2336 | 2336 | * |
2337 | 2337 | * @param int Session id |
2338 | 2338 | * @param int Course id |
2339 | + * @param integer $session_id |
|
2340 | + * @param integer $course_id |
|
2339 | 2341 | * @return bool True in case of success, false otherwise |
2340 | 2342 | */ |
2341 | 2343 | public static function unsubscribe_course_from_session($session_id, $course_id) |
@@ -2391,7 +2393,7 @@ discard block |
||
2391 | 2393 | * @param string $variable Field's internal variable name |
2392 | 2394 | * @param int $fieldType Field's type |
2393 | 2395 | * @param string $displayText Field's language var name |
2394 | - * @return int new extra field id |
|
2396 | + * @return boolean new extra field id |
|
2395 | 2397 | */ |
2396 | 2398 | public static function create_session_extra_field($variable, $fieldType, $displayText) |
2397 | 2399 | { |
@@ -2615,7 +2617,7 @@ discard block |
||
2615 | 2617 | * @param array id_checked |
2616 | 2618 | * @param bool include delete session |
2617 | 2619 | * @param bool optional, true if the function is called by a webservice, false otherwise. |
2618 | - * @return void Nothing, or false on error |
|
2620 | + * @return boolean Nothing, or false on error |
|
2619 | 2621 | * The parameters is a array to delete sessions |
2620 | 2622 | * */ |
2621 | 2623 | public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false) |
@@ -3381,8 +3383,8 @@ discard block |
||
3381 | 3383 | /** |
3382 | 3384 | * Gets the list of courses by session filtered by access_url |
3383 | 3385 | * |
3384 | - * @param $userId |
|
3385 | - * @param $sessionId |
|
3386 | + * @param integer $userId |
|
3387 | + * @param null|integer $sessionId |
|
3386 | 3388 | * @param null $from |
3387 | 3389 | * @param null $limit |
3388 | 3390 | * @param null $column |
@@ -3507,6 +3509,7 @@ discard block |
||
3507 | 3509 | /** |
3508 | 3510 | * Gets the count of courses by session filtered by access_url |
3509 | 3511 | * @param int session id |
3512 | + * @param integer $session_id |
|
3510 | 3513 | * @return array list of courses |
3511 | 3514 | */ |
3512 | 3515 | public static function getCourseCountBySessionId($session_id, $keyword = null) |
@@ -3758,6 +3761,7 @@ discard block |
||
3758 | 3761 | * Updates a session status |
3759 | 3762 | * @param int session id |
3760 | 3763 | * @param int status |
3764 | + * @param integer $status |
|
3761 | 3765 | */ |
3762 | 3766 | public static function set_session_status($session_id, $status) |
3763 | 3767 | { |
@@ -3966,7 +3970,7 @@ discard block |
||
3966 | 3970 | * Protect a session to be edited. |
3967 | 3971 | * @param int $id |
3968 | 3972 | * @param bool $checkSession |
3969 | - * @return mixed | bool true if pass the check, api_not_allowed otherwise |
|
3973 | + * @return boolean|null | bool true if pass the check, api_not_allowed otherwise |
|
3970 | 3974 | */ |
3971 | 3975 | public static function protectSession($id, $checkSession = true) |
3972 | 3976 | { |
@@ -4074,7 +4078,7 @@ discard block |
||
4074 | 4078 | |
4075 | 4079 | /** |
4076 | 4080 | * @param $id |
4077 | - * @return bool |
|
4081 | + * @return null|boolean |
|
4078 | 4082 | */ |
4079 | 4083 | public static function protect_teacher_session_edit($id) |
4080 | 4084 | { |
@@ -4138,7 +4142,7 @@ discard block |
||
4138 | 4142 | * true: if the session exists it will be updated. |
4139 | 4143 | * false: if session exists a new session will be created adding a counter session1, session2, etc |
4140 | 4144 | * @param int $defaultUserId |
4141 | - * @param mixed $logger |
|
4145 | + * @param Logger $logger |
|
4142 | 4146 | * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will |
4143 | 4147 | * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id') |
4144 | 4148 | * @param string $extraFieldId |
@@ -5441,7 +5445,6 @@ discard block |
||
5441 | 5445 | * @param string $lastConnectionDate |
5442 | 5446 | * @param array $sessionIdList |
5443 | 5447 | * @param array $studentIdList |
5444 | - * @param int $userStatus STUDENT|COURSEMANAGER constants |
|
5445 | 5448 | * |
5446 | 5449 | * @return array|int |
5447 | 5450 | */ |
@@ -5593,7 +5596,7 @@ discard block |
||
5593 | 5596 | /** |
5594 | 5597 | * Get the list of course tools that have to be dealt with in case of |
5595 | 5598 | * registering any course to a session |
5596 | - * @return array The list of tools to be dealt with (literal names) |
|
5599 | + * @return string[] The list of tools to be dealt with (literal names) |
|
5597 | 5600 | */ |
5598 | 5601 | public static function getCourseToolToBeManaged() |
5599 | 5602 | { |
@@ -5607,7 +5610,7 @@ discard block |
||
5607 | 5610 | * Calls the methods bound to each tool when a course is registered into a session |
5608 | 5611 | * @param int $sessionId |
5609 | 5612 | * @param int $courseId |
5610 | - * @return void |
|
5613 | + * @return boolean|null |
|
5611 | 5614 | */ |
5612 | 5615 | public static function installCourse($sessionId, $courseId) |
5613 | 5616 | { |
@@ -6247,6 +6250,7 @@ discard block |
||
6247 | 6250 | * @param int $categoryId The internal ID of the session category |
6248 | 6251 | * @param string $target Value to search for in the session field values |
6249 | 6252 | * @param array $extraFields A list of fields to be scanned and returned |
6253 | + * @param DateTime $publicationDate |
|
6250 | 6254 | * @return mixed |
6251 | 6255 | */ |
6252 | 6256 | public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null) |
@@ -7577,7 +7581,7 @@ discard block |
||
7577 | 7581 | /** |
7578 | 7582 | * Get link to the admin page for this session |
7579 | 7583 | * @param int $id Session ID |
7580 | - * @return mixed URL to the admin page to manage the session, or false on error |
|
7584 | + * @return false|string URL to the admin page to manage the session, or false on error |
|
7581 | 7585 | */ |
7582 | 7586 | public static function getAdminPath($id) |
7583 | 7587 | { |
@@ -7594,7 +7598,7 @@ discard block |
||
7594 | 7598 | * If a course is provided, build the link to the course |
7595 | 7599 | * @param int $id Session ID |
7596 | 7600 | * @param int $courseId Course ID (optional) in case the link has to send straight to the course |
7597 | - * @return mixed URL to the page to use the session, or false on error |
|
7601 | + * @return false|string URL to the page to use the session, or false on error |
|
7598 | 7602 | */ |
7599 | 7603 | public static function getPath($id, $courseId = 0) |
7600 | 7604 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Deletes all survey invitations of a user |
48 | 48 | * @param int $user_id |
49 | 49 | * |
50 | - * @return boolean |
|
50 | + * @return false|null |
|
51 | 51 | * @assert ('') === false |
52 | 52 | */ |
53 | 53 | public static function delete_all_survey_invitations_by_user($user_id) |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Retrieves all the survey information |
105 | 105 | * |
106 | 106 | * @param integer $survey_id the id of the survey |
107 | - * @param boolean $shared this parameter determines if |
|
107 | + * @param integer $shared this parameter determines if |
|
108 | 108 | * we have to get the information of a survey from the central (shared) database or from the |
109 | 109 | * course database |
110 | 110 | * @param string course code optional |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | * This function deletes a survey (and also all the question in that survey |
572 | 572 | * |
573 | 573 | * @param int $survey_id id of the survey that has to be deleted |
574 | - * @return true |
|
574 | + * @return boolean |
|
575 | 575 | * |
576 | 576 | * @author Patrick Cool <[email protected]>, Ghent University |
577 | 577 | * @version January 2007 |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * |
757 | 757 | * @param int $survey_id id of the survey that has to be duplicated |
758 | 758 | * @param int $courseId id of the course which survey has to be duplicated |
759 | - * @return true |
|
759 | + * @return boolean |
|
760 | 760 | * |
761 | 761 | * @author Eric Marguin <[email protected]>, Elixir Interactive |
762 | 762 | * @version October 2007 |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | /** |
797 | 797 | * This function recalculates the number of people who have taken the survey (=filled at least one question) |
798 | 798 | * |
799 | - * @param int $survey_id the id of the survey somebody |
|
799 | + * @param int $survey_data the id of the survey somebody |
|
800 | 800 | * @return true |
801 | 801 | * |
802 | 802 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | * This function deletes a shared survey question from the main database and all its options |
1368 | 1368 | * |
1369 | 1369 | * @param int $question_id the id of the question |
1370 | - * @param int $shared |
|
1370 | + * @param integer $survey_id |
|
1371 | 1371 | * |
1372 | 1372 | * @todo delete all the options of this question |
1373 | 1373 | * |
@@ -1494,8 +1494,8 @@ discard block |
||
1494 | 1494 | * This function deletes all the options of the questions of a given survey |
1495 | 1495 | * This function is normally only called when a survey is deleted |
1496 | 1496 | * |
1497 | - * @param $survey_id the id of the survey that has to be deleted |
|
1498 | - * @return true |
|
1497 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1498 | + * @return boolean |
|
1499 | 1499 | * |
1500 | 1500 | * @author Patrick Cool <[email protected]>, Ghent University |
1501 | 1501 | * @version January 2007 |
@@ -1562,8 +1562,8 @@ discard block |
||
1562 | 1562 | * This function deletes all the answers anyone has given on this survey |
1563 | 1563 | * This function is normally only called when a survey is deleted |
1564 | 1564 | * |
1565 | - * @param $survey_id the id of the survey that has to be deleted |
|
1566 | - * @return true |
|
1565 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1566 | + * @return boolean |
|
1567 | 1567 | * |
1568 | 1568 | * @todo write the function |
1569 | 1569 | * |
@@ -1838,7 +1838,7 @@ discard block |
||
1838 | 1838 | /** |
1839 | 1839 | * This function checks the parameters that are used in this page |
1840 | 1840 | * |
1841 | - * @return string The header, an error and the footer if any parameter fails, else it returns true |
|
1841 | + * @return null|boolean The header, an error and the footer if any parameter fails, else it returns true |
|
1842 | 1842 | * @author Patrick Cool <[email protected]>, Ghent University |
1843 | 1843 | * @version February 2007 |
1844 | 1844 | */ |
@@ -2389,6 +2389,7 @@ discard block |
||
2389 | 2389 | * Display score data about a survey question |
2390 | 2390 | * @param array Question info |
2391 | 2391 | * @param integer The offset of results shown |
2392 | + * @param integer $offset |
|
2392 | 2393 | * @return void (direct output) |
2393 | 2394 | */ |
2394 | 2395 | public static function display_question_report_score($survey_data, $question, $offset) |
@@ -3024,7 +3025,7 @@ discard block |
||
3024 | 3025 | * Quite similar to display_complete_report(), returns an HTML string |
3025 | 3026 | * that can be used in a csv file |
3026 | 3027 | * @todo consider merging this function with display_complete_report |
3027 | - * @return string The contents of a csv file |
|
3028 | + * @return false|null The contents of a csv file |
|
3028 | 3029 | * @author Patrick Cool <[email protected]>, Ghent University |
3029 | 3030 | * @version February 2007 |
3030 | 3031 | */ |
@@ -3246,7 +3247,7 @@ discard block |
||
3246 | 3247 | * @param array User's answers |
3247 | 3248 | * @param mixed User ID or user details as string - Used as a string in the result string |
3248 | 3249 | * @param boolean Whether to display user fields or not |
3249 | - * @return string One line of the csv file |
|
3250 | + * @return string[] One line of the csv file |
|
3250 | 3251 | */ |
3251 | 3252 | public static function export_complete_report_row_xls( |
3252 | 3253 | $survey_data, |
@@ -3552,6 +3553,7 @@ discard block |
||
3552 | 3553 | * |
3553 | 3554 | * @param integer Survey ID |
3554 | 3555 | * @param integer Question ID |
3556 | + * @param integer $survey_id |
|
3555 | 3557 | * @return Array Array containing all answers of all users, grouped by user |
3556 | 3558 | * |
3557 | 3559 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -3846,7 +3848,7 @@ discard block |
||
3846 | 3848 | |
3847 | 3849 | /** |
3848 | 3850 | * @param $params |
3849 | - * @return bool|int |
|
3851 | + * @return false|string |
|
3850 | 3852 | */ |
3851 | 3853 | public static function save_invitation($params) |
3852 | 3854 | { |
@@ -3900,6 +3902,7 @@ discard block |
||
3900 | 3902 | * |
3901 | 3903 | * @param int invitedUser - the userId (course user) or emailaddress of additional user |
3902 | 3904 | * $param string $invitation_code - the unique invitation code for the URL |
3905 | + * @param string|null $invitation_text |
|
3903 | 3906 | * @return void |
3904 | 3907 | */ |
3905 | 3908 | public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text) |
@@ -4794,7 +4797,7 @@ discard block |
||
4794 | 4797 | * @author Isaac Flores Paz <[email protected]> |
4795 | 4798 | * @param int $user_id - User ID |
4796 | 4799 | * @param string $survey_code |
4797 | - * @param int $user_id_answer - User in survey answer table (user id or anonymus) |
|
4800 | + * @param int $user_answer - User in survey answer table (user id or anonymus) |
|
4798 | 4801 | * |
4799 | 4802 | * @return boolean |
4800 | 4803 | */ |