@@ -65,6 +65,9 @@ |
||
65 | 65 | |
66 | 66 | /* FUNCTIONS */ |
67 | 67 | |
68 | +/** |
|
69 | + * @param string $name |
|
70 | + */ |
|
68 | 71 | function make_select_session_list($name, $sessions, $attr = array()) |
69 | 72 | { |
70 | 73 |
@@ -212,7 +212,7 @@ |
||
212 | 212 | * @param array $arr1 first array |
213 | 213 | * @param array $arr2 second array |
214 | 214 | * |
215 | - * @return array difference between the two arrays |
|
215 | + * @return string difference between the two arrays |
|
216 | 216 | */ |
217 | 217 | function diff($arr1, $arr2) |
218 | 218 | { |
@@ -735,7 +735,6 @@ |
||
735 | 735 | * lock = the user can no longer use this account |
736 | 736 | * @author Patrick Cool <[email protected]>, Ghent University |
737 | 737 | * @param int $active the current state of the account |
738 | - * @param int $user_id The user id |
|
739 | 738 | * @param string $urlParams |
740 | 739 | * |
741 | 740 | * @return string Some HTML-code with the lock/unlock button |
@@ -20,6 +20,9 @@ |
||
20 | 20 | |
21 | 21 | define('WS_ERROR_SECRET_KEY', 1); |
22 | 22 | |
23 | +/** |
|
24 | + * @param integer $code |
|
25 | + */ |
|
23 | 26 | function return_error($code) { |
24 | 27 | $fault = null; |
25 | 28 | switch ($code) { |
@@ -453,6 +453,7 @@ |
||
453 | 453 | * @param string Session id field name |
454 | 454 | * @param string Session id value |
455 | 455 | * @param int State (1 to subscribe, 0 to unsubscribe) |
456 | + * @param integer $state |
|
456 | 457 | * @return mixed True on success, WSError otherwise |
457 | 458 | */ |
458 | 459 | protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) { |
@@ -453,6 +453,7 @@ |
||
453 | 453 | * @param string Session id field name |
454 | 454 | * @param string Session id value |
455 | 455 | * @param int State (1 to subscribe, 0 to unsubscribe) |
456 | + * @param integer $state |
|
456 | 457 | * @return mixed True on success, WSError otherwise |
457 | 458 | */ |
458 | 459 | protected function changeCourseSubscription($course_id_field_name, $course_id_value, $session_id_field_name, $session_id_value, $state) { |
@@ -57,6 +57,7 @@ discard block |
||
57 | 57 | * Add a value to the indexed item |
58 | 58 | * @param string Key |
59 | 59 | * @param string Value |
60 | + * @param string $key |
|
60 | 61 | * @return void |
61 | 62 | */ |
62 | 63 | function addValue($key, $value) { |
@@ -109,6 +110,7 @@ discard block |
||
109 | 110 | |
110 | 111 | /** |
111 | 112 | * Let add tool id term |
113 | + * @param string $tool_id |
|
112 | 114 | */ |
113 | 115 | public function addToolId($tool_id) |
114 | 116 | { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
395 | - * @return ArrayCollection |
|
395 | + * @return CTool[] |
|
396 | 396 | */ |
397 | 397 | public function getTools() |
398 | 398 | { |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | } |
428 | 428 | |
429 | 429 | /** |
430 | - * @param $urls |
|
430 | + * @param ArrayCollection $urls |
|
431 | 431 | */ |
432 | 432 | public function setUrls($urls) |
433 | 433 | { |
@@ -1244,7 +1244,7 @@ discard block |
||
1244 | 1244 | } |
1245 | 1245 | |
1246 | 1246 | /** |
1247 | - * @return array |
|
1247 | + * @return string[] |
|
1248 | 1248 | */ |
1249 | 1249 | public static function getStatusList() |
1250 | 1250 | { |
@@ -43,6 +43,9 @@ |
||
43 | 43 | |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param MenuItemModel[] $items |
|
48 | + */ |
|
46 | 49 | protected function activateByRoute($route, $items) { |
47 | 50 | |
48 | 51 | foreach($items as $item) { /** @var $item MenuItemModel */ |