@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Instance the plugin |
38 | 38 | * @staticvar null $result |
39 | - * @return Tour |
|
39 | + * @return AzureActiveDirectory |
|
40 | 40 | */ |
41 | 41 | static function create() |
42 | 42 | { |
@@ -477,6 +477,7 @@ discard block |
||
477 | 477 | * |
478 | 478 | * Get link info |
479 | 479 | * @param int link id |
480 | + * @param integer $id |
|
480 | 481 | * @return array link info |
481 | 482 | * |
482 | 483 | **/ |
@@ -1061,7 +1062,9 @@ discard block |
||
1061 | 1062 | /** |
1062 | 1063 | * Displays the edit, delete and move icons |
1063 | 1064 | * @param int Category ID |
1064 | - * @return void |
|
1065 | + * @param integer $currentCategory |
|
1066 | + * @param integer $countCategories |
|
1067 | + * @return string |
|
1065 | 1068 | * @author Patrick Cool <[email protected]>, Ghent University |
1066 | 1069 | */ |
1067 | 1070 | public static function showCategoryAdminTools($category, $currentCategory, $countCategories) |
@@ -1225,6 +1228,7 @@ discard block |
||
1225 | 1228 | /** |
1226 | 1229 | * CSV file import functions |
1227 | 1230 | * @author René Haentjens , Ghent University |
1231 | + * @param string $catname |
|
1228 | 1232 | */ |
1229 | 1233 | public static function get_cat($catname) |
1230 | 1234 | { |
@@ -1264,6 +1268,11 @@ discard block |
||
1264 | 1268 | /** |
1265 | 1269 | * CSV file import functions |
1266 | 1270 | * @author René Haentjens , Ghent University |
1271 | + * @param string $url |
|
1272 | + * @param string $title |
|
1273 | + * @param string $description |
|
1274 | + * @param string $on_homepage |
|
1275 | + * @param string $hidden |
|
1267 | 1276 | */ |
1268 | 1277 | public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden) |
1269 | 1278 | { |
@@ -1622,7 +1631,6 @@ discard block |
||
1622 | 1631 | /** |
1623 | 1632 | * @param int $linkId |
1624 | 1633 | * @param $action |
1625 | - * @param null $urlview |
|
1626 | 1634 | * @param null $token |
1627 | 1635 | * @return FormValidator |
1628 | 1636 | */ |
@@ -242,6 +242,8 @@ discard block |
||
242 | 242 | /** |
243 | 243 | * get thematic list |
244 | 244 | * @param int Thematic id (optional), get list by id |
245 | + * @param integer $thematic_id |
|
246 | + * @param integer $session_id |
|
245 | 247 | * @return array Thematic data |
246 | 248 | */ |
247 | 249 | public static function get_thematic_list( |
@@ -798,6 +800,7 @@ discard block |
||
798 | 800 | /** |
799 | 801 | * delete thematic advance |
800 | 802 | * @param int Thematic advance id |
803 | + * @param integer $thematic_advance_id |
|
801 | 804 | * @return int Affected rows |
802 | 805 | */ |
803 | 806 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1114,6 +1117,7 @@ discard block |
||
1114 | 1117 | /** |
1115 | 1118 | * update done thematic advances from thematic details interface |
1116 | 1119 | * @param int Thematic id |
1120 | + * @param integer $thematic_advance_id |
|
1117 | 1121 | * @return int Affected rows |
1118 | 1122 | */ |
1119 | 1123 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1296,6 +1300,7 @@ discard block |
||
1296 | 1300 | * Get total average of thematic advances |
1297 | 1301 | * @param string Course code (optional) |
1298 | 1302 | * @param int Session id (optional) |
1303 | + * @param integer $session_id |
|
1299 | 1304 | * @return float Average of thematic advances |
1300 | 1305 | */ |
1301 | 1306 | public function get_total_average_of_thematic_advances($course_code = null, $session_id = null) |
@@ -1433,7 +1438,7 @@ discard block |
||
1433 | 1438 | |
1434 | 1439 | /** |
1435 | 1440 | * get thematic id |
1436 | - * @return void |
|
1441 | + * @return integer |
|
1437 | 1442 | */ |
1438 | 1443 | public function get_thematic_id() |
1439 | 1444 | { |
@@ -1442,7 +1447,7 @@ discard block |
||
1442 | 1447 | |
1443 | 1448 | /** |
1444 | 1449 | * Get thematic plan titles by default |
1445 | - * @return array |
|
1450 | + * @return string[] |
|
1446 | 1451 | */ |
1447 | 1452 | public function get_default_thematic_plan_title() |
1448 | 1453 | { |
@@ -1459,7 +1464,7 @@ discard block |
||
1459 | 1464 | |
1460 | 1465 | /** |
1461 | 1466 | * Get thematic plan icons by default |
1462 | - * @return array |
|
1467 | + * @return string[] |
|
1463 | 1468 | */ |
1464 | 1469 | public function get_default_thematic_plan_icon() |
1465 | 1470 | { |
@@ -1476,7 +1481,7 @@ discard block |
||
1476 | 1481 | |
1477 | 1482 | /** |
1478 | 1483 | * Get questions by default for help |
1479 | - * @return array |
|
1484 | + * @return string[] |
|
1480 | 1485 | */ |
1481 | 1486 | public function get_default_question() |
1482 | 1487 | { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param array $file |
176 | - * @return bool|string |
|
176 | + * @return string|false |
|
177 | 177 | */ |
178 | 178 | public static function import_uploaded_file($file) |
179 | 179 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return bool |
|
41 | + * @return false|null |
|
42 | 42 | */ |
43 | 43 | public function create_user_folder() |
44 | 44 | { |
@@ -1212,6 +1212,7 @@ |
||
1212 | 1212 | * Restore a forum-post |
1213 | 1213 | * @TODO Restore tree-structure of posts. For example: attachments to posts. |
1214 | 1214 | * @param false|string $topic_id |
1215 | + * @param false|string $forum_id |
|
1215 | 1216 | */ |
1216 | 1217 | public function restore_post($id, $topic_id, $forum_id, $sessionId = 0) |
1217 | 1218 | { |
@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Useful finder - experimental akelos like only use in notification.lib.php send function |
28 | + * @param string $type |
|
28 | 29 | */ |
29 | 30 | public function find($type, $options = null) |
30 | 31 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * |
39 | - * @return StaticPlugin |
|
39 | + * @return BuyCoursesPlugin |
|
40 | 40 | */ |
41 | 41 | static function create() |
42 | 42 | { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * Save a transfer account information |
254 | 254 | * @param array $params The transfer account |
255 | - * @return int Rows affected. Otherwise return false |
|
255 | + * @return false|string Rows affected. Otherwise return false |
|
256 | 256 | */ |
257 | 257 | public function saveTransferAccount($params) |
258 | 258 | { |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | /** |
665 | 665 | * Get session info |
666 | 666 | * @param array $sessionId The session ID |
667 | - * @return array |
|
667 | + * @return Session |
|
668 | 668 | */ |
669 | 669 | public function getSessionInfo($sessionId) |
670 | 670 | { |
@@ -757,7 +757,7 @@ discard block |
||
757 | 757 | * Register a sale |
758 | 758 | * @param int $itemId The product ID |
759 | 759 | * @param int $paymentType The payment type |
760 | - * @return boolean |
|
760 | + * @return false|string |
|
761 | 761 | */ |
762 | 762 | public function registerSale($itemId, $paymentType) |
763 | 763 | { |
@@ -939,7 +939,7 @@ discard block |
||
939 | 939 | |
940 | 940 | /** |
941 | 941 | * Get payment types |
942 | - * @return array |
|
942 | + * @return string[] |
|
943 | 943 | */ |
944 | 944 | public function getPaymentTypes() |
945 | 945 | { |
@@ -977,7 +977,7 @@ discard block |
||
977 | 977 | |
978 | 978 | /** |
979 | 979 | * Get the statuses for sales |
980 | - * @return array |
|
980 | + * @return string[] |
|
981 | 981 | */ |
982 | 982 | public function getSaleStatuses() |
983 | 983 | { |
@@ -990,7 +990,7 @@ discard block |
||
990 | 990 | |
991 | 991 | /** |
992 | 992 | * Get the statuses for Payouts |
993 | - * @return array |
|
993 | + * @return string[] |
|
994 | 994 | */ |
995 | 995 | public function getPayoutStatuses() |
996 | 996 | { |
@@ -1003,7 +1003,7 @@ discard block |
||
1003 | 1003 | |
1004 | 1004 | /** |
1005 | 1005 | * Get the list of product types |
1006 | - * @return array |
|
1006 | + * @return string[] |
|
1007 | 1007 | */ |
1008 | 1008 | public function getProductTypes() |
1009 | 1009 | { |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | /** |
1385 | 1385 | * Register a item |
1386 | 1386 | * @param array $itemData The item data |
1387 | - * @return int The item ID. Otherwise return false |
|
1387 | + * @return false|string The item ID. Otherwise return false |
|
1388 | 1388 | */ |
1389 | 1389 | public function registerItem(array $itemData) |
1390 | 1390 | { |
@@ -1542,7 +1542,7 @@ discard block |
||
1542 | 1542 | /** |
1543 | 1543 | * Verify if the beneficiary have a paypal account |
1544 | 1544 | * @param int $userId |
1545 | - * @return true if the user have a paypal account, false if not |
|
1545 | + * @return boolean if the user have a paypal account, false if not |
|
1546 | 1546 | */ |
1547 | 1547 | public function verifyPaypalAccountByBeneficiary($userId) |
1548 | 1548 | { |
@@ -242,6 +242,9 @@ discard block |
||
242 | 242 | return $hmac; |
243 | 243 | } |
244 | 244 | |
245 | +/** |
|
246 | + * @param string|false $text |
|
247 | + */ |
|
245 | 248 | function _openid_sha1($text) { |
246 | 249 | $hex = sha1($text); |
247 | 250 | $raw = ''; |
@@ -404,6 +407,10 @@ discard block |
||
404 | 407 | */ |
405 | 408 | if (!function_exists('bcpowmod')) { |
406 | 409 | |
410 | + /** |
|
411 | + * @param string $exp |
|
412 | + * @param string $mod |
|
413 | + */ |
|
407 | 414 | function bcpowmod($base, $exp, $mod) { |
408 | 415 | $square = bcmod($base, $mod); |
409 | 416 | $result = 1; |