@@ -71,6 +71,8 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * @inheritdoc |
74 | + * @param string $toolbar |
|
75 | + * @param string $prefix |
|
74 | 76 | */ |
75 | 77 | public function __construct( |
76 | 78 | $toolbar = null, |
@@ -253,7 +255,7 @@ discard block |
||
253 | 255 | } |
254 | 256 | |
255 | 257 | /** |
256 | - * @return array |
|
258 | + * @return string[] |
|
257 | 259 | */ |
258 | 260 | public function getNewPageBlock() |
259 | 261 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * Add attendances sheet inside table. This is the *list of* dates, not |
278 | 278 | * a specific date in itself. |
279 | 279 | * @param bool true for adding link in gradebook or false otherwise (optional) |
280 | - * @return int last attendance id |
|
280 | + * @return false|string last attendance id |
|
281 | 281 | */ |
282 | 282 | public function attendance_add($link_to_gradebook = false) |
283 | 283 | { |
@@ -354,6 +354,7 @@ discard block |
||
354 | 354 | * edit attendances inside table |
355 | 355 | * @param int attendance id |
356 | 356 | * @param bool true for adding link in gradebook or false otherwise (optional) |
357 | + * @param integer $attendance_id |
|
357 | 358 | * @return int last id |
358 | 359 | */ |
359 | 360 | public function attendance_edit($attendance_id, $link_to_gradebook = false) |
@@ -429,6 +430,7 @@ discard block |
||
429 | 430 | /** |
430 | 431 | * Restore attendance |
431 | 432 | * @param int|array one or many attendances id |
433 | + * @param integer $attendance_id |
|
432 | 434 | * @return int affected rows |
433 | 435 | */ |
434 | 436 | public function attendance_restore($attendance_id) |
@@ -478,7 +480,7 @@ discard block |
||
478 | 480 | |
479 | 481 | /** |
480 | 482 | * Delete attendances |
481 | - * @param int|array $attendance_id one or many attendances id |
|
483 | + * @param integer $attendance_id one or many attendances id |
|
482 | 484 | * @return int affected rows |
483 | 485 | */ |
484 | 486 | public function attendance_delete($attendance_id) |
@@ -530,7 +532,7 @@ discard block |
||
530 | 532 | |
531 | 533 | /** |
532 | 534 | * Changes visibility |
533 | - * @param int|array $attendanceId one or many attendances id |
|
535 | + * @param integer $attendanceId one or many attendances id |
|
534 | 536 | * @param int status |
535 | 537 | * |
536 | 538 | * @return int affected rows |
@@ -585,6 +587,7 @@ discard block |
||
585 | 587 | * Lock or unlock an attendance |
586 | 588 | * @param int attendance id |
587 | 589 | * @param bool True to lock or false otherwise |
590 | + * @param integer $attendance_id |
|
588 | 591 | */ |
589 | 592 | public function lock_attendance($attendance_id, $lock = true) |
590 | 593 | { |
@@ -918,7 +921,11 @@ discard block |
||
918 | 921 | * @param string Event type ('locked_attendance', 'done_attendance_sheet' ...) |
919 | 922 | * @param int Last edit user id |
920 | 923 | * @param string Calendar datetime value (optional, when event type is 'done_attendance_sheet') |
921 | - * @return int Affected rows |
|
924 | + * @param integer $attendance_id |
|
925 | + * @param string $lastedit_date |
|
926 | + * @param string $lastedit_type |
|
927 | + * @param integer $lastedit_user_id |
|
928 | + * @return false|string Affected rows |
|
922 | 929 | */ |
923 | 930 | public function save_attendance_sheet_log( |
924 | 931 | $attendance_id, |
@@ -963,6 +970,7 @@ discard block |
||
963 | 970 | /** |
964 | 971 | * Get number of done attendances inside current sheet |
965 | 972 | * @param int attendance id |
973 | + * @param integer $attendance_id |
|
966 | 974 | * @return int number of done attendances |
967 | 975 | */ |
968 | 976 | public static function get_done_attendance_calendar($attendance_id) |
@@ -1198,6 +1206,7 @@ discard block |
||
1198 | 1206 | /** |
1199 | 1207 | * Get next attendance calendar without presences (done attendances) |
1200 | 1208 | * @param int attendance id |
1209 | + * @param integer $attendance_id |
|
1201 | 1210 | * @return int attendance calendar id |
1202 | 1211 | */ |
1203 | 1212 | public function get_next_attendance_calendar_id($attendance_id) |
@@ -1226,6 +1235,7 @@ discard block |
||
1226 | 1235 | /** |
1227 | 1236 | * Get next attendance calendar datetime without presences (done attendances) |
1228 | 1237 | * @param int attendance id |
1238 | + * @param integer $attendance_id |
|
1229 | 1239 | * @return int UNIX time format datetime |
1230 | 1240 | */ |
1231 | 1241 | public function get_next_attendance_calendar_datetime($attendance_id) |
@@ -1254,6 +1264,7 @@ discard block |
||
1254 | 1264 | * Get user' score from current attendance |
1255 | 1265 | * @param int $user_id |
1256 | 1266 | * @param int $attendance_id |
1267 | + * @param integer $groupId |
|
1257 | 1268 | * @return int score |
1258 | 1269 | */ |
1259 | 1270 | public function get_user_score($user_id, $attendance_id, $groupId = null) |
@@ -1301,6 +1312,7 @@ discard block |
||
1301 | 1312 | /** |
1302 | 1313 | * Get attendance calendar data by id |
1303 | 1314 | * @param int attendance calendar id |
1315 | + * @param integer $calendar_id |
|
1304 | 1316 | * @return array attendance calendar data |
1305 | 1317 | */ |
1306 | 1318 | public function get_attendance_calendar_by_id($calendar_id) |
@@ -1423,6 +1435,7 @@ discard block |
||
1423 | 1435 | * Get number of attendance calendar inside current attendance |
1424 | 1436 | * @param int $attendance_id |
1425 | 1437 | * @param int $groupId |
1438 | + * @param boolean $done_attendance |
|
1426 | 1439 | * @return int number of dates in attendance calendar |
1427 | 1440 | */ |
1428 | 1441 | public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0) |
@@ -1648,7 +1661,6 @@ discard block |
||
1648 | 1661 | /** |
1649 | 1662 | * @param int $calendarId |
1650 | 1663 | * @param int $courseId |
1651 | - * @param int $groupId |
|
1652 | 1664 | * @return array |
1653 | 1665 | */ |
1654 | 1666 | public function getGroupListByAttendanceCalendar($calendarId, $courseId) |
@@ -1688,7 +1700,6 @@ discard block |
||
1688 | 1700 | /** |
1689 | 1701 | * @param int $calendarId |
1690 | 1702 | * @param int $courseId |
1691 | - * @param int $groupId |
|
1692 | 1703 | * |
1693 | 1704 | * @return array |
1694 | 1705 | */ |
@@ -1789,6 +1800,8 @@ discard block |
||
1789 | 1800 | * edit a datetime inside attendance calendar table |
1790 | 1801 | * @param int attendance calendar id |
1791 | 1802 | * @param int attendance id |
1803 | + * @param integer $calendar_id |
|
1804 | + * @param integer $attendance_id |
|
1792 | 1805 | * @return int affected rows |
1793 | 1806 | */ |
1794 | 1807 | public function attendance_calendar_edit($calendar_id, $attendance_id) |
@@ -1828,6 +1841,8 @@ discard block |
||
1828 | 1841 | * @param int attendance calendar id |
1829 | 1842 | * @param int attendance id |
1830 | 1843 | * @param bool true for removing all calendar inside current attendance, false for removing by calendar id |
1844 | + * @param integer $calendar_id |
|
1845 | + * @param integer $attendance_id |
|
1831 | 1846 | * @return int affected rows |
1832 | 1847 | */ |
1833 | 1848 | public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false) |
@@ -1890,6 +1905,9 @@ discard block |
||
1890 | 1905 | $this->course_id = $course_id; |
1891 | 1906 | } |
1892 | 1907 | |
1908 | + /** |
|
1909 | + * @param string $datetime |
|
1910 | + */ |
|
1893 | 1911 | public function set_date_time($datetime) |
1894 | 1912 | { |
1895 | 1913 | $this->date_time = $datetime; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Deletes all survey invitations of a user |
48 | 48 | * @param int $user_id |
49 | 49 | * |
50 | - * @return boolean |
|
50 | + * @return false|null |
|
51 | 51 | * @assert ('') === false |
52 | 52 | */ |
53 | 53 | public static function delete_all_survey_invitations_by_user($user_id) |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Retrieves all the survey information |
105 | 105 | * |
106 | 106 | * @param integer $survey_id the id of the survey |
107 | - * @param boolean $shared this parameter determines if |
|
107 | + * @param integer $shared this parameter determines if |
|
108 | 108 | * we have to get the information of a survey from the central (shared) database or from the |
109 | 109 | * course database |
110 | 110 | * @param string course code optional |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | * This function deletes a survey (and also all the question in that survey |
572 | 572 | * |
573 | 573 | * @param int $survey_id id of the survey that has to be deleted |
574 | - * @return true |
|
574 | + * @return boolean |
|
575 | 575 | * |
576 | 576 | * @author Patrick Cool <[email protected]>, Ghent University |
577 | 577 | * @version January 2007 |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * |
757 | 757 | * @param int $survey_id id of the survey that has to be duplicated |
758 | 758 | * @param int $courseId id of the course which survey has to be duplicated |
759 | - * @return true |
|
759 | + * @return boolean |
|
760 | 760 | * |
761 | 761 | * @author Eric Marguin <[email protected]>, Elixir Interactive |
762 | 762 | * @version October 2007 |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | /** |
797 | 797 | * This function recalculates the number of people who have taken the survey (=filled at least one question) |
798 | 798 | * |
799 | - * @param int $survey_id the id of the survey somebody |
|
799 | + * @param int $survey_data the id of the survey somebody |
|
800 | 800 | * @return true |
801 | 801 | * |
802 | 802 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | * This function deletes a shared survey question from the main database and all its options |
1368 | 1368 | * |
1369 | 1369 | * @param int $question_id the id of the question |
1370 | - * @param int $shared |
|
1370 | + * @param integer $survey_id |
|
1371 | 1371 | * |
1372 | 1372 | * @todo delete all the options of this question |
1373 | 1373 | * |
@@ -1494,8 +1494,8 @@ discard block |
||
1494 | 1494 | * This function deletes all the options of the questions of a given survey |
1495 | 1495 | * This function is normally only called when a survey is deleted |
1496 | 1496 | * |
1497 | - * @param $survey_id the id of the survey that has to be deleted |
|
1498 | - * @return true |
|
1497 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1498 | + * @return boolean |
|
1499 | 1499 | * |
1500 | 1500 | * @author Patrick Cool <[email protected]>, Ghent University |
1501 | 1501 | * @version January 2007 |
@@ -1562,8 +1562,8 @@ discard block |
||
1562 | 1562 | * This function deletes all the answers anyone has given on this survey |
1563 | 1563 | * This function is normally only called when a survey is deleted |
1564 | 1564 | * |
1565 | - * @param $survey_id the id of the survey that has to be deleted |
|
1566 | - * @return true |
|
1565 | + * @param integer $survey_id the id of the survey that has to be deleted |
|
1566 | + * @return boolean |
|
1567 | 1567 | * |
1568 | 1568 | * @todo write the function |
1569 | 1569 | * |
@@ -1838,7 +1838,7 @@ discard block |
||
1838 | 1838 | /** |
1839 | 1839 | * This function checks the parameters that are used in this page |
1840 | 1840 | * |
1841 | - * @return string The header, an error and the footer if any parameter fails, else it returns true |
|
1841 | + * @return null|boolean The header, an error and the footer if any parameter fails, else it returns true |
|
1842 | 1842 | * @author Patrick Cool <[email protected]>, Ghent University |
1843 | 1843 | * @version February 2007 |
1844 | 1844 | */ |
@@ -2392,6 +2392,7 @@ discard block |
||
2392 | 2392 | * Display score data about a survey question |
2393 | 2393 | * @param array Question info |
2394 | 2394 | * @param integer The offset of results shown |
2395 | + * @param integer $offset |
|
2395 | 2396 | * @return void (direct output) |
2396 | 2397 | */ |
2397 | 2398 | public static function display_question_report_score($survey_data, $question, $offset) |
@@ -3032,7 +3033,7 @@ discard block |
||
3032 | 3033 | * Quite similar to display_complete_report(), returns an HTML string |
3033 | 3034 | * that can be used in a csv file |
3034 | 3035 | * @todo consider merging this function with display_complete_report |
3035 | - * @return string The contents of a csv file |
|
3036 | + * @return false|null The contents of a csv file |
|
3036 | 3037 | * @author Patrick Cool <[email protected]>, Ghent University |
3037 | 3038 | * @version February 2007 |
3038 | 3039 | */ |
@@ -3254,7 +3255,7 @@ discard block |
||
3254 | 3255 | * @param array User's answers |
3255 | 3256 | * @param mixed User ID or user details as string - Used as a string in the result string |
3256 | 3257 | * @param boolean Whether to display user fields or not |
3257 | - * @return string One line of the csv file |
|
3258 | + * @return string[] One line of the csv file |
|
3258 | 3259 | */ |
3259 | 3260 | public static function export_complete_report_row_xls( |
3260 | 3261 | $survey_data, |
@@ -3560,6 +3561,7 @@ discard block |
||
3560 | 3561 | * |
3561 | 3562 | * @param integer Survey ID |
3562 | 3563 | * @param integer Question ID |
3564 | + * @param integer $survey_id |
|
3563 | 3565 | * @return Array Array containing all answers of all users, grouped by user |
3564 | 3566 | * |
3565 | 3567 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -3854,7 +3856,7 @@ discard block |
||
3854 | 3856 | |
3855 | 3857 | /** |
3856 | 3858 | * @param $params |
3857 | - * @return bool|int |
|
3859 | + * @return false|string |
|
3858 | 3860 | */ |
3859 | 3861 | public static function save_invitation($params) |
3860 | 3862 | { |
@@ -3908,6 +3910,7 @@ discard block |
||
3908 | 3910 | * |
3909 | 3911 | * @param int invitedUser - the userId (course user) or emailaddress of additional user |
3910 | 3912 | * $param string $invitation_code - the unique invitation code for the URL |
3913 | + * @param string|null $invitation_text |
|
3911 | 3914 | * @return void |
3912 | 3915 | */ |
3913 | 3916 | public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text) |
@@ -4802,7 +4805,7 @@ discard block |
||
4802 | 4805 | * @author Isaac Flores Paz <[email protected]> |
4803 | 4806 | * @param int $user_id - User ID |
4804 | 4807 | * @param string $survey_code |
4805 | - * @param int $user_id_answer - User in survey answer table (user id or anonymus) |
|
4808 | + * @param int $user_answer - User in survey answer table (user id or anonymus) |
|
4806 | 4809 | * |
4807 | 4810 | * @return boolean |
4808 | 4811 | */ |
@@ -4975,7 +4978,7 @@ discard block |
||
4975 | 4978 | /** |
4976 | 4979 | * Check if the current survey has answers |
4977 | 4980 | * |
4978 | - * @param $surveyId |
|
4981 | + * @param integer $surveyId |
|
4979 | 4982 | * @return boolean return true if the survey has answers, false otherwise |
4980 | 4983 | */ |
4981 | 4984 | public static function checkIfSurveyHasAnswers($surveyId) |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @return int |
|
356 | + * @return string |
|
357 | 357 | */ |
358 | 358 | public function selectPassPercentage() |
359 | 359 | { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * tells if questions are selected randomly, and if so returns the draws |
463 | 463 | * |
464 | 464 | * @author Olivier Brouckaert |
465 | - * @return integer - 0 if not random, otherwise the draws |
|
465 | + * @return boolean - 0 if not random, otherwise the draws |
|
466 | 466 | */ |
467 | 467 | public function isRandom() |
468 | 468 | { |
@@ -2838,7 +2838,7 @@ discard block |
||
2838 | 2838 | * @param int int lp id |
2839 | 2839 | * @param int int lp item id |
2840 | 2840 | * @param int int lp item_view id |
2841 | - * @param float $weight |
|
2841 | + * @param integer $weight |
|
2842 | 2842 | * @param array question list |
2843 | 2843 | */ |
2844 | 2844 | public function save_stat_track_exercise_info( |
@@ -5246,7 +5246,7 @@ discard block |
||
5246 | 5246 | * @param int $exe_id |
5247 | 5247 | * @param float $score |
5248 | 5248 | * @param float $weight |
5249 | - * @return bool |
|
5249 | + * @return false|null |
|
5250 | 5250 | */ |
5251 | 5251 | public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id, $score, $weight) |
5252 | 5252 | { |
@@ -5445,6 +5445,9 @@ discard block |
||
5445 | 5445 | } |
5446 | 5446 | } |
5447 | 5447 | |
5448 | + /** |
|
5449 | + * @param integer $exe_id |
|
5450 | + */ |
|
5448 | 5451 | function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id) |
5449 | 5452 | { |
5450 | 5453 | if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) { |
@@ -5596,7 +5599,7 @@ discard block |
||
5596 | 5599 | * @param int Maximum number of attempts (0 if no limit) |
5597 | 5600 | * @param int Feedback type |
5598 | 5601 | * @todo this was function was added due the import exercise via CSV |
5599 | - * @return int New exercise ID |
|
5602 | + * @return string New exercise ID |
|
5600 | 5603 | */ |
5601 | 5604 | public function createExercise( |
5602 | 5605 | $title, |
@@ -6931,7 +6934,7 @@ discard block |
||
6931 | 6934 | * @param bool $show_comment |
6932 | 6935 | * @param null $exercise_feedback |
6933 | 6936 | * @param bool $show_answers |
6934 | - * @param null $modelType |
|
6937 | + * @param integer $modelType |
|
6935 | 6938 | * @param bool $categoryMinusOne |
6936 | 6939 | * @return bool|null|string |
6937 | 6940 | */ |
@@ -3132,7 +3132,7 @@ discard block |
||
3132 | 3132 | * @param integer $thread_qualify |
3133 | 3133 | * @param integer $qualify_time |
3134 | 3134 | * @param integer $session_id |
3135 | - * @return array optional |
|
3135 | + * @return string|null optional |
|
3136 | 3136 | * @author Isaac Flores <[email protected]>, U.N.A.S University |
3137 | 3137 | * @version October 2008, dokeos 1.8.6 |
3138 | 3138 | */ |
@@ -3952,7 +3952,7 @@ discard block |
||
3952 | 3952 | |
3953 | 3953 | /** |
3954 | 3954 | * This function is used to find all the information about what's new in the forum tool |
3955 | - * @return void |
|
3955 | + * @return false|null |
|
3956 | 3956 | * |
3957 | 3957 | * @author Patrick Cool <[email protected]>, Ghent University |
3958 | 3958 | * @version february 2006, dokeos 1.8 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * |
52 | - * @return StaticPlugin |
|
52 | + * @return BuyCoursesPlugin |
|
53 | 53 | */ |
54 | 54 | static function create() |
55 | 55 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Save a transfer account information |
279 | 279 | * @param array $params The transfer account |
280 | - * @return int Rows affected. Otherwise return false |
|
280 | + * @return false|string Rows affected. Otherwise return false |
|
281 | 281 | */ |
282 | 282 | public function saveTransferAccount($params) |
283 | 283 | { |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | /** |
691 | 691 | * Get session info |
692 | 692 | * @param array $sessionId The session ID |
693 | - * @return array |
|
693 | + * @return Session |
|
694 | 694 | */ |
695 | 695 | public function getSessionInfo($sessionId) |
696 | 696 | { |
@@ -783,7 +783,7 @@ discard block |
||
783 | 783 | * Register a sale |
784 | 784 | * @param int $itemId The product ID |
785 | 785 | * @param int $paymentType The payment type |
786 | - * @return boolean |
|
786 | + * @return false|string |
|
787 | 787 | */ |
788 | 788 | public function registerSale($itemId, $paymentType) |
789 | 789 | { |
@@ -965,7 +965,7 @@ discard block |
||
965 | 965 | |
966 | 966 | /** |
967 | 967 | * Get payment types |
968 | - * @return array |
|
968 | + * @return string[] |
|
969 | 969 | */ |
970 | 970 | public function getPaymentTypes() |
971 | 971 | { |
@@ -1004,7 +1004,7 @@ discard block |
||
1004 | 1004 | |
1005 | 1005 | /** |
1006 | 1006 | * Get the statuses for sales |
1007 | - * @return array |
|
1007 | + * @return string[] |
|
1008 | 1008 | */ |
1009 | 1009 | public function getSaleStatuses() |
1010 | 1010 | { |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | |
1018 | 1018 | /** |
1019 | 1019 | * Get the statuses for Payouts |
1020 | - * @return array |
|
1020 | + * @return string[] |
|
1021 | 1021 | */ |
1022 | 1022 | public function getPayoutStatuses() |
1023 | 1023 | { |
@@ -1030,7 +1030,7 @@ discard block |
||
1030 | 1030 | |
1031 | 1031 | /** |
1032 | 1032 | * Get the list of product types |
1033 | - * @return array |
|
1033 | + * @return string[] |
|
1034 | 1034 | */ |
1035 | 1035 | public function getProductTypes() |
1036 | 1036 | { |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | |
1043 | 1043 | /** |
1044 | 1044 | * Get the list of service types |
1045 | - * @return array |
|
1045 | + * @return string[] |
|
1046 | 1046 | */ |
1047 | 1047 | public function getServiceTypes() |
1048 | 1048 | { |
@@ -1424,7 +1424,7 @@ discard block |
||
1424 | 1424 | /** |
1425 | 1425 | * Register a item |
1426 | 1426 | * @param array $itemData The item data |
1427 | - * @return int The item ID. Otherwise return false |
|
1427 | + * @return false|string The item ID. Otherwise return false |
|
1428 | 1428 | */ |
1429 | 1429 | public function registerItem(array $itemData) |
1430 | 1430 | { |
@@ -1582,7 +1582,7 @@ discard block |
||
1582 | 1582 | /** |
1583 | 1583 | * Verify if the beneficiary have a paypal account |
1584 | 1584 | * @param int $userId |
1585 | - * @return true if the user have a paypal account, false if not |
|
1585 | + * @return boolean if the user have a paypal account, false if not |
|
1586 | 1586 | */ |
1587 | 1587 | public function verifyPaypalAccountByBeneficiary($userId) |
1588 | 1588 | { |
@@ -1704,7 +1704,7 @@ discard block |
||
1704 | 1704 | /** |
1705 | 1705 | * Register addicional service |
1706 | 1706 | * @param array params $service |
1707 | - * @return mixed response |
|
1707 | + * @return string|false response |
|
1708 | 1708 | */ |
1709 | 1709 | public function storeService($service) |
1710 | 1710 | { |
@@ -1861,7 +1861,7 @@ discard block |
||
1861 | 1861 | |
1862 | 1862 | /** |
1863 | 1863 | * Get the statuses for sales |
1864 | - * @return array |
|
1864 | + * @return string[] |
|
1865 | 1865 | */ |
1866 | 1866 | public function getServiceSaleStatuses() |
1867 | 1867 | { |
@@ -2118,7 +2118,7 @@ discard block |
||
2118 | 2118 | * @param int $paymentType The payment type |
2119 | 2119 | * @param int $infoSelect The ID for Service Type |
2120 | 2120 | * @param int $trial trial mode |
2121 | - * @return boolean |
|
2121 | + * @return false|string |
|
2122 | 2122 | */ |
2123 | 2123 | public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null) |
2124 | 2124 | { |
@@ -17,6 +17,9 @@ |
||
17 | 17 | const BASE_URL = "https://integ-pago.culqi.com/api/v1"; |
18 | 18 | |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $method |
|
22 | + */ |
|
20 | 23 | public function request($method, $url, $api_key, $data = NULL, $headers= array("Content-Type" => "application/json", "Accept" => "application/json") ) { |
21 | 24 | try { |
22 | 25 | $options = array( |
@@ -3,6 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class Resource extends Client { |
5 | 5 | |
6 | + /** |
|
7 | + * @param Culqi $culqi |
|
8 | + */ |
|
6 | 9 | public function __construct($culqi) |
7 | 10 | { |
8 | 11 | $this->culqi = $culqi; |
@@ -226,6 +226,7 @@ discard block |
||
226 | 226 | */ |
227 | 227 | /** |
228 | 228 | * Send a GET request |
229 | + * @param string $url |
|
229 | 230 | */ |
230 | 231 | public static function get($url, $headers = array(), $options = array()) { |
231 | 232 | return self::request($url, $headers, null, self::GET, $options); |
@@ -240,6 +241,7 @@ discard block |
||
240 | 241 | |
241 | 242 | /** |
242 | 243 | * Send a DELETE request |
244 | + * @param string $url |
|
243 | 245 | */ |
244 | 246 | public static function delete($url, $headers = array(), $options = array()) { |
245 | 247 | return self::request($url, $headers, null, self::DELETE, $options); |
@@ -263,6 +265,7 @@ discard block |
||
263 | 265 | */ |
264 | 266 | /** |
265 | 267 | * Send a POST request |
268 | + * @param string $url |
|
266 | 269 | */ |
267 | 270 | public static function post($url, $headers = array(), $data = array(), $options = array()) { |
268 | 271 | return self::request($url, $headers, $data, self::POST, $options); |
@@ -288,6 +291,7 @@ discard block |
||
288 | 291 | * specification recommends that should send an ETag |
289 | 292 | * |
290 | 293 | * @link https://tools.ietf.org/html/rfc5789 |
294 | + * @param string $url |
|
291 | 295 | */ |
292 | 296 | public static function patch($url, $headers, $data = array(), $options = array()) { |
293 | 297 | return self::request($url, $headers, $data, self::PATCH, $options); |