@@ -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 | */ |
@@ -2913,6 +2916,7 @@ discard block |
||
| 2913 | 2916 | |
| 2914 | 2917 | /** |
| 2915 | 2918 | * Obtains the text inside the file with the right parser |
| 2919 | + * @param string $doc_path |
|
| 2916 | 2920 | */ |
| 2917 | 2921 | public static function get_text_content($doc_path, $doc_mime) |
| 2918 | 2922 | { |
@@ -3163,6 +3167,7 @@ discard block |
||
| 3163 | 3167 | * Shows a play icon next to the document title in the document list |
| 3164 | 3168 | * @param int |
| 3165 | 3169 | * @param string |
| 3170 | + * @param integer|null $i |
|
| 3166 | 3171 | * @return string html content |
| 3167 | 3172 | */ |
| 3168 | 3173 | static function generate_media_preview($i, $type = 'simple') |
@@ -3557,7 +3562,7 @@ discard block |
||
| 3557 | 3562 | * @param bool $add_move_button |
| 3558 | 3563 | * @param string $target |
| 3559 | 3564 | * @param string $overwrite_url |
| 3560 | - * @return null|string |
|
| 3565 | + * @return string |
|
| 3561 | 3566 | */ |
| 3562 | 3567 | private static function parseFile( |
| 3563 | 3568 | $course_info, |
@@ -4058,7 +4063,7 @@ discard block |
||
| 4058 | 4063 | } |
| 4059 | 4064 | |
| 4060 | 4065 | /** |
| 4061 | - * @return array |
|
| 4066 | + * @return string[] |
|
| 4062 | 4067 | */ |
| 4063 | 4068 | public static function get_web_odf_extension_list() |
| 4064 | 4069 | { |
@@ -4067,10 +4072,10 @@ discard block |
||
| 4067 | 4072 | |
| 4068 | 4073 | /** |
| 4069 | 4074 | * Set of extension allowed to use Jodconverter |
| 4070 | - * @param $mode 'from' |
|
| 4075 | + * @param string $mode 'from' |
|
| 4071 | 4076 | * 'to' |
| 4072 | 4077 | * 'all' |
| 4073 | - * @param $format 'text' |
|
| 4078 | + * @param string $format 'text' |
|
| 4074 | 4079 | * 'spreadsheet' |
| 4075 | 4080 | * 'presentation' |
| 4076 | 4081 | * 'drawing' |
@@ -4274,7 +4279,7 @@ discard block |
||
| 4274 | 4279 | } |
| 4275 | 4280 | |
| 4276 | 4281 | /** |
| 4277 | - * @return array |
|
| 4282 | + * @return string[] |
|
| 4278 | 4283 | */ |
| 4279 | 4284 | public static function get_system_folders() |
| 4280 | 4285 | { |
@@ -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 getProtectedFolderFromStudent() |
| 4298 | 4303 | { |
@@ -4448,7 +4453,7 @@ discard block |
||
| 4448 | 4453 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
| 4449 | 4454 | * @param string $wavFile |
| 4450 | 4455 | * @param bool $removeWavFileIfSuccess |
| 4451 | - * @return bool |
|
| 4456 | + * @return string|false |
|
| 4452 | 4457 | */ |
| 4453 | 4458 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
| 4454 | 4459 | { |
@@ -5536,9 +5541,6 @@ discard block |
||
| 5536 | 5541 | /** |
| 5537 | 5542 | * Creates the row of edit icons for a file/folder |
| 5538 | 5543 | * |
| 5539 | - * @param string $curdirpath current path (cfr open folder) |
|
| 5540 | - * @param string $type (file/folder) |
|
| 5541 | - * @param string $path dbase path of file/folder |
|
| 5542 | 5544 | * @param int $visibility (1/0) |
| 5543 | 5545 | * @param int $id dbase id of the document |
| 5544 | 5546 | * @return string html img tags with hyperlinks |
@@ -5867,7 +5869,7 @@ discard block |
||
| 5867 | 5869 | /** |
| 5868 | 5870 | * Gets the path translated with title of docs and folders |
| 5869 | 5871 | * @param string $path the real path |
| 5870 | - * @return the path which should be displayed |
|
| 5872 | + * @return string path which should be displayed |
|
| 5871 | 5873 | */ |
| 5872 | 5874 | public static function get_titles_of_path($path) |
| 5873 | 5875 | { |
@@ -5922,7 +5924,8 @@ discard block |
||
| 5922 | 5924 | |
| 5923 | 5925 | /** |
| 5924 | 5926 | * Checks whether the user is in shared folder |
| 5925 | - * @return return bool Return true when user is into shared folder |
|
| 5927 | + * @param integer $current_session_id |
|
| 5928 | + * @return boolean bool Return true when user is into shared folder |
|
| 5926 | 5929 | */ |
| 5927 | 5930 | public static function is_shared_folder($curdirpath, $current_session_id) |
| 5928 | 5931 | { |
@@ -5938,7 +5941,7 @@ discard block |
||
| 5938 | 5941 | |
| 5939 | 5942 | /** |
| 5940 | 5943 | * Checks whether the user is into any user shared folder |
| 5941 | - * @return return bool Return true when user is in any user shared folder |
|
| 5944 | + * @return boolean bool Return true when user is in any user shared folder |
|
| 5942 | 5945 | */ |
| 5943 | 5946 | public static function is_any_user_shared_folder($path, $current_session_id) |
| 5944 | 5947 | { |
@@ -6152,7 +6155,7 @@ discard block |
||
| 6152 | 6155 | * @param int $id |
| 6153 | 6156 | * @param array $courseInfo |
| 6154 | 6157 | * @param int $sessionId |
| 6155 | - * @return bool |
|
| 6158 | + * @return boolean|null |
|
| 6156 | 6159 | */ |
| 6157 | 6160 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
| 6158 | 6161 | { |
@@ -6171,7 +6174,7 @@ discard block |
||
| 6171 | 6174 | * @param array $courseInfo |
| 6172 | 6175 | * @param int $sessionId |
| 6173 | 6176 | * |
| 6174 | - * @return bool |
|
| 6177 | + * @return false|null |
|
| 6175 | 6178 | */ |
| 6176 | 6179 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
| 6177 | 6180 | { |
@@ -6210,7 +6213,7 @@ discard block |
||
| 6210 | 6213 | * @param array $courseInfo |
| 6211 | 6214 | * @param int $sessionId |
| 6212 | 6215 | * |
| 6213 | - * @return bool |
|
| 6216 | + * @return false|null |
|
| 6214 | 6217 | */ |
| 6215 | 6218 | public function deleteDocumentsFromSession($courseInfo, $sessionId) |
| 6216 | 6219 | { |