@@ -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?? |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | * Gets the paths of all folders in a course |
| 737 | 737 | * can show all folders (except for the deleted ones) or only visible ones |
| 738 | 738 | * |
| 739 | - * @param array $_course |
|
| 739 | + * @param Chamilo\CoreBundle\Entity\Course $_course |
|
| 740 | 740 | * @param int $to_group_id |
| 741 | 741 | * @param boolean $can_see_invisible |
| 742 | 742 | * |
@@ -1544,7 +1544,7 @@ discard block |
||
| 1544 | 1544 | * Return true if the documentpath have visibility=1 as |
| 1545 | 1545 | * item_property (you should use the is_visible_by_id) |
| 1546 | 1546 | * |
| 1547 | - * @param string $document_path the relative complete path of the document |
|
| 1547 | + * @param string $doc_path the relative complete path of the document |
|
| 1548 | 1548 | * @param array $course the _course array info of the document's course |
| 1549 | 1549 | * @param int |
| 1550 | 1550 | * @param string |
@@ -1629,6 +1629,8 @@ discard block |
||
| 1629 | 1629 | * @param int |
| 1630 | 1630 | * @param int |
| 1631 | 1631 | * @param bool |
| 1632 | + * @param integer $session_id |
|
| 1633 | + * @param integer $user_id |
|
| 1632 | 1634 | * @return bool |
| 1633 | 1635 | */ |
| 1634 | 1636 | public static function is_visible_by_id( |
@@ -2116,6 +2118,7 @@ discard block |
||
| 2116 | 2118 | * @param bool is file or string html |
| 2117 | 2119 | * @param string type (one of the app tools) - optional (otherwise takes the current item's type) |
| 2118 | 2120 | * @param int level of recursivity we're in |
| 2121 | + * @param string $source_html |
|
| 2119 | 2122 | * @return array List of file paths. An additional field containing 'local' or 'remote' helps determine |
| 2120 | 2123 | * if the file should be copied into the zip or just linked |
| 2121 | 2124 | */ |
@@ -2942,6 +2945,7 @@ discard block |
||
| 2942 | 2945 | |
| 2943 | 2946 | /** |
| 2944 | 2947 | * Obtains the text inside the file with the right parser |
| 2948 | + * @param string $doc_path |
|
| 2945 | 2949 | */ |
| 2946 | 2950 | public static function get_text_content($doc_path, $doc_mime) |
| 2947 | 2951 | { |
@@ -3192,6 +3196,7 @@ discard block |
||
| 3192 | 3196 | * Shows a play icon next to the document title in the document list |
| 3193 | 3197 | * @param int |
| 3194 | 3198 | * @param string |
| 3199 | + * @param integer|null $i |
|
| 3195 | 3200 | * @return string html content |
| 3196 | 3201 | */ |
| 3197 | 3202 | static function generate_media_preview($i, $type = 'simple') |
@@ -4082,7 +4087,7 @@ discard block |
||
| 4082 | 4087 | } |
| 4083 | 4088 | |
| 4084 | 4089 | /** |
| 4085 | - * @return array |
|
| 4090 | + * @return string[] |
|
| 4086 | 4091 | */ |
| 4087 | 4092 | public static function get_web_odf_extension_list() |
| 4088 | 4093 | { |
@@ -4091,10 +4096,10 @@ discard block |
||
| 4091 | 4096 | |
| 4092 | 4097 | /** |
| 4093 | 4098 | * Set of extension allowed to use Jodconverter |
| 4094 | - * @param $mode 'from' |
|
| 4099 | + * @param string $mode 'from' |
|
| 4095 | 4100 | * 'to' |
| 4096 | 4101 | * 'all' |
| 4097 | - * @param $format 'text' |
|
| 4102 | + * @param string $format 'text' |
|
| 4098 | 4103 | * 'spreadsheet' |
| 4099 | 4104 | * 'presentation' |
| 4100 | 4105 | * 'drawing' |
@@ -4298,7 +4303,7 @@ discard block |
||
| 4298 | 4303 | } |
| 4299 | 4304 | |
| 4300 | 4305 | /** |
| 4301 | - * @return array |
|
| 4306 | + * @return string[] |
|
| 4302 | 4307 | */ |
| 4303 | 4308 | public static function get_system_folders() |
| 4304 | 4309 | { |
@@ -4316,7 +4321,7 @@ discard block |
||
| 4316 | 4321 | } |
| 4317 | 4322 | |
| 4318 | 4323 | /** |
| 4319 | - * @return array |
|
| 4324 | + * @return string[] |
|
| 4320 | 4325 | */ |
| 4321 | 4326 | public static function getProtectedFolderFromStudent() |
| 4322 | 4327 | { |
@@ -4472,7 +4477,7 @@ discard block |
||
| 4472 | 4477 | * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg |
| 4473 | 4478 | * @param string $wavFile |
| 4474 | 4479 | * @param bool $removeWavFileIfSuccess |
| 4475 | - * @return bool |
|
| 4480 | + * @return string|false |
|
| 4476 | 4481 | */ |
| 4477 | 4482 | public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false) |
| 4478 | 4483 | { |
@@ -5561,9 +5566,6 @@ discard block |
||
| 5561 | 5566 | /** |
| 5562 | 5567 | * Creates the row of edit icons for a file/folder |
| 5563 | 5568 | * |
| 5564 | - * @param string $curdirpath current path (cfr open folder) |
|
| 5565 | - * @param string $type (file/folder) |
|
| 5566 | - * @param string $path dbase path of file/folder |
|
| 5567 | 5569 | * @param int $visibility (1/0) |
| 5568 | 5570 | * @param int $id dbase id of the document |
| 5569 | 5571 | * @return string html img tags with hyperlinks |
@@ -5893,7 +5895,7 @@ discard block |
||
| 5893 | 5895 | /** |
| 5894 | 5896 | * Gets the path translated with title of docs and folders |
| 5895 | 5897 | * @param string $path the real path |
| 5896 | - * @return the path which should be displayed |
|
| 5898 | + * @return string path which should be displayed |
|
| 5897 | 5899 | */ |
| 5898 | 5900 | public static function get_titles_of_path($path) |
| 5899 | 5901 | { |
@@ -5948,7 +5950,8 @@ discard block |
||
| 5948 | 5950 | |
| 5949 | 5951 | /** |
| 5950 | 5952 | * Checks whether the user is in shared folder |
| 5951 | - * @return return bool Return true when user is into shared folder |
|
| 5953 | + * @param integer $current_session_id |
|
| 5954 | + * @return boolean bool Return true when user is into shared folder |
|
| 5952 | 5955 | */ |
| 5953 | 5956 | public static function is_shared_folder($curdirpath, $current_session_id) |
| 5954 | 5957 | { |
@@ -5964,7 +5967,7 @@ discard block |
||
| 5964 | 5967 | |
| 5965 | 5968 | /** |
| 5966 | 5969 | * Checks whether the user is into any user shared folder |
| 5967 | - * @return return bool Return true when user is in any user shared folder |
|
| 5970 | + * @return boolean bool Return true when user is in any user shared folder |
|
| 5968 | 5971 | */ |
| 5969 | 5972 | public static function is_any_user_shared_folder($path, $current_session_id) |
| 5970 | 5973 | { |
@@ -6178,7 +6181,7 @@ discard block |
||
| 6178 | 6181 | * @param int $id |
| 6179 | 6182 | * @param array $courseInfo |
| 6180 | 6183 | * @param int $sessionId |
| 6181 | - * @return bool |
|
| 6184 | + * @return boolean|null |
|
| 6182 | 6185 | */ |
| 6183 | 6186 | public static function downloadDeletedDocument($id, $courseInfo, $sessionId) |
| 6184 | 6187 | { |
@@ -6197,7 +6200,7 @@ discard block |
||
| 6197 | 6200 | * @param array $courseInfo |
| 6198 | 6201 | * @param int $sessionId |
| 6199 | 6202 | * |
| 6200 | - * @return bool |
|
| 6203 | + * @return false|null |
|
| 6201 | 6204 | */ |
| 6202 | 6205 | public static function downloadAllDeletedDocument($courseInfo, $sessionId) |
| 6203 | 6206 | { |
@@ -6236,7 +6239,7 @@ discard block |
||
| 6236 | 6239 | * @param array $courseInfo |
| 6237 | 6240 | * @param int $sessionId |
| 6238 | 6241 | * |
| 6239 | - * @return bool |
|
| 6242 | + * @return false|null |
|
| 6240 | 6243 | */ |
| 6241 | 6244 | public function deleteDocumentsFromSession($courseInfo, $sessionId) |
| 6242 | 6245 | { |