@@ -334,6 +334,9 @@ |
||
334 | 334 | return preg_replace('/, $/','',$result); |
335 | 335 | } |
336 | 336 | |
337 | + /** |
|
338 | + * @param string $paramString |
|
339 | + */ |
|
337 | 340 | private function _parseParameterString ($paramString) |
338 | 341 | { |
339 | 342 | $elements = explode('&',$paramString); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * @author Bart Mollet |
372 | 372 | * @param int $groupId iid |
373 | 373 | * @param string $course_code Default is current course |
374 | - * @return integer - number of groups deleted. |
|
374 | + * @return boolean - number of groups deleted. |
|
375 | 375 | */ |
376 | 376 | public static function delete_groups($groupId, $course_code = null) |
377 | 377 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * @param bool Whether self registration is allowed or not |
564 | 564 | * @param bool Whether self unregistration is allowed or not |
565 | 565 | * @param int $categoryId |
566 | - * @return bool TRUE if properties are successfully changed, false otherwise |
|
566 | + * @return Statement|null TRUE if properties are successfully changed, false otherwise |
|
567 | 567 | */ |
568 | 568 | public static function set_group_properties( |
569 | 569 | $group_id, |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * @param int $group_id The iid of the group |
717 | 717 | * @param string $course_code The course in which the group is (default = |
718 | 718 | * current course) |
719 | - * @return array The category |
|
719 | + * @return integer The category |
|
720 | 720 | */ |
721 | 721 | public static function get_category_from_group($group_id, $course_code = null) |
722 | 722 | { |
@@ -782,9 +782,9 @@ discard block |
||
782 | 782 | * Create group category |
783 | 783 | * @param string $title The title of the new category |
784 | 784 | * @param string $description The description of the new category |
785 | - * @param bool $self_registration_allowed |
|
786 | - * @param bool $self_unregistration_allowed |
|
787 | - * @param int $max_number_of_students |
|
785 | + * @param integer $self_registration_allowed |
|
786 | + * @param integer $self_unregistration_allowed |
|
787 | + * @param int $maximum_number_of_students |
|
788 | 788 | * @param int $groups_per_user |
789 | 789 | */ |
790 | 790 | public static function create_category( |
@@ -990,6 +990,8 @@ discard block |
||
990 | 990 | * @param int $limit |
991 | 991 | * @param bool $getCount |
992 | 992 | * @param int $courseId |
993 | + * @param string $column |
|
994 | + * @param string $direction |
|
993 | 995 | * @return array list of user id |
994 | 996 | */ |
995 | 997 | public static function get_users( |
@@ -1583,7 +1585,7 @@ discard block |
||
1583 | 1585 | /** |
1584 | 1586 | * Subscribe tutor(s) to a specified group in current course |
1585 | 1587 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1586 | - * @param int $group_id iid |
|
1588 | + * @param int $groupId iid |
|
1587 | 1589 | * @param int $course_id |
1588 | 1590 | * |
1589 | 1591 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1614,7 +1616,7 @@ discard block |
||
1614 | 1616 | * Unsubscribe user(s) from a specified group in current course |
1615 | 1617 | * @param mixed $user_ids Can be an array with user-id's or a single user-id |
1616 | 1618 | * @param int $group_id iid |
1617 | - * @return bool TRUE if successful |
|
1619 | + * @return boolean|null TRUE if successful |
|
1618 | 1620 | */ |
1619 | 1621 | public static function unsubscribe_users($user_ids, $group_id) |
1620 | 1622 | { |
@@ -1633,7 +1635,7 @@ discard block |
||
1633 | 1635 | |
1634 | 1636 | /** |
1635 | 1637 | * Unsubscribe all users from one or more groups |
1636 | - * @param int $group_id iid |
|
1638 | + * @param integer $groupId iid |
|
1637 | 1639 | * @return bool TRUE if successful |
1638 | 1640 | */ |
1639 | 1641 | public static function unsubscribe_all_users($groupId) |
@@ -1781,6 +1783,7 @@ discard block |
||
1781 | 1783 | * |
1782 | 1784 | * @param $user_array_in list of users (must be sorted). |
1783 | 1785 | * @param string $compare_field, the field to be compared |
1786 | + * @param string $compare_field |
|
1784 | 1787 | */ |
1785 | 1788 | public static function filter_duplicates($user_array_in, $compare_field) |
1786 | 1789 | { |
@@ -37,6 +37,8 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @param int Error code |
39 | 39 | * @param string Error message |
40 | + * @param integer $code |
|
41 | + * @param string $message |
|
40 | 42 | */ |
41 | 43 | public function __construct($code, $message) |
42 | 44 | { |
@@ -48,6 +50,7 @@ discard block |
||
48 | 50 | * Sets the error handler |
49 | 51 | * |
50 | 52 | * @param WSErrorHandler Error handler |
53 | + * @param WSCMSoapErrorHandler $handler |
|
51 | 54 | */ |
52 | 55 | public static function setErrorHandler($handler) |
53 | 56 | { |
@@ -86,6 +89,7 @@ discard block |
||
86 | 89 | * Handle method |
87 | 90 | * |
88 | 91 | * @param WSError Error |
92 | + * @return void |
|
89 | 93 | */ |
90 | 94 | public function handle($error); |
91 | 95 | } |
@@ -114,7 +118,7 @@ discard block |
||
114 | 118 | * Verifies the API key |
115 | 119 | * |
116 | 120 | * @param string Secret key |
117 | - * @return mixed WSError in case of failure, null in case of success |
|
121 | + * @return WSCMError|null WSError in case of failure, null in case of success |
|
118 | 122 | */ |
119 | 123 | protected function verifyKey($secret_key) |
120 | 124 | { |
@@ -218,7 +218,7 @@ |
||
218 | 218 | /** |
219 | 219 | * Displays the tools of a certain category. |
220 | 220 | * |
221 | - * @return void |
|
221 | + * @return string |
|
222 | 222 | * @param string $course_tool_category contains the category of tools to display: |
223 | 223 | * "Public", "PublicButHide", "courseAdmin", "claroAdmin" |
224 | 224 | */ |
@@ -209,11 +209,11 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Gives a list of people online now (and in the last $valid minutes) |
211 | 211 | * |
212 | - * @param $from |
|
212 | + * @param integer $from |
|
213 | 213 | * @param $number_of_items |
214 | 214 | * @param null $column |
215 | 215 | * @param null $direction |
216 | - * @param null $time_limit |
|
216 | + * @param integer $time_limit |
|
217 | 217 | * @param bool $friends |
218 | 218 | * @return array|bool For each line, a list of user IDs and login dates, or FALSE on error or empty results |
219 | 219 | */ |
@@ -320,6 +320,9 @@ discard block |
||
320 | 320 | } |
321 | 321 | } |
322 | 322 | |
323 | +/** |
|
324 | + * @param string $time_limit |
|
325 | + */ |
|
323 | 326 | function who_is_online_count($time_limit = null, $friends = false) |
324 | 327 | { |
325 | 328 | if (empty($time_limit)) { |
@@ -436,6 +439,10 @@ discard block |
||
436 | 439 | } |
437 | 440 | } |
438 | 441 | |
442 | +/** |
|
443 | + * @param integer $uid |
|
444 | + * @param string $time_limit |
|
445 | + */ |
|
439 | 446 | function who_is_online_in_this_course_count($uid, $time_limit, $coursecode=null) |
440 | 447 | { |
441 | 448 | if (empty($coursecode)) { |
@@ -498,7 +498,7 @@ |
||
498 | 498 | * @param int User id |
499 | 499 | * @param string plugin path |
500 | 500 | * @param integer $user_id |
501 | - * @return bool |
|
501 | + * @return false|string |
|
502 | 502 | */ |
503 | 503 | public static function close_user_block($user_id, $path) |
504 | 504 | { |
@@ -599,6 +599,8 @@ discard block |
||
599 | 599 | * @param int message id |
600 | 600 | * @param int message user id (receiver user id or sender user id) |
601 | 601 | * @param int group id (optional) |
602 | + * @param integer $message_id |
|
603 | + * @param integer $message_uid |
|
602 | 604 | * @return void |
603 | 605 | */ |
604 | 606 | public static function delete_message_attachment_file($message_id, $message_uid, $group_id = 0) |
@@ -643,7 +645,7 @@ discard block |
||
643 | 645 | * update messages by user id and message id |
644 | 646 | * @param int $user_id |
645 | 647 | * @param int $message_id |
646 | - * @return resource |
|
648 | + * @return false|null |
|
647 | 649 | */ |
648 | 650 | public static function update_message($user_id, $message_id) |
649 | 651 | { |
@@ -663,7 +665,7 @@ discard block |
||
663 | 665 | * @param int $user_id |
664 | 666 | * @param int $message_id |
665 | 667 | * @param string $type |
666 | - * @return bool |
|
668 | + * @return false|null |
|
667 | 669 | */ |
668 | 670 | public static function update_message_status($user_id, $message_id, $type) |
669 | 671 | { |
@@ -701,6 +703,7 @@ discard block |
||
701 | 703 | /** |
702 | 704 | * get messages by group id |
703 | 705 | * @param int group id |
706 | + * @param integer $group_id |
|
704 | 707 | * @return array |
705 | 708 | */ |
706 | 709 | public static function get_messages_by_group($group_id) |
@@ -1479,7 +1482,7 @@ discard block |
||
1479 | 1482 | * Sort date by desc from a multi-dimensional array |
1480 | 1483 | * @param array $array1 first array to compare |
1481 | 1484 | * @param array $array2 second array to compare |
1482 | - * @return bool |
|
1485 | + * @return integer |
|
1483 | 1486 | */ |
1484 | 1487 | public function order_desc_date($array1, $array2) |
1485 | 1488 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @param string $token |
20 | 20 | * |
21 | - * @return UserInterface |
|
21 | + * @return \FOS\UserBundle\Model\UserInterface|null |
|
22 | 22 | */ |
23 | 23 | public function findUserByConfirmationToken($token) |
24 | 24 | { |
@@ -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 | { |