@@ -124,7 +124,7 @@ |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param $variable |
|
127 | + * @param string $variable |
|
128 | 128 | * @return mixed |
129 | 129 | */ |
130 | 130 | public function getConfigurationValue($variable) |
@@ -204,7 +204,6 @@ discard block |
||
204 | 204 | * lock = the user can no longer use this account |
205 | 205 | * @author Patrick Cool <[email protected]>, Ghent University |
206 | 206 | * @param int $active the current state of the account |
207 | - * @param int $user_id The user id |
|
208 | 207 | * @param string $url_params |
209 | 208 | * @return string Some HTML-code with the lock/unlock button |
210 | 209 | */ |
@@ -236,7 +235,7 @@ discard block |
||
236 | 235 | * @author Patrick Cool <[email protected]>, Ghent University |
237 | 236 | * @param int $status, do we want to lock the user ($status=lock) or unlock it ($status=unlock) |
238 | 237 | * @param int $user_id The user id |
239 | - * @return language variable |
|
238 | + * @return string|null variable |
|
240 | 239 | */ |
241 | 240 | function lock_unlock_user($status, $user_id) { |
242 | 241 | $user_table = Database :: get_main_table(TABLE_MAIN_USER); |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | * display the edit and delete icons in the sortable table |
908 | 908 | * |
909 | 909 | * @param integer $id the id of the template |
910 | - * @return html code for the link to edit and delete the template |
|
910 | + * @return string code for the link to edit and delete the template |
|
911 | 911 | * |
912 | 912 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
913 | 913 | * @version August 2008 |
@@ -923,7 +923,7 @@ discard block |
||
923 | 923 | * Display the image of the template in the sortable table |
924 | 924 | * |
925 | 925 | * @param string $image the image |
926 | - * @return html code for the image |
|
926 | + * @return string code for the image |
|
927 | 927 | * |
928 | 928 | * @author Patrick Cool <[email protected]>, Ghent University, Belgium |
929 | 929 | * @version August 2008 |
@@ -1120,7 +1120,7 @@ discard block |
||
1120 | 1120 | /** |
1121 | 1121 | * Returns an array containing the list of options used to populate the gradebook_number_decimals variable |
1122 | 1122 | * This function is called through a call_user_func() in the generate_settings_form function. |
1123 | - * @return array List of gradebook_number_decimals options |
|
1123 | + * @return string[] List of gradebook_number_decimals options |
|
1124 | 1124 | * |
1125 | 1125 | * @author Guillaume Viguier <[email protected]> |
1126 | 1126 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @param string ISO code (fr_FR, ...) |
29 | 29 | * @param int Whether the sublanguage is published (0=unpublished, 1=published) |
30 | 30 | * @param int ID del idioma padre |
31 | - * @return int New sub language ID or false on error |
|
31 | + * @return false|string New sub language ID or false on error |
|
32 | 32 | */ |
33 | 33 | function add_sub_language ($original_name,$english_name,$isocode,$sublanguage_available,$parent_id) { |
34 | 34 | $tbl_admin_languages = Database :: get_main_table(TABLE_MAIN_LANGUAGE); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Update users from the imported data |
130 | 130 | * @param array $users List of users |
131 | - * @return void |
|
131 | + * @return false|null |
|
132 | 132 | * @uses global variable $inserted_in_course, which returns the list of courses the user was inserted in |
133 | 133 | */ |
134 | 134 |
@@ -206,7 +206,7 @@ |
||
206 | 206 | |
207 | 207 | /** |
208 | 208 | * Restores an attendance entry and fallback to attendances rendering |
209 | - * @param int $attendanceId |
|
209 | + * @param int $attendance_id |
|
210 | 210 | */ |
211 | 211 | public function attendance_restore($attendance_id) |
212 | 212 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | require_once api_get_path(SYS_PATH).'main/auth/external_login/functions.inc.php'; |
11 | 11 | |
12 | 12 | /** |
13 | -* @return true if cas is configured |
|
13 | +* @return boolean if cas is configured |
|
14 | 14 | * |
15 | 15 | **/ |
16 | 16 | function cas_configured() { |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | /** |
517 | 517 | * Logs a string in debug mode. |
518 | 518 | * |
519 | - * @param $str the string to write |
|
519 | + * @param string $str the string to write |
|
520 | 520 | * |
521 | 521 | * @private |
522 | 522 | */ |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | * This method is used by interface methods to print an error and where the function |
538 | 538 | * was originally called from. |
539 | 539 | * |
540 | - * @param $msg the message to print |
|
540 | + * @param string $msg the message to print |
|
541 | 541 | * |
542 | 542 | * @private |
543 | 543 | */ |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | /** |
665 | 665 | * This method returns the phpCAS version. |
666 | 666 | * |
667 | - * @return the phpCAS version. |
|
667 | + * @return string phpCAS version. |
|
668 | 668 | */ |
669 | 669 | function getVersion() { |
670 | 670 | return PHPCAS_VERSION; |
@@ -1070,7 +1070,7 @@ discard block |
||
1070 | 1070 | * @warning should not be called only after phpCAS::forceAuthentication() |
1071 | 1071 | * or phpCAS::checkAuthentication(). |
1072 | 1072 | * |
1073 | - * @return the login name of the authenticated user |
|
1073 | + * @return string login name of the authenticated user |
|
1074 | 1074 | */ |
1075 | 1075 | function getUser() { |
1076 | 1076 | global $PHPCAS_CLIENT, $PHPCAS_AUTH_CHECK_CALL; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * Used by CASClient::PrintHTMLHeader() and CASClient::printHTMLFooter(). |
76 | 76 | * |
77 | - * @param $str the string to filter and output |
|
77 | + * @param string $str the string to filter and output |
|
78 | 78 | * |
79 | 79 | * @private |
80 | 80 | */ |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | /** |
188 | 188 | * This method returns the language used by phpCAS. |
189 | 189 | * |
190 | - * @return a string representing the language |
|
190 | + * @return string string representing the language |
|
191 | 191 | * |
192 | 192 | * @private |
193 | 193 | */ |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * This method returns a string depending on the language. |
214 | 214 | * |
215 | - * @param $str the index of the string in $_string. |
|
215 | + * @param integer $str the index of the string in $_string. |
|
216 | 216 | * |
217 | 217 | * @return the string corresponding to $index in $string. |
218 | 218 | * |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * This method is used to set the language used by phpCAS. |
234 | 234 | * @note Can be called only once. |
235 | 235 | * |
236 | - * @param $lang a string representing the language. |
|
236 | + * @param string $lang a string representing the language. |
|
237 | 237 | * |
238 | 238 | * @public |
239 | 239 | * @sa CAS_LANG_FRENCH, CAS_LANG_ENGLISH |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | /** |
422 | 422 | * This method is used to retrieve the service validating URL of the CAS server. |
423 | - * @return a URL. |
|
423 | + * @return string URL. |
|
424 | 424 | * @private |
425 | 425 | */ |
426 | 426 | function getServerServiceValidateURL() |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | } |
442 | 442 | /** |
443 | 443 | * This method is used to retrieve the SAML validating URL of the CAS server. |
444 | - * @return a URL. |
|
444 | + * @return string URL. |
|
445 | 445 | * @private |
446 | 446 | */ |
447 | 447 | function getServerSamlValidateURL() |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | } |
461 | 461 | /** |
462 | 462 | * This method is used to retrieve the proxy validating URL of the CAS server. |
463 | - * @return a URL. |
|
463 | + * @return string URL. |
|
464 | 464 | * @private |
465 | 465 | */ |
466 | 466 | function getServerProxyValidateURL() |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | |
542 | 542 | /** |
543 | 543 | * This method checks to see if the request is secured via HTTPS |
544 | - * @return true if https, false otherwise |
|
544 | + * @return boolean if https, false otherwise |
|
545 | 545 | * @private |
546 | 546 | */ |
547 | 547 | function isHttps() { |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | * CASClient constructor. |
562 | 562 | * |
563 | 563 | * @param $server_version the version of the CAS server |
564 | - * @param $proxy TRUE if the CAS client is a CAS proxy, FALSE otherwise |
|
564 | + * @param boolean $proxy TRUE if the CAS client is a CAS proxy, FALSE otherwise |
|
565 | 565 | * @param $server_hostname the hostname of the CAS server |
566 | 566 | * @param $server_port the port the CAS server is running on |
567 | 567 | * @param $server_uri the URI the CAS server is responding on |
@@ -759,7 +759,7 @@ discard block |
||
759 | 759 | * @warning should be called only after CASClient::forceAuthentication() or |
760 | 760 | * CASClient::isAuthenticated(), otherwise halt with an error. |
761 | 761 | * |
762 | - * @return the login name of the authenticated user |
|
762 | + * @return string login name of the authenticated user |
|
763 | 763 | */ |
764 | 764 | function getUser() |
765 | 765 | { |
@@ -831,7 +831,7 @@ discard block |
||
831 | 831 | /** |
832 | 832 | * This method is called to be sure that the user is authenticated. When not |
833 | 833 | * authenticated, halt by redirecting to the CAS server; otherwise return TRUE. |
834 | - * @return TRUE when the user is authenticated; otherwise halt. |
|
834 | + * @return boolean when the user is authenticated; otherwise halt. |
|
835 | 835 | * @public |
836 | 836 | */ |
837 | 837 | function forceAuthentication() |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | |
878 | 878 | /** |
879 | 879 | * This method is called to check whether the user is authenticated or not. |
880 | - * @return TRUE when the user is authenticated, FALSE otherwise. |
|
880 | + * @return boolean when the user is authenticated, FALSE otherwise. |
|
881 | 881 | * @public |
882 | 882 | */ |
883 | 883 | function checkAuthentication() |
@@ -933,7 +933,7 @@ discard block |
||
933 | 933 | * This method is called to check if the user is authenticated (previously or by |
934 | 934 | * tickets given in the URL). |
935 | 935 | * |
936 | - * @return TRUE when the user is authenticated. Also may redirect to the same URL without the ticket. |
|
936 | + * @return boolean when the user is authenticated. Also may redirect to the same URL without the ticket. |
|
937 | 937 | * |
938 | 938 | * @public |
939 | 939 | */ |
@@ -1003,7 +1003,7 @@ discard block |
||
1003 | 1003 | |
1004 | 1004 | /** |
1005 | 1005 | * This method tells if the current session is authenticated. |
1006 | - * @return true if authenticated based soley on $_SESSION variable |
|
1006 | + * @return boolean if authenticated based soley on $_SESSION variable |
|
1007 | 1007 | * @since 0.4.22 by Brendan Arnold |
1008 | 1008 | */ |
1009 | 1009 | function isSessionAuthenticated () |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | * |
1018 | 1018 | * @note This function switches to callback mode when needed. |
1019 | 1019 | * |
1020 | - * @return TRUE when the user has already been authenticated; FALSE otherwise. |
|
1020 | + * @return boolean when the user has already been authenticated; FALSE otherwise. |
|
1021 | 1021 | * |
1022 | 1022 | * @private |
1023 | 1023 | */ |
@@ -1129,7 +1129,7 @@ discard block |
||
1129 | 1129 | } |
1130 | 1130 | |
1131 | 1131 | /** |
1132 | - * @return true if the current request is a logout request. |
|
1132 | + * @return boolean if the current request is a logout request. |
|
1133 | 1133 | * @private |
1134 | 1134 | */ |
1135 | 1135 | function isLogoutRequest() { |
@@ -1241,7 +1241,7 @@ discard block |
||
1241 | 1241 | |
1242 | 1242 | /** |
1243 | 1243 | * This method returns the Service Ticket provided in the URL of the request. |
1244 | - * @return The service ticket. |
|
1244 | + * @return string service ticket. |
|
1245 | 1245 | * @private |
1246 | 1246 | */ |
1247 | 1247 | function getST() |
@@ -1257,7 +1257,7 @@ discard block |
||
1257 | 1257 | |
1258 | 1258 | /** |
1259 | 1259 | * This method tells if a Service Ticket was stored. |
1260 | - * @return TRUE if a Service Ticket has been stored. |
|
1260 | + * @return boolean if a Service Ticket has been stored. |
|
1261 | 1261 | * @private |
1262 | 1262 | */ |
1263 | 1263 | function hasST() |
@@ -1330,7 +1330,7 @@ discard block |
||
1330 | 1330 | * $text_reponse and $tree_response on success. These parameters are used later |
1331 | 1331 | * by CASClient::validatePGT() for CAS proxies. |
1332 | 1332 | * Used for all CAS 1.0 validations |
1333 | - * @param $validate_url the URL of the request to the CAS server. |
|
1333 | + * @param string $validate_url the URL of the request to the CAS server. |
|
1334 | 1334 | * @param $text_response the response of the CAS server, as is (XML text). |
1335 | 1335 | * @param $tree_response the response of the CAS server, as a DOM XML tree. |
1336 | 1336 | * |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | * $text_reponse and $tree_response on success. These parameters are used later |
1461 | 1461 | * by CASClient::validatePGT() for CAS proxies. |
1462 | 1462 | * |
1463 | - * @param $validate_url the URL of the request to the CAS server. |
|
1463 | + * @param string $validate_url the URL of the request to the CAS server. |
|
1464 | 1464 | * @param $text_response the response of the CAS server, as is (XML text). |
1465 | 1465 | * @param $tree_response the response of the CAS server, as a DOM XML tree. |
1466 | 1466 | * |
@@ -1648,7 +1648,7 @@ discard block |
||
1648 | 1648 | |
1649 | 1649 | /** |
1650 | 1650 | * This method returns the Proxy Granting Ticket given by the CAS server. |
1651 | - * @return The Proxy Granting Ticket. |
|
1651 | + * @return string Proxy Granting Ticket. |
|
1652 | 1652 | * @private |
1653 | 1653 | */ |
1654 | 1654 | function getPGT() |
@@ -1664,7 +1664,7 @@ discard block |
||
1664 | 1664 | |
1665 | 1665 | /** |
1666 | 1666 | * This method tells if a Proxy Granting Ticket was stored. |
1667 | - * @return TRUE if a Proxy Granting Ticket has been stored. |
|
1667 | + * @return boolean if a Proxy Granting Ticket has been stored. |
|
1668 | 1668 | * @private |
1669 | 1669 | */ |
1670 | 1670 | function hasPGT() |
@@ -1697,7 +1697,7 @@ discard block |
||
1697 | 1697 | /** |
1698 | 1698 | * This method sets/unsets callback mode. |
1699 | 1699 | * |
1700 | - * @param $callback_mode TRUE to set callback mode, FALSE otherwise. |
|
1700 | + * @param boolean $callback_mode TRUE to set callback mode, FALSE otherwise. |
|
1701 | 1701 | * |
1702 | 1702 | * @private |
1703 | 1703 | */ |
@@ -1710,7 +1710,7 @@ discard block |
||
1710 | 1710 | * This method returns TRUE when the CAs client is running i callback mode, |
1711 | 1711 | * FALSE otherwise. |
1712 | 1712 | * |
1713 | - * @return A boolean. |
|
1713 | + * @return boolean boolean. |
|
1714 | 1714 | * |
1715 | 1715 | * @private |
1716 | 1716 | */ |
@@ -1734,7 +1734,7 @@ discard block |
||
1734 | 1734 | * fact the URL of the current request without any CGI parameter, except if |
1735 | 1735 | * phpCAS::setFixedCallbackURL() was used). |
1736 | 1736 | * |
1737 | - * @return The callback URL |
|
1737 | + * @return string callback URL |
|
1738 | 1738 | * |
1739 | 1739 | * @private |
1740 | 1740 | */ |
@@ -1777,6 +1777,7 @@ discard block |
||
1777 | 1777 | * This method sets the callback url. |
1778 | 1778 | * |
1779 | 1779 | * @param $callback_url url to set callback |
1780 | + * @param string $url |
|
1780 | 1781 | * |
1781 | 1782 | * @private |
1782 | 1783 | */ |
@@ -1861,7 +1862,7 @@ discard block |
||
1861 | 1862 | /** |
1862 | 1863 | * This method reads a PGT from its Iou and deletes the corresponding storage entry. |
1863 | 1864 | * |
1864 | - * @param $pgt_iou the PGT Iou |
|
1865 | + * @param string $pgt_iou the PGT Iou |
|
1865 | 1866 | * |
1866 | 1867 | * @return The PGT corresponding to the Iou, FALSE when not found. |
1867 | 1868 | * |
@@ -1991,7 +1992,7 @@ discard block |
||
1991 | 1992 | * @param $err_code an error code (PHPCAS_SERVICE_OK on success). |
1992 | 1993 | * @param $err_msg an error message (empty on success). |
1993 | 1994 | * |
1994 | - * @return a Proxy Ticket, or FALSE on error. |
|
1995 | + * @return false|string Proxy Ticket, or FALSE on error. |
|
1995 | 1996 | * |
1996 | 1997 | * @private |
1997 | 1998 | */ |
@@ -2093,14 +2094,14 @@ discard block |
||
2093 | 2094 | /** |
2094 | 2095 | * This method is used to acces a remote URL. |
2095 | 2096 | * |
2096 | - * @param $url the URL to access. |
|
2097 | + * @param string $url the URL to access. |
|
2097 | 2098 | * @param $cookies an array containing cookies strings such as 'name=val' |
2098 | 2099 | * @param $headers an array containing the HTTP header lines of the response |
2099 | 2100 | * (an empty array on failure). |
2100 | 2101 | * @param $body the body of the response, as a string (empty on failure). |
2101 | 2102 | * @param $err_msg an error message, filled on failure. |
2102 | 2103 | * |
2103 | - * @return TRUE on success, FALSE otherwise (in this later case, $err_msg |
|
2104 | + * @return boolean on success, FALSE otherwise (in this later case, $err_msg |
|
2104 | 2105 | * contains an error message). |
2105 | 2106 | * |
2106 | 2107 | * @private |
@@ -2197,7 +2198,7 @@ discard block |
||
2197 | 2198 | /** |
2198 | 2199 | * This method is used to build the SAML POST body sent to /samlValidate URL. |
2199 | 2200 | * |
2200 | - * @return the SOAP-encased SAMLP artifact (the ticket). |
|
2201 | + * @return string SOAP-encased SAMLP artifact (the ticket). |
|
2201 | 2202 | * |
2202 | 2203 | * @private |
2203 | 2204 | */ |
@@ -2235,7 +2236,7 @@ discard block |
||
2235 | 2236 | * @param $output the output of the service (also used to give an error |
2236 | 2237 | * message on failure). |
2237 | 2238 | * |
2238 | - * @return TRUE on success, FALSE otherwise (in this later case, $err_code |
|
2239 | + * @return boolean on success, FALSE otherwise (in this later case, $err_code |
|
2239 | 2240 | * gives the reason why it failed and $output contains an error message). |
2240 | 2241 | * |
2241 | 2242 | * @public |
@@ -2382,7 +2383,7 @@ discard block |
||
2382 | 2383 | |
2383 | 2384 | /** |
2384 | 2385 | * This method returns the Proxy Ticket provided in the URL of the request. |
2385 | - * @return The proxy ticket. |
|
2386 | + * @return string proxy ticket. |
|
2386 | 2387 | * @private |
2387 | 2388 | */ |
2388 | 2389 | function getPT() |
@@ -2401,14 +2402,14 @@ discard block |
||
2401 | 2402 | |
2402 | 2403 | /** |
2403 | 2404 | * This method tells if a Proxy Ticket was stored. |
2404 | - * @return TRUE if a Proxy Ticket has been stored. |
|
2405 | + * @return boolean if a Proxy Ticket has been stored. |
|
2405 | 2406 | * @private |
2406 | 2407 | */ |
2407 | 2408 | function hasPT() |
2408 | 2409 | { return !empty($this->_pt); } |
2409 | 2410 | /** |
2410 | 2411 | * This method returns the SAML Ticket provided in the URL of the request. |
2411 | - * @return The SAML ticket. |
|
2412 | + * @return string SAML ticket. |
|
2412 | 2413 | * @private |
2413 | 2414 | */ |
2414 | 2415 | function getSA() |
@@ -2424,7 +2425,7 @@ discard block |
||
2424 | 2425 | |
2425 | 2426 | /** |
2426 | 2427 | * This method tells if a SAML Ticket was stored. |
2427 | - * @return TRUE if a SAML Ticket has been stored. |
|
2428 | + * @return boolean if a SAML Ticket has been stored. |
|
2428 | 2429 | * @private |
2429 | 2430 | */ |
2430 | 2431 | function hasSA() |
@@ -2442,6 +2443,7 @@ discard block |
||
2442 | 2443 | /** |
2443 | 2444 | * This method is used to validate a ST or PT; halt on failure |
2444 | 2445 | * Used for all CAS 2.0 validations |
2446 | + * @param string $validate_url |
|
2445 | 2447 | * @return bool TRUE when successfull, halt otherwise by calling CASClient::authError(). |
2446 | 2448 | * |
2447 | 2449 | * @private |
@@ -2556,7 +2558,7 @@ discard block |
||
2556 | 2558 | * This method returns the URL of the current request (without any ticket |
2557 | 2559 | * CGI parameter). |
2558 | 2560 | * |
2559 | - * @return The URL |
|
2561 | + * @return string URL |
|
2560 | 2562 | * |
2561 | 2563 | * @private |
2562 | 2564 | */ |
@@ -2634,7 +2636,7 @@ discard block |
||
2634 | 2636 | /** |
2635 | 2637 | * This method sets the URL of the current request |
2636 | 2638 | * |
2637 | - * @param $url url to set for service |
|
2639 | + * @param string $url url to set for service |
|
2638 | 2640 | * |
2639 | 2641 | * @private |
2640 | 2642 | */ |
@@ -2649,9 +2651,9 @@ discard block |
||
2649 | 2651 | /** |
2650 | 2652 | * This method is used to print the HTML output when the user was not authenticated. |
2651 | 2653 | * |
2652 | - * @param $failure the failure that occured |
|
2654 | + * @param string $failure the failure that occured |
|
2653 | 2655 | * @param $cas_url the URL the CAS server was asked for |
2654 | - * @param $no_response the response from the CAS server (other |
|
2656 | + * @param boolean $no_response the response from the CAS server (other |
|
2655 | 2657 | * parameters are ignored if TRUE) |
2656 | 2658 | * @param $bad_response bad response from the CAS server ($err_code |
2657 | 2659 | * and $err_msg ignored if TRUE) |