@@ -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) |
@@ -18,6 +18,9 @@ |
||
18 | 18 | |
19 | 19 | protected $icon; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $message |
|
23 | + */ |
|
21 | 24 | function __construct($message = null, $type = 'info', $icon = 'fa fa-warning') |
22 | 25 | { |
23 | 26 | $this->message = $message; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | protected $title; |
51 | 51 | |
52 | 52 | /** |
53 | - * @param null $title |
|
53 | + * @param string $title |
|
54 | 54 | * @param int $progress |
55 | 55 | * @param string $color |
56 | 56 | */ |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @return mixed |
|
96 | + * @return integer |
|
97 | 97 | */ |
98 | 98 | public function getProgress() |
99 | 99 | { |
@@ -52,6 +52,10 @@ |
||
52 | 52 | |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $id |
|
57 | + * @param string $src |
|
58 | + */ |
|
55 | 59 | public function registerStyle($id, $src, $deps = array()) { |
56 | 60 | if(!isset($this->stylesheets[$id])) { |
57 | 61 | $this->stylesheets[$id] = array( |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @return array |
|
35 | + * @return string[] |
|
36 | 36 | */ |
37 | 37 | public static function toolList() |
38 | 38 | { |
@@ -290,7 +290,6 @@ discard block |
||
290 | 290 | * 'page_nr' = The page to display |
291 | 291 | * 'hide_navigation' = true to hide the navigation |
292 | 292 | * @param array $query_vars Additional variables to add in the query-string |
293 | - * @param array $form actions Additional variables to add in the query-string |
|
294 | 293 | * @param mixed An array with bool values to know which columns show. |
295 | 294 | * i.e: $visibility_options= array(true, false) we will only show the first column |
296 | 295 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -331,7 +330,6 @@ discard block |
||
331 | 330 | * 'page_nr' = The page to display |
332 | 331 | * 'hide_navigation' = true to hide the navigation |
333 | 332 | * @param array $query_vars Additional variables to add in the query-string |
334 | - * @param array $form actions Additional variables to add in the query-string |
|
335 | 333 | * @param mixed An array with bool values to know which columns show. i.e: |
336 | 334 | * $visibility_options= array(true, false) we will only show the first column |
337 | 335 | * Can be also only a bool value. TRUE: show all columns, FALSE: show nothing |
@@ -388,10 +386,11 @@ discard block |
||
388 | 386 | * 'per_page' = number of items to show per page |
389 | 387 | * 'page_nr' = The page to display |
390 | 388 | * @param array $query_vars Additional variables to add in the query-string |
391 | - * @param array $column_show Array of binaries 1= show columns 0. hide a column |
|
389 | + * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column |
|
392 | 390 | * @param array $column_order An array of integers that let us decide how the columns are going to be sort. |
393 | 391 | * i.e: $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column |
394 | 392 | * @param array $form_actions Set optional forms actions |
393 | + * @param string $table_name |
|
395 | 394 | * |
396 | 395 | * @author Julio Montoya |
397 | 396 | */ |
@@ -444,7 +443,7 @@ discard block |
||
444 | 443 | * @param bool $filter (true) or not (false) |
445 | 444 | * @param bool $returnValue |
446 | 445 | * |
447 | - * @return void |
|
446 | + * @return string|null |
|
448 | 447 | */ |
449 | 448 | public static function display_normal_message($message, $filter = true, $returnValue = false) |
450 | 449 | { |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | /** |
475 | 474 | * Displays an confirmation message. Use this if something has been done successfully |
476 | 475 | * @param bool Filter (true) or not (false) |
477 | - * @return void |
|
476 | + * @return string|null |
|
478 | 477 | */ |
479 | 478 | public static function display_confirmation_message ($message, $filter = true, $returnValue = false) |
480 | 479 | { |
@@ -491,7 +490,7 @@ discard block |
||
491 | 490 | * @param string $message - include any additional html |
492 | 491 | * tags if you need them |
493 | 492 | * @param bool Filter (true) or not (false) |
494 | - * @return void |
|
493 | + * @return string|null |
|
495 | 494 | */ |
496 | 495 | public static function display_error_message ($message, $filter = true, $returnValue = false) |
497 | 496 | { |
@@ -681,6 +680,7 @@ discard block |
||
681 | 680 | * @param string The alt text (probably a language variable) |
682 | 681 | * @param array additional attributes (for instance height, width, onclick, ...) |
683 | 682 | * @param integer The wanted width of the icon (to be looked for in the corresponding img/icons/ folder) |
683 | + * @param string $image |
|
684 | 684 | * @return void |
685 | 685 | */ |
686 | 686 | public static function display_icon( |
@@ -886,6 +886,7 @@ discard block |
||
886 | 886 | /** |
887 | 887 | * Displays an HTML input tag |
888 | 888 | * |
889 | + * @param string $type |
|
889 | 890 | */ |
890 | 891 | public static function input($type, $name, $value, $attributes = array()) |
891 | 892 | { |
@@ -902,8 +903,8 @@ discard block |
||
902 | 903 | } |
903 | 904 | |
904 | 905 | /** |
905 | - * @param $name |
|
906 | - * @param $value |
|
906 | + * @param string $name |
|
907 | + * @param string $value |
|
907 | 908 | * @param array $attributes |
908 | 909 | * @return string |
909 | 910 | */ |
@@ -918,6 +919,7 @@ discard block |
||
918 | 919 | /** |
919 | 920 | * Displays an HTML select tag |
920 | 921 | * |
922 | + * @param string $blank_item_text |
|
921 | 923 | */ |
922 | 924 | public static function select( |
923 | 925 | $name, |
@@ -984,8 +986,8 @@ discard block |
||
984 | 986 | $( "#tabs" ).tabs(); |
985 | 987 | }); |
986 | 988 | </script> |
987 | - * @param array $headers list of the tab titles |
|
988 | - * @param array $items |
|
989 | + * @param string[] $headers list of the tab titles |
|
990 | + * @param string[] $items |
|
989 | 991 | * @param string $id id of the container of the tab in the example "tabs" |
990 | 992 | * @param array $attributes for the ul |
991 | 993 | * @param array $ul_attributes |
@@ -1039,7 +1041,7 @@ discard block |
||
1039 | 1041 | |
1040 | 1042 | /** |
1041 | 1043 | * @param $headers |
1042 | - * @param null $selected |
|
1044 | + * @param integer $selected |
|
1043 | 1045 | * |
1044 | 1046 | * @return string |
1045 | 1047 | */ |
@@ -1077,6 +1079,7 @@ discard block |
||
1077 | 1079 | * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work |
1078 | 1080 | * |
1079 | 1081 | * @param string the div id, this value must be the same with the first parameter of Display::grid_js() |
1082 | + * @param string $div_id |
|
1080 | 1083 | * @return string html |
1081 | 1084 | * |
1082 | 1085 | */ |
@@ -1632,6 +1635,8 @@ discard block |
||
1632 | 1635 | * @param string url that will be added (for jquery see hot_courses.tpl) |
1633 | 1636 | * @param string point info array see function CourseManager::get_course_ranking() |
1634 | 1637 | * @param bool add a div wrapper |
1638 | + * @param string $id |
|
1639 | + * @param string $url |
|
1635 | 1640 | * @todo use templates |
1636 | 1641 | **/ |
1637 | 1642 | public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true) |
@@ -1727,6 +1732,9 @@ discard block |
||
1727 | 1732 | return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>'; |
1728 | 1733 | } |
1729 | 1734 | |
1735 | + /** |
|
1736 | + * @param string $title |
|
1737 | + */ |
|
1730 | 1738 | public static function page_subheader2($title, $second_title = null) |
1731 | 1739 | { |
1732 | 1740 | return self::page_header($title, $second_title, 'h4'); |
@@ -1957,6 +1965,7 @@ discard block |
||
1957 | 1965 | |
1958 | 1966 | /** |
1959 | 1967 | * @todo use twig |
1968 | + * @param string $title |
|
1960 | 1969 | */ |
1961 | 1970 | public static function group_button($title, $elements) |
1962 | 1971 | { |
@@ -2174,9 +2183,9 @@ discard block |
||
2174 | 2183 | |
2175 | 2184 | /** |
2176 | 2185 | * @param int $id |
2177 | - * @param array $content |
|
2186 | + * @param string[] $content |
|
2178 | 2187 | * @param int $col |
2179 | - * @param bool|true $right |
|
2188 | + * @param boolean $right |
|
2180 | 2189 | * @return string |
2181 | 2190 | */ |
2182 | 2191 | public static function toolbarAction($id, $content = array(), $col = 2, $right = true) |
@@ -2258,10 +2267,10 @@ discard block |
||
2258 | 2267 | /** |
2259 | 2268 | * @param string $title |
2260 | 2269 | * @param string $content |
2261 | - * @param null $id |
|
2270 | + * @param string $id |
|
2262 | 2271 | * @param array $params |
2263 | - * @param null $idAccordion |
|
2264 | - * @param null $idCollapse |
|
2272 | + * @param string $idAccordion |
|
2273 | + * @param string $idCollapse |
|
2265 | 2274 | * @param bool|true $open |
2266 | 2275 | * @param bool|false $fullClickable |
2267 | 2276 | * @return null|string |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @param string |
279 | 279 | * @param string |
280 | - * @return true if the user is allowed to see the document, false otherwise |
|
280 | + * @return boolean if the user is allowed to see the document, false otherwise |
|
281 | 281 | * @author Sergio A Kessler, first version |
282 | 282 | * @author Roan Embrechts, bugfix |
283 | 283 | * @todo not only check if a file is visible, but also check if the user is allowed to see the file?? |
@@ -1527,7 +1527,7 @@ discard block |
||
1527 | 1527 | * Return true if the documentpath have visibility=1 as |
1528 | 1528 | * item_property (you should use the is_visible_by_id) |
1529 | 1529 | * |
1530 | - * @param string $document_path the relative complete path of the document |
|
1530 | + * @param string $doc_path the relative complete path of the document |
|
1531 | 1531 | * @param array $course the _course array info of the document's course |
1532 | 1532 | * @param int |
1533 | 1533 | * @param string |
@@ -1612,6 +1612,8 @@ discard block |
||
1612 | 1612 | * @param int |
1613 | 1613 | * @param int |
1614 | 1614 | * @param bool |
1615 | + * @param integer $session_id |
|
1616 | + * @param integer $user_id |
|
1615 | 1617 | * @return bool |
1616 | 1618 | */ |
1617 | 1619 | public static function is_visible_by_id( |
@@ -2090,6 +2092,7 @@ discard block |
||
2090 | 2092 | * @param bool is file or string html |
2091 | 2093 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
2092 | 2094 | * @param int level of recursivity we're in |
2095 | + * @param string $source_html |
|
2093 | 2096 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
2094 | 2097 | * if the file should be copied into the zip or just linked |
2095 | 2098 | */ |
@@ -2923,6 +2926,7 @@ discard block |
||
2923 | 2926 | |
2924 | 2927 | /** |
2925 | 2928 | * Obtains the text inside the file with the right parser |
2929 | + * @param string $doc_path |
|
2926 | 2930 | */ |
2927 | 2931 | public static function get_text_content($doc_path, $doc_mime) |
2928 | 2932 | { |
@@ -3173,6 +3177,7 @@ discard block |
||
3173 | 3177 | * Shows a play icon next to the document title in the document list |
3174 | 3178 | * @param int |
3175 | 3179 | * @param string |
3180 | + * @param integer|null $i |
|
3176 | 3181 | * @return string html content |
3177 | 3182 | */ |
3178 | 3183 | static function generate_media_preview($i, $type = 'simple') |
@@ -3567,7 +3572,7 @@ discard block |
||
3567 | 3572 | * @param bool $add_move_button |
3568 | 3573 | * @param string $target |
3569 | 3574 | * @param string $overwrite_url |
3570 | - * @return null|string |
|
3575 | + * @return string |
|
3571 | 3576 | */ |
3572 | 3577 | private static function parseFile( |
3573 | 3578 | $course_info, |
@@ -4076,7 +4081,7 @@ discard block |
||
4076 | 4081 | } |
4077 | 4082 | |
4078 | 4083 | /** |
4079 | - * @return array |
|
4084 | + * @return string[] |
|
4080 | 4085 | */ |
4081 | 4086 | public static function get_web_odf_extension_list() |
4082 | 4087 | { |
@@ -4085,10 +4090,10 @@ discard block |
||
4085 | 4090 | |
4086 | 4091 | /** |
4087 | 4092 | * Set of extension allowed to use Jodconverter |
4088 | - * @param $mode 'from' |
|
4093 | + * @param string $mode 'from' |
|
4089 | 4094 | * 'to' |
4090 | 4095 | * 'all' |
4091 | - * @param $format 'text' |
|
4096 | + * @param string $format 'text' |
|
4092 | 4097 | * 'spreadsheet' |
4093 | 4098 | * 'presentation' |
4094 | 4099 | * 'drawing' |
@@ -4292,7 +4297,7 @@ discard block |
||
4292 | 4297 | } |
4293 | 4298 | |
4294 | 4299 | /** |
4295 | - * @return array |
|
4300 | + * @return string[] |
|
4296 | 4301 | */ |
4297 | 4302 | public static function get_system_folders() |
4298 | 4303 | { |
@@ -4310,7 +4315,7 @@ discard block |
||
4310 | 4315 | } |
4311 | 4316 | |
4312 | 4317 | /** |
4313 | - * @return array |
|
4318 | + * @return string[] |
|
4314 | 4319 | */ |
4315 | 4320 | public static function getProtectedFolderFromStudent() |
4316 | 4321 | { |
@@ -4466,7 +4471,7 @@ discard block |
||
4466 | 4471 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
4467 | 4472 | * @param string $wavFile |
4468 | 4473 | * @param bool $removeWavFileIfSuccess |
4469 | - * @return bool |
|
4474 | + * @return string|false |
|
4470 | 4475 | */ |
4471 | 4476 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
4472 | 4477 | { |
@@ -5041,6 +5046,8 @@ discard block |
||
5041 | 5046 | * @param string The current folder (path inside of the "document" directory, including the prefix "/") |
5042 | 5047 | * @param string Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root) |
5043 | 5048 | * @param boolean Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form) |
5049 | + * @param string $document_id |
|
5050 | + * @param FormValidator $form |
|
5044 | 5051 | |
5045 | 5052 | * @return string html form |
5046 | 5053 | */ |
@@ -5570,9 +5577,6 @@ discard block |
||
5570 | 5577 | /** |
5571 | 5578 | * Creates the row of edit icons for a file/folder |
5572 | 5579 | * |
5573 | - * @param string $curdirpath current path (cfr open folder) |
|
5574 | - * @param string $type (file/folder) |
|
5575 | - * @param string $path dbase path of file/folder |
|
5576 | 5580 | * @param int $visibility (1/0) |
5577 | 5581 | * @param int $id dbase id of the document |
5578 | 5582 | * @return string html img tags with hyperlinks |
@@ -5903,7 +5907,7 @@ discard block |
||
5903 | 5907 | /** |
5904 | 5908 | * Gets the path translated with title of docs and folders |
5905 | 5909 | * @param string $path the real path |
5906 | - * @return the path which should be displayed |
|
5910 | + * @return string path which should be displayed |
|
5907 | 5911 | */ |
5908 | 5912 | public static function get_titles_of_path($path) |
5909 | 5913 | { |
@@ -5958,7 +5962,8 @@ discard block |
||
5958 | 5962 | |
5959 | 5963 | /** |
5960 | 5964 | * Checks whether the user is in shared folder |
5961 | - * @return return bool Return true when user is into shared folder |
|
5965 | + * @param integer $current_session_id |
|
5966 | + * @return boolean bool Return true when user is into shared folder |
|
5962 | 5967 | */ |
5963 | 5968 | public static function is_shared_folder($curdirpath, $current_session_id) |
5964 | 5969 | { |
@@ -5974,7 +5979,7 @@ discard block |
||
5974 | 5979 | |
5975 | 5980 | /** |
5976 | 5981 | * Checks whether the user is into any user shared folder |
5977 | - * @return return bool Return true when user is in any user shared folder |
|
5982 | + * @return boolean bool Return true when user is in any user shared folder |
|
5978 | 5983 | */ |
5979 | 5984 | public static function is_any_user_shared_folder($path, $current_session_id) |
5980 | 5985 | { |
@@ -6188,7 +6193,7 @@ discard block |
||
6188 | 6193 | * @param int $id |
6189 | 6194 | * @param array $courseInfo |
6190 | 6195 | * @param int $sessionId |
6191 | - * @return bool |
|
6196 | + * @return boolean|null |
|
6192 | 6197 | */ |
6193 | 6198 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
6194 | 6199 | { |
@@ -6207,7 +6212,7 @@ discard block |
||
6207 | 6212 | * @param array $courseInfo |
6208 | 6213 | * @param int $sessionId |
6209 | 6214 | * |
6210 | - * @return bool |
|
6215 | + * @return false|null |
|
6211 | 6216 | */ |
6212 | 6217 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
6213 | 6218 | { |
@@ -6246,7 +6251,7 @@ discard block |
||
6246 | 6251 | * @param array $courseInfo |
6247 | 6252 | * @param int $sessionId |
6248 | 6253 | * |
6249 | - * @return bool |
|
6254 | + * @return false|null |
|
6250 | 6255 | */ |
6251 | 6256 | public function deleteDocumentsFromSession($courseInfo, $sessionId) |
6252 | 6257 | { |