@@ -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 | { |
@@ -187,6 +187,7 @@ discard block |
||
187 | 187 | * Build the prefilter form. |
188 | 188 | * |
189 | 189 | * This type allow filter all other multiple select terms by one term in a dinamic way |
190 | + * @param string $prefilter_prefix |
|
190 | 191 | */ |
191 | 192 | function search_widget_prefilter_form($action, $show_thesaurus, $sf_terms, $op, $prefilter_prefix=NULL) { |
192 | 193 | $thesaurus_icon = Display::return_icon('thesaurus.gif', get_lang('SearchAdvancedOptions'), array('id'=>'thesaurus-icon')); |
@@ -277,6 +278,8 @@ discard block |
||
277 | 278 | |
278 | 279 | /** |
279 | 280 | * Show search form |
281 | + * @param string $action |
|
282 | + * @param boolean $show_thesaurus |
|
280 | 283 | */ |
281 | 284 | function display_search_form($action, $show_thesaurus, $sf_terms, $op) { |
282 | 285 | $type = (!empty($_REQUEST['type'])? htmlentities($_REQUEST['type']): 'normal'); |
@@ -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 */ |
@@ -60,6 +60,11 @@ |
||
60 | 60 | */ |
61 | 61 | protected $parent = null; |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $id |
|
65 | + * @param string $label |
|
66 | + * @param string $route |
|
67 | + */ |
|
63 | 68 | function __construct( |
64 | 69 | $id, |
65 | 70 | $label, |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @param UserInterface $from |
50 | 50 | * @param string $subject |
51 | - * @param null $sentAt |
|
51 | + * @param \DateTime $sentAt |
|
52 | 52 | * @param UserInterface $to |
53 | 53 | */ |
54 | 54 | function __construct(UserInterface $from = null, $subject= '', $sentAt = null, UserInterface $to = null) |