@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @param array Users |
38 | 38 | * @param int Set to 1 to enable and to 0 to disable |
39 | + * @param integer $state |
|
39 | 40 | * @return array Array of results |
40 | 41 | */ |
41 | 42 | protected function changeUsersActiveState($users, $state) { |
@@ -217,6 +218,11 @@ discard block |
||
217 | 218 | * @param string Phone. |
218 | 219 | * @param string Expiration date |
219 | 220 | * @param array Extra fields. An array with elements of the form ('field_name' => 'name_of_the_field', 'field_value' => 'value_of_the_field'). |
221 | + * @param integer|null $visibility |
|
222 | + * @param string|null $email |
|
223 | + * @param string|null $language |
|
224 | + * @param string|null $phone |
|
225 | + * @param string|null $expiration_date |
|
220 | 226 | * @return mixed New user id generated by the system, WSError otherwise |
221 | 227 | */ |
222 | 228 | protected function createUserHelper($firstname, $lastname, $status, $login, $password, $encrypt_method, $user_id_field_name, $user_id_value, $visibility, $email, $language, $phone, $expiration_date, $extras = array()) { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | * @param array $arr1 first array |
213 | 213 | * @param array $arr2 second array |
214 | 214 | * |
215 | - * @return array difference between the two arrays |
|
215 | + * @return string difference between the two arrays |
|
216 | 216 | */ |
217 | 217 | function diff($arr1, $arr2) |
218 | 218 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Create a group of select from a date |
159 | 159 | * @param FormValidator $form |
160 | 160 | * @param string $prefix |
161 | - * @return array |
|
161 | + * @return HTML_QuickForm_element[] |
|
162 | 162 | */ |
163 | 163 | function create_group_date_select($form, $prefix = '') |
164 | 164 | { |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | * @author Bert Vanderkimpen |
753 | 753 | * @author Yannick Warnier <[email protected]> Adaptation for work tool |
754 | 754 | * @param string $base_work_dir Base work dir (.../work) |
755 | - * @param string $desiredDirName complete path of the desired name |
|
755 | + * @param string $desired_dir_name complete path of the desired name |
|
756 | 756 | * |
757 | 757 | * @return string actual directory name if it succeeds, boolean false otherwise |
758 | 758 | */ |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | /** |
775 | 775 | * Delete a work-tool directory |
776 | 776 | * @param int $id work directory id to delete |
777 | - * @return integer -1 on error |
|
777 | + * @return boolean|null -1 on error |
|
778 | 778 | */ |
779 | 779 | function deleteDirWork($id) |
780 | 780 | { |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | * Update the url of a dir in the student_publication table |
918 | 918 | * @param array $work_data work original data |
919 | 919 | * @param string $newPath Example: "folder1" |
920 | - * @return bool |
|
920 | + * @return boolean|null |
|
921 | 921 | */ |
922 | 922 | function updateDirName($work_data, $newPath) |
923 | 923 | { |
@@ -974,6 +974,7 @@ discard block |
||
974 | 974 | /** |
975 | 975 | * Transform an all directory structure (only directories) in an array |
976 | 976 | * @param string path of the directory |
977 | + * @param string $directory |
|
977 | 978 | * @return array the directory structure into an array |
978 | 979 | * @author Julio Montoya Dokeos |
979 | 980 | * @version April 2008 |
@@ -1043,7 +1044,7 @@ discard block |
||
1043 | 1044 | * @param string the path of the directory |
1044 | 1045 | * @param boolean true if we want the total quantity of files |
1045 | 1046 | * include in others child directories, false only files in the directory |
1046 | - * @return array the first element is an integer with the number of files |
|
1047 | + * @return integer[] the first element is an integer with the number of files |
|
1047 | 1048 | * in the folder, the second element is the number of directories |
1048 | 1049 | * @author Julio Montoya |
1049 | 1050 | * @version April 2008 |
@@ -2319,7 +2320,7 @@ discard block |
||
2319 | 2320 | } |
2320 | 2321 | |
2321 | 2322 | /** |
2322 | - * @param $name |
|
2323 | + * @param string $name |
|
2323 | 2324 | * @param $values |
2324 | 2325 | * @param string $checked |
2325 | 2326 | * @return string |
@@ -2845,7 +2846,7 @@ discard block |
||
2845 | 2846 | * @param int $userId |
2846 | 2847 | * @param int $workId |
2847 | 2848 | * @param int $courseId |
2848 | - * @return bool |
|
2849 | + * @return boolean|null |
|
2849 | 2850 | */ |
2850 | 2851 | function allowOnlySubscribedUser($userId, $workId, $courseId) |
2851 | 2852 | { |
@@ -2963,7 +2964,7 @@ discard block |
||
2963 | 2964 | /** |
2964 | 2965 | * Get total score from a work list |
2965 | 2966 | * @param $workList |
2966 | - * @return int|null |
|
2967 | + * @return integer |
|
2967 | 2968 | */ |
2968 | 2969 | function getTotalWorkScore($workList) |
2969 | 2970 | { |
@@ -2979,7 +2980,7 @@ discard block |
||
2979 | 2980 | * Get comment count from a work list (docs sent by students) |
2980 | 2981 | * @param array $workList |
2981 | 2982 | * @param array $courseInfo |
2982 | - * @return int|null |
|
2983 | + * @return integer |
|
2983 | 2984 | */ |
2984 | 2985 | function getTotalWorkComment($workList, $courseInfo = array()) |
2985 | 2986 | { |
@@ -3122,6 +3123,7 @@ discard block |
||
3122 | 3123 | * @param int $parentId |
3123 | 3124 | * @param array $courseInfo |
3124 | 3125 | * @param int $sessionId |
3126 | + * @param integer $userId |
|
3125 | 3127 | * @return int |
3126 | 3128 | */ |
3127 | 3129 | function getLastWorkStudentFromParentByUser( |
@@ -3738,12 +3740,11 @@ discard block |
||
3738 | 3740 | |
3739 | 3741 | /** |
3740 | 3742 | * Creates a new task (directory) in the assignment tool |
3741 | - * @param array $params |
|
3742 | 3743 | * @param int $user_id |
3743 | 3744 | * @param array $courseInfo |
3744 | 3745 | * @param int $group_id |
3745 | 3746 | * @param int $session_id |
3746 | - * @return bool|int |
|
3747 | + * @return string|false |
|
3747 | 3748 | * @note $params can have the following elements, but should at least have the 2 first ones: ( |
3748 | 3749 | * 'new_dir' => 'some-name', |
3749 | 3750 | * 'description' => 'some-desc', |
@@ -4239,7 +4240,7 @@ discard block |
||
4239 | 4240 | } |
4240 | 4241 | |
4241 | 4242 | /** |
4242 | - * @return array |
|
4243 | + * @return string[] |
|
4243 | 4244 | */ |
4244 | 4245 | function getUploadDocumentType() |
4245 | 4246 | { |
@@ -4611,7 +4612,7 @@ discard block |
||
4611 | 4612 | * @param int Session ID |
4612 | 4613 | * @param $correction |
4613 | 4614 | * |
4614 | - * @return array|bool |
|
4615 | + * @return boolean |
|
4615 | 4616 | */ |
4616 | 4617 | function getFileContents($id, $course_info, $sessionId = 0, $correction = false) |
4617 | 4618 | { |
@@ -4729,7 +4730,7 @@ discard block |
||
4729 | 4730 | * @param int $userId |
4730 | 4731 | * @param array $courseInfo |
4731 | 4732 | * @param string $format |
4732 | - * @return bool |
|
4733 | + * @return false|null |
|
4733 | 4734 | */ |
4734 | 4735 | function exportAllWork($userId, $courseInfo, $format = 'pdf') |
4735 | 4736 | { |
@@ -4777,7 +4778,7 @@ discard block |
||
4777 | 4778 | * @param array $courseInfo |
4778 | 4779 | * @param int $sessionId |
4779 | 4780 | * @param string $format |
4780 | - * @return bool |
|
4781 | + * @return false|null |
|
4781 | 4782 | */ |
4782 | 4783 | function exportAllStudentWorkFromPublication( |
4783 | 4784 | $workId, |
@@ -4915,7 +4916,7 @@ discard block |
||
4915 | 4916 | * Downloads all user files per user |
4916 | 4917 | * @param int $userId |
4917 | 4918 | * @param array $courseInfo |
4918 | - * @return bool |
|
4919 | + * @return false|null |
|
4919 | 4920 | */ |
4920 | 4921 | function downloadAllFilesPerUser($userId, $courseInfo) |
4921 | 4922 | { |
@@ -5029,7 +5030,7 @@ discard block |
||
5029 | 5030 | /** |
5030 | 5031 | * @param array $courseInfo |
5031 | 5032 | * @param int $workId |
5032 | - * @return bool |
|
5033 | + * @return boolean|null |
|
5033 | 5034 | */ |
5034 | 5035 | function protectWork($courseInfo, $workId) |
5035 | 5036 | { |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * Register a user into a queue for a session |
371 | 371 | * @param $userId |
372 | 372 | * @param $sessionId |
373 | - * @return bool|int |
|
373 | + * @return false|string |
|
374 | 374 | */ |
375 | 375 | public function addToQueue($userId, $sessionId) |
376 | 376 | { |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * Register message with type and status |
397 | 397 | * @param $mailId |
398 | 398 | * @param $userId |
399 | - * @param $sessionId |
|
399 | + * @param integer $sessionId |
|
400 | 400 | * @return bool|int |
401 | 401 | */ |
402 | 402 | public function saveLastMessage($mailId, $userId, $sessionId) |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | |
510 | 510 | /** |
511 | 511 | * Check if session is open for subscription |
512 | - * @param $sessionId |
|
512 | + * @param integer $sessionId |
|
513 | 513 | * @param string $fieldVariable |
514 | 514 | * @return bool |
515 | 515 | */ |
@@ -531,8 +531,8 @@ discard block |
||
531 | 531 | |
532 | 532 | /** |
533 | 533 | * Check if user is in the session's target group based on its area |
534 | - * @param $userId |
|
535 | - * @param $sessionId |
|
534 | + * @param integer $userId |
|
535 | + * @param integer $sessionId |
|
536 | 536 | * @param string $userFieldVariable |
537 | 537 | * @param string $sessionFieldVariable |
538 | 538 | * @return bool |
@@ -1002,7 +1002,7 @@ discard block |
||
1002 | 1002 | /** |
1003 | 1003 | * Return the session details data from a session ID (including the extra |
1004 | 1004 | * fields used for the advanced subscription mechanism) |
1005 | - * @param $sessionId |
|
1005 | + * @param integer $sessionId |
|
1006 | 1006 | * @return bool|mixed |
1007 | 1007 | */ |
1008 | 1008 | public function getSessionDetails($sessionId) |
@@ -1102,7 +1102,7 @@ discard block |
||
1102 | 1102 | |
1103 | 1103 | /** |
1104 | 1104 | * Return the url to go to session |
1105 | - * @param $sessionId |
|
1105 | + * @param integer $sessionId |
|
1106 | 1106 | * |
1107 | 1107 | * @return string |
1108 | 1108 | */ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Returns a meeting "join" URL |
242 | 242 | * @param string The name of the meeting (usually the course code) |
243 | - * @return mixed The URL to join the meeting, or false on error |
|
243 | + * @return false|string The URL to join the meeting, or false on error |
|
244 | 244 | * @todo implement moderator pass |
245 | 245 | * @assert ('') === false |
246 | 246 | * @assert ('abcdefghijklmnopqrstuvwxyzabcdefghijklmno') === false |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * Closes a meeting (usually when the user click on the close button from |
648 | 648 | * the conferences listing. |
649 | 649 | * @param string The internal ID of the meeting (id field for this meeting) |
650 | - * @return void |
|
650 | + * @return false|null |
|
651 | 651 | * @assert (0) === false |
652 | 652 | */ |
653 | 653 | public function endMeeting($id) |
@@ -59,6 +59,9 @@ |
||
59 | 59 | $this->_bbbServerBaseUrl = CONFIG_SERVER_BASE_URL; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $url |
|
64 | + */ |
|
62 | 65 | private function _processXmlResponse($url){ |
63 | 66 | /* |
64 | 67 | A private utility method used by other public methods to process XML responses. |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * |
35 | - * @return StaticPlugin |
|
35 | + * @return BuyCoursesPlugin |
|
36 | 36 | */ |
37 | 37 | static function create() |
38 | 38 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Save a transfer account information |
201 | 201 | * @param array $params The transfer account |
202 | - * @return int Rows affected. Otherwise return false |
|
202 | + * @return false|string Rows affected. Otherwise return false |
|
203 | 203 | */ |
204 | 204 | public function saveTransferAccount($params) |
205 | 205 | { |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | /** |
610 | 610 | * Get session info |
611 | 611 | * @param array $sessionId The session ID |
612 | - * @return array |
|
612 | + * @return Chamilo\CoreBundle\Entity\Session |
|
613 | 613 | */ |
614 | 614 | public function getSessionInfo($sessionId) |
615 | 615 | { |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | * Register a sale |
703 | 703 | * @param int $itemId The product ID |
704 | 704 | * @param int $paymentType The payment type |
705 | - * @return boolean |
|
705 | + * @return false|string |
|
706 | 706 | */ |
707 | 707 | public function registerSale($itemId, $paymentType) |
708 | 708 | { |
@@ -884,7 +884,7 @@ discard block |
||
884 | 884 | |
885 | 885 | /** |
886 | 886 | * Get payment types |
887 | - * @return array |
|
887 | + * @return string[] |
|
888 | 888 | */ |
889 | 889 | public function getPaymentTypes() |
890 | 890 | { |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | |
923 | 923 | /** |
924 | 924 | * Get the statuses for sales |
925 | - * @return array |
|
925 | + * @return string[] |
|
926 | 926 | */ |
927 | 927 | public function getSaleStatuses() |
928 | 928 | { |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | |
936 | 936 | /** |
937 | 937 | * Get the statuses for Payouts |
938 | - * @return array |
|
938 | + * @return string[] |
|
939 | 939 | */ |
940 | 940 | public function getPayoutStatuses() |
941 | 941 | { |
@@ -948,7 +948,7 @@ discard block |
||
948 | 948 | |
949 | 949 | /** |
950 | 950 | * Get the list of product types |
951 | - * @return array |
|
951 | + * @return string[] |
|
952 | 952 | */ |
953 | 953 | public function getProductTypes() |
954 | 954 | { |
@@ -1329,7 +1329,7 @@ discard block |
||
1329 | 1329 | /** |
1330 | 1330 | * Register a item |
1331 | 1331 | * @param array $itemData The item data |
1332 | - * @return int The item ID. Otherwise return false |
|
1332 | + * @return false|string The item ID. Otherwise return false |
|
1333 | 1333 | */ |
1334 | 1334 | public function registerItem(array $itemData) |
1335 | 1335 | { |
@@ -1487,7 +1487,7 @@ discard block |
||
1487 | 1487 | /** |
1488 | 1488 | * Verify if the beneficiary have a paypal account |
1489 | 1489 | * @param int $userId |
1490 | - * @return true if the user have a paypal account, false if not |
|
1490 | + * @return boolean if the user have a paypal account, false if not |
|
1491 | 1491 | */ |
1492 | 1492 | public function verifyPaypalAccountByBeneficiary($userId) |
1493 | 1493 | { |
@@ -324,6 +324,8 @@ |
||
324 | 324 | * @nvpStr is nvp string. |
325 | 325 | * returns an associtive array containing the response from the server. |
326 | 326 | * |
327 | + * @param string $methodName |
|
328 | + * @param string $nvpStr |
|
327 | 329 | */ |
328 | 330 | function hash_call($methodName, $nvpStr) |
329 | 331 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * create (a singleton function that ensures ClockworksmsPlugin instance is |
16 | 16 | * created only once. If it is already created, it returns the instance) |
17 | - * @return object ClockworksmsPlugin instance |
|
17 | + * @return ClockworksmsPlugin ClockworksmsPlugin instance |
|
18 | 18 | */ |
19 | 19 | public static function create() |
20 | 20 | { |