@@ -907,7 +907,7 @@ discard block |
||
| 907 | 907 | /** |
| 908 | 908 | * Get pictureUri |
| 909 | 909 | * |
| 910 | - * @return Media |
|
| 910 | + * @return string |
|
| 911 | 911 | */ |
| 912 | 912 | public function getPictureUri() |
| 913 | 913 | { |
@@ -1284,7 +1284,7 @@ discard block |
||
| 1284 | 1284 | } |
| 1285 | 1285 | |
| 1286 | 1286 | /** |
| 1287 | - * @return Media |
|
| 1287 | + * @return string |
|
| 1288 | 1288 | */ |
| 1289 | 1289 | public function getAvatar() |
| 1290 | 1290 | { |
@@ -2051,7 +2051,7 @@ discard block |
||
| 2051 | 2051 | /** |
| 2052 | 2052 | * Returns the user roles |
| 2053 | 2053 | * |
| 2054 | - * @return array The roles |
|
| 2054 | + * @return string[] The roles |
|
| 2055 | 2055 | */ |
| 2056 | 2056 | public function getRoles() |
| 2057 | 2057 | { |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | /** |
| 996 | 996 | * Get pictureUri |
| 997 | 997 | * |
| 998 | - * @return Media |
|
| 998 | + * @return string |
|
| 999 | 999 | */ |
| 1000 | 1000 | public function getPictureUri() |
| 1001 | 1001 | { |
@@ -1303,7 +1303,7 @@ discard block |
||
| 1303 | 1303 | } |
| 1304 | 1304 | |
| 1305 | 1305 | /** |
| 1306 | - * @return Media |
|
| 1306 | + * @return string |
|
| 1307 | 1307 | */ |
| 1308 | 1308 | public function getAvatar() |
| 1309 | 1309 | { |
@@ -2078,7 +2078,7 @@ discard block |
||
| 2078 | 2078 | /** |
| 2079 | 2079 | * Returns the user roles |
| 2080 | 2080 | * |
| 2081 | - * @return array The roles |
|
| 2081 | + * @return string[] The roles |
|
| 2082 | 2082 | */ |
| 2083 | 2083 | public function getRoles() |
| 2084 | 2084 | { |
@@ -2403,7 +2403,7 @@ discard block |
||
| 2403 | 2403 | /** |
| 2404 | 2404 | * Check if the user has the skill |
| 2405 | 2405 | * @param Skill $skill The skill |
| 2406 | - * @return boolean |
|
| 2406 | + * @return boolean|null |
|
| 2407 | 2407 | */ |
| 2408 | 2408 | public function hasSkill(Skill $skill) |
| 2409 | 2409 | { |
@@ -14,6 +14,9 @@ discard block |
||
| 14 | 14 | class Session implements \ArrayAccess |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $variable |
|
| 19 | + */ |
|
| 17 | 20 | static function read($variable, $default = null) |
| 18 | 21 | { |
| 19 | 22 | return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default; |
@@ -39,7 +42,7 @@ discard block |
||
| 39 | 42 | * Returns true if session has variable set up, false otherwise. |
| 40 | 43 | * |
| 41 | 44 | * @param string $variable |
| 42 | - * @return mixed value |
|
| 45 | + * @return boolean value |
|
| 43 | 46 | */ |
| 44 | 47 | static function has($variable) |
| 45 | 48 | { |
@@ -242,6 +242,9 @@ 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 string $course_code |
|
| 247 | + * @param integer $session_id |
|
| 245 | 248 | * @return array Thematic data |
| 246 | 249 | */ |
| 247 | 250 | public static function get_thematic_list( |
@@ -799,6 +802,7 @@ discard block |
||
| 799 | 802 | /** |
| 800 | 803 | * delete thematic advance |
| 801 | 804 | * @param int Thematic advance id |
| 805 | + * @param integer $thematic_advance_id |
|
| 802 | 806 | * @return int Affected rows |
| 803 | 807 | */ |
| 804 | 808 | public function thematic_advance_destroy($thematic_advance_id) |
@@ -1116,6 +1120,7 @@ discard block |
||
| 1116 | 1120 | /** |
| 1117 | 1121 | * update done thematic advances from thematic details interface |
| 1118 | 1122 | * @param int Thematic id |
| 1123 | + * @param integer $thematic_advance_id |
|
| 1119 | 1124 | * @return int Affected rows |
| 1120 | 1125 | */ |
| 1121 | 1126 | public function update_done_thematic_advances($thematic_advance_id) |
@@ -1343,6 +1348,7 @@ discard block |
||
| 1343 | 1348 | * Get average of advances by thematic |
| 1344 | 1349 | * @param int Thematic id |
| 1345 | 1350 | * @param string Course code (optional) |
| 1351 | + * @param string $course_code |
|
| 1346 | 1352 | * @return float Average of thematic advances |
| 1347 | 1353 | */ |
| 1348 | 1354 | public function get_average_of_advances_by_thematic($thematic_id, $course_code = null) |
@@ -1407,6 +1413,7 @@ discard block |
||
| 1407 | 1413 | * @param string Content |
| 1408 | 1414 | * @param string Date and time |
| 1409 | 1415 | * @param int Duration in hours |
| 1416 | + * @param integer $id |
|
| 1410 | 1417 | * @return void |
| 1411 | 1418 | */ |
| 1412 | 1419 | public function set_thematic_advance_attributes( |
@@ -1437,7 +1444,7 @@ discard block |
||
| 1437 | 1444 | |
| 1438 | 1445 | /** |
| 1439 | 1446 | * get thematic id |
| 1440 | - * @return void |
|
| 1447 | + * @return integer |
|
| 1441 | 1448 | */ |
| 1442 | 1449 | public function get_thematic_id() |
| 1443 | 1450 | { |
@@ -1446,7 +1453,7 @@ discard block |
||
| 1446 | 1453 | |
| 1447 | 1454 | /** |
| 1448 | 1455 | * Get thematic plan titles by default |
| 1449 | - * @return array |
|
| 1456 | + * @return string[] |
|
| 1450 | 1457 | */ |
| 1451 | 1458 | public function get_default_thematic_plan_title() |
| 1452 | 1459 | { |
@@ -1463,7 +1470,7 @@ discard block |
||
| 1463 | 1470 | |
| 1464 | 1471 | /** |
| 1465 | 1472 | * Get thematic plan icons by default |
| 1466 | - * @return array |
|
| 1473 | + * @return string[] |
|
| 1467 | 1474 | */ |
| 1468 | 1475 | public function get_default_thematic_plan_icon() |
| 1469 | 1476 | { |
@@ -1480,7 +1487,7 @@ discard block |
||
| 1480 | 1487 | |
| 1481 | 1488 | /** |
| 1482 | 1489 | * Get questions by default for help |
| 1483 | - * @return array |
|
| 1490 | + * @return string[] |
|
| 1484 | 1491 | */ |
| 1485 | 1492 | public function get_default_question() |
| 1486 | 1493 | { |
@@ -72,6 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Get actual array data |
| 75 | + * @param integer $count |
|
| 75 | 76 | * @return array 2-dimensional array - each array contains the elements: |
| 76 | 77 | * 0: eval/link object |
| 77 | 78 | * 1: item name |
@@ -285,7 +286,7 @@ discard block |
||
| 285 | 286 | |
| 286 | 287 | /** |
| 287 | 288 | * @param $item |
| 288 | - * @param $ignore_score_color |
|
| 289 | + * @param boolean $ignore_score_color |
|
| 289 | 290 | * @return string |
| 290 | 291 | */ |
| 291 | 292 | private function build_average_column($item, $ignore_score_color) |
@@ -306,7 +307,7 @@ discard block |
||
| 306 | 307 | |
| 307 | 308 | /** |
| 308 | 309 | * @param $item |
| 309 | - * @param $ignore_score_color |
|
| 310 | + * @param boolean $ignore_score_color |
|
| 310 | 311 | * @return string |
| 311 | 312 | */ |
| 312 | 313 | private function build_result_column($item, $ignore_score_color) |
@@ -323,7 +324,7 @@ discard block |
||
| 323 | 324 | |
| 324 | 325 | /** |
| 325 | 326 | * @param $item |
| 326 | - * @param $ignore_score_color |
|
| 327 | + * @param boolean $ignore_score_color |
|
| 327 | 328 | * @return string |
| 328 | 329 | */ |
| 329 | 330 | private function build_mask_column($item, $ignore_score_color) |
@@ -339,7 +340,7 @@ discard block |
||
| 339 | 340 | |
| 340 | 341 | /** |
| 341 | 342 | * @param $coursecode |
| 342 | - * @return mixed |
|
| 343 | + * @return string |
|
| 343 | 344 | */ |
| 344 | 345 | private function get_course_name_from_code_cached($coursecode) |
| 345 | 346 | { |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Class constructor |
| 23 | - * @param $username |
|
| 24 | - * @param $apiKey |
|
| 23 | + * @param string $username |
|
| 24 | + * @param string $apiKey |
|
| 25 | 25 | */ |
| 26 | 26 | protected function __construct($username, $apiKey) |
| 27 | 27 | { |
@@ -318,7 +318,6 @@ |
||
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
| 321 | - * @param int $courseId |
|
| 322 | 321 | * @return array |
| 323 | 322 | * @throws Exception |
| 324 | 323 | */ |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @return array |
|
| 48 | + * @return string[] |
|
| 49 | 49 | */ |
| 50 | 50 | public static function getFoldersToDelete() |
| 51 | 51 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @return array |
|
| 98 | + * @return string[] |
|
| 99 | 99 | */ |
| 100 | 100 | public static function getFilesToDelete() |
| 101 | 101 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Get the class instance |
| 27 | 27 | * @staticvar MsiLtiPlugin $result |
| 28 | - * @return MsiLtiPlugin |
|
| 28 | + * @return ImsLtiPlugin |
|
| 29 | 29 | */ |
| 30 | 30 | public static function create() |
| 31 | 31 | { |