@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @return array |
|
48 | + * @return string[] |
|
49 | 49 | */ |
50 | 50 | public static function getFoldersToDelete() |
51 | 51 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | public static function getFilesToDelete() |
101 | 101 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Get the class instance |
27 | 27 | * @staticvar MsiLtiPlugin $result |
28 | - * @return MsiLtiPlugin |
|
28 | + * @return ImsLtiPlugin |
|
29 | 29 | */ |
30 | 30 | public static function create() |
31 | 31 | { |
@@ -20,6 +20,9 @@ |
||
20 | 20 | return $this->id; |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @return string |
|
25 | + */ |
|
23 | 26 | public function getName() |
24 | 27 | { |
25 | 28 | return $this->name; |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | |
286 | 286 | /** |
287 | 287 | * @param $item |
288 | - * @param $ignore_score_color |
|
288 | + * @param boolean $ignore_score_color |
|
289 | 289 | * @return string |
290 | 290 | */ |
291 | 291 | private function build_average_column($item, $ignore_score_color) |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | /** |
308 | 308 | * @param $item |
309 | - * @param $ignore_score_color |
|
309 | + * @param boolean $ignore_score_color |
|
310 | 310 | * @return string |
311 | 311 | */ |
312 | 312 | private function build_result_column($item, $ignore_score_color) |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | |
324 | 324 | /** |
325 | 325 | * @param $item |
326 | - * @param $ignore_score_color |
|
326 | + * @param boolean $ignore_score_color |
|
327 | 327 | * @return string |
328 | 328 | */ |
329 | 329 | private function build_mask_column($item, $ignore_score_color) |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | |
340 | 340 | /** |
341 | 341 | * @param $coursecode |
342 | - * @return mixed |
|
342 | + * @return string |
|
343 | 343 | */ |
344 | 344 | private function get_course_name_from_code_cached($coursecode) |
345 | 345 | { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Get variables and categories as in 1.11.x |
128 | - * @return array |
|
128 | + * @return string |
|
129 | 129 | */ |
130 | 130 | public function getVariablesAndCategories() |
131 | 131 | { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | /** |
429 | 429 | * Rename old variable with variable used in Chamilo 2.0 |
430 | 430 | * @param string $variable |
431 | - * @return mixed |
|
431 | + * @return string |
|
432 | 432 | */ |
433 | 433 | public function renameVariable($variable) |
434 | 434 | { |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | * Replace old Chamilo 1.x category with 2.0 version |
465 | 465 | * @param string $variable |
466 | 466 | * @param string $defaultCategory |
467 | - * @return mixed |
|
467 | + * @return string |
|
468 | 468 | */ |
469 | 469 | public function fixCategory($variable, $defaultCategory) |
470 | 470 | { |
@@ -558,8 +558,8 @@ discard block |
||
558 | 558 | } |
559 | 559 | |
560 | 560 | /** |
561 | - * @param $name |
|
562 | - * @return mixed |
|
561 | + * @param string $name |
|
562 | + * @return string |
|
563 | 563 | * @throws \InvalidArgumentException |
564 | 564 | */ |
565 | 565 | public function getSetting($name) |
@@ -843,6 +843,9 @@ discard block |
||
843 | 843 | return $parameters; |
844 | 844 | } |
845 | 845 | |
846 | + /** |
|
847 | + * @param string $namespace |
|
848 | + */ |
|
846 | 849 | public function getParametersFromKeyword($namespace, $keyword = '') |
847 | 850 | { |
848 | 851 | $criteria = array('category' => $namespace); |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * Read and validate the quiz module XML |
404 | 404 | * |
405 | 405 | * @param resource $moduleXml XML file |
406 | - * @return mixed | array if is a valid xml file, false otherwise |
|
406 | + * @return string | array if is a valid xml file, false otherwise |
|
407 | 407 | */ |
408 | 408 | public function readQuizModule($moduleXml) |
409 | 409 | { |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | * Fix moodle files that contains spaces |
622 | 622 | * @param array $importedFiles |
623 | 623 | * @param string $text |
624 | - * @return mixed |
|
624 | + * @return string |
|
625 | 625 | */ |
626 | 626 | public function fixPathInText($importedFiles, &$text) |
627 | 627 | { |
@@ -642,10 +642,10 @@ discard block |
||
642 | 642 | * |
643 | 643 | * @param array $questionList |
644 | 644 | * @param string $questionType |
645 | - * @param object $questionInstance Question/Answer instance |
|
645 | + * @param Question $questionInstance Question/Answer instance |
|
646 | 646 | * @param array $currentQuestion |
647 | 647 | * @param array $importedFiles |
648 | - * @return integer db response |
|
648 | + * @return boolean|null db response |
|
649 | 649 | */ |
650 | 650 | public function processAnswers($questionList, $questionType, $questionInstance, $currentQuestion, $importedFiles) |
651 | 651 | { |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | /** |
801 | 801 | * Process Chamilo Unique Answer |
802 | 802 | * |
803 | - * @param object $objAnswer |
|
803 | + * @param Answer $objAnswer |
|
804 | 804 | * @param array $answerValues |
805 | 805 | * @param integer $position |
806 | 806 | * @param integer $questionWeighting |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | /** |
837 | 837 | * Process Chamilo True False |
838 | 838 | * |
839 | - * @param object $objAnswer |
|
839 | + * @param Answer $objAnswer |
|
840 | 840 | * @param array $answerValues |
841 | 841 | * @param integer $position |
842 | 842 | * @param integer $questionWeighting |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | /** |
874 | 874 | * Process Chamilo FillBlanks |
875 | 875 | * |
876 | - * @param object $objAnswer |
|
876 | + * @param Answer $objAnswer |
|
877 | 877 | * @param array $questionType |
878 | 878 | * @param array $answerValues |
879 | 879 | * @param string $placeholder |
@@ -1026,7 +1026,7 @@ discard block |
||
1026 | 1026 | * Litle utility to delete the unuseful tags |
1027 | 1027 | * |
1028 | 1028 | * @param $array |
1029 | - * @param $keys |
|
1029 | + * @param string[] $keys |
|
1030 | 1030 | */ |
1031 | 1031 | public function traverseArray(&$array, $keys) |
1032 | 1032 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * provides a side connection to a vchamilo database |
185 | 185 | * @param array $_configuration |
186 | 186 | * |
187 | - * @return \Doctrine\DBAL\Driver\Connection |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | public static function bootConnection(&$_configuration) |
190 | 190 | { |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | |
373 | 373 | /** |
374 | 374 | * get a proper SQLdump command |
375 | - * @param object $vchamilodata the complete new host information |
|
375 | + * @param stdClass $vchamilodata the complete new host information |
|
376 | 376 | * @return string the shell command |
377 | 377 | */ |
378 | 378 | public static function getDatabaseDumpCmd($vchamilodata) |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | |
457 | 457 | /** |
458 | 458 | * Backups a database for having a snapshot. |
459 | - * @param $vchamilo object The Vchamilo object. |
|
460 | - * @param $outputfilerad string The output SQL file radical. |
|
459 | + * @param stdClass $vchamilo object The Vchamilo object. |
|
460 | + * @param string $outputfilerad string The output SQL file radical. |
|
461 | 461 | * @return bool If TRUE, dumping database was a success, otherwise FALSE. |
462 | 462 | */ |
463 | 463 | public static function backupDatabase($vchamilo, $outputfilerad) |
@@ -619,6 +619,8 @@ discard block |
||
619 | 619 | * this function set will map standard moodle API calls to chamilo |
620 | 620 | * internal primitives. This avoids too many changes to do in imported |
621 | 621 | * code |
622 | + * @param string $module |
|
623 | + * @param string $key |
|
622 | 624 | */ |
623 | 625 | public static function getConfig($module, $key, $isplugin = true) |
624 | 626 | { |
@@ -698,7 +700,7 @@ discard block |
||
698 | 700 | /** |
699 | 701 | * @param string $path |
700 | 702 | * |
701 | - * @return mixed |
|
703 | + * @return string |
|
702 | 704 | */ |
703 | 705 | public static function chopLastSlash($path) |
704 | 706 | { |
@@ -852,7 +854,7 @@ discard block |
||
852 | 854 | |
853 | 855 | /** |
854 | 856 | * @param object $instance |
855 | - * @return bool|\Doctrine\DBAL\Connection |
|
857 | + * @return Doctrine\ORM\EntityManagerInterface |
|
856 | 858 | */ |
857 | 859 | public static function getConnectionFromInstance($instance, $getManager = false) |
858 | 860 | { |
@@ -1297,7 +1299,7 @@ discard block |
||
1297 | 1299 | /** |
1298 | 1300 | * @param stdClass $instance |
1299 | 1301 | * |
1300 | - * @return bool|string returns the original version of the app |
|
1302 | + * @return string|false returns the original version of the app |
|
1301 | 1303 | */ |
1302 | 1304 | public static function canBeUpgraded($instance) |
1303 | 1305 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Install the plugin |
46 | - * @return void |
|
46 | + * @return boolean |
|
47 | 47 | */ |
48 | 48 | public function install() |
49 | 49 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Uninstall the plugin |
55 | - * @return void |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | public function uninstall() |
58 | 58 | { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @param int $resourceId |
77 | 77 | * @param int $type |
78 | - * @return boolean |
|
78 | + * @return boolean|null |
|
79 | 79 | */ |
80 | 80 | public function deleteResource($resourceId, $type) |
81 | 81 | { |