@@ -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 |
@@ -572,14 +572,14 @@ discard block |
||
572 | 572 | * @param int $allDay is all day 'true' or 'false' |
573 | 573 | * @param string $title |
574 | 574 | * @param string $content |
575 | - * @param array $usersToSend |
|
575 | + * @param string[] $usersToSend |
|
576 | 576 | * @param array $attachmentArray |
577 | 577 | * @param array $attachmentCommentList |
578 | 578 | * @param string $comment |
579 | 579 | * @param string $color |
580 | 580 | * @param bool $addAnnouncement |
581 | 581 | * |
582 | - * @return null|false |
|
582 | + * @return null|boolean |
|
583 | 583 | */ |
584 | 584 | public function editEvent( |
585 | 585 | $id, |
@@ -1210,6 +1210,7 @@ discard block |
||
1210 | 1210 | * Gets a single event |
1211 | 1211 | * |
1212 | 1212 | * @param int event id |
1213 | + * @param integer $id |
|
1213 | 1214 | * @return array |
1214 | 1215 | */ |
1215 | 1216 | public function get_event($id) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param string $course Course code |
90 | 90 | * @param integer $lp_id |
91 | 91 | * @param integer $user_id |
92 | - * @return mixed True on success, false on error |
|
92 | + * @return boolean True on success, false on error |
|
93 | 93 | */ |
94 | 94 | public function __construct($course, $lp_id, $user_id) |
95 | 95 | { |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | * @param int $max_time_allowed |
493 | 493 | * @param int $userId |
494 | 494 | * |
495 | - * @return int |
|
495 | + * @return false|string |
|
496 | 496 | */ |
497 | 497 | public function add_item( |
498 | 498 | $parent, |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | * @param array $courseInfo |
1043 | 1043 | * @param integer Learnpath ID |
1044 | 1044 | * @param string Whether to delete data or keep it (default: 'keep', others: 'remove') |
1045 | - * @return boolean True on success, false on failure (might change that to return number of elements deleted) |
|
1045 | + * @return false|null True on success, false on failure (might change that to return number of elements deleted) |
|
1046 | 1046 | */ |
1047 | 1047 | public function delete($courseInfo = null, $id = null, $delete = 'keep') |
1048 | 1048 | { |
@@ -1182,7 +1182,7 @@ discard block |
||
1182 | 1182 | * @param integer $id Elem ID (0 if first) |
1183 | 1183 | * @param integer $remove Whether to remove the resource/data from the |
1184 | 1184 | * system or leave it (default: 'keep', others 'remove') |
1185 | - * @return integer Number of elements moved |
|
1185 | + * @return false|null Number of elements moved |
|
1186 | 1186 | * @todo implement resource removal |
1187 | 1187 | */ |
1188 | 1188 | public function delete_item($id, $remove = 'keep') |
@@ -1264,7 +1264,7 @@ discard block |
||
1264 | 1264 | * @param array $audio The array resulting of the $_FILES[mp3] element |
1265 | 1265 | * @param int $max_time_allowed |
1266 | 1266 | * @param string $url |
1267 | - * @return boolean True on success, false on error |
|
1267 | + * @return false|null True on success, false on error |
|
1268 | 1268 | */ |
1269 | 1269 | public function edit_item( |
1270 | 1270 | $id, |
@@ -1783,7 +1783,7 @@ discard block |
||
1783 | 1783 | |
1784 | 1784 | /** |
1785 | 1785 | * Gets the first element URL. |
1786 | - * @return string URL to load into the viewer |
|
1786 | + * @return false|null URL to load into the viewer |
|
1787 | 1787 | */ |
1788 | 1788 | public function first() |
1789 | 1789 | { |
@@ -2283,8 +2283,9 @@ discard block |
||
2283 | 2283 | } |
2284 | 2284 | |
2285 | 2285 | /** |
2286 | - * @param int $lpId |
|
2287 | 2286 | * @param array $courseInfo |
2287 | + * @param integer $student_id |
|
2288 | + * @param integer $sessionId |
|
2288 | 2289 | * @return bool |
2289 | 2290 | * |
2290 | 2291 | */ |
@@ -2316,6 +2317,7 @@ discard block |
||
2316 | 2317 | * @param int $student_id |
2317 | 2318 | * @param string Course code (optional) |
2318 | 2319 | * @param int $sessionId |
2320 | + * @param string $courseCode |
|
2319 | 2321 | * @return bool |
2320 | 2322 | */ |
2321 | 2323 | public static function is_lp_visible_for_student( |
@@ -2607,7 +2609,7 @@ discard block |
||
2607 | 2609 | |
2608 | 2610 | /** |
2609 | 2611 | * Gets the learnpath session id |
2610 | - * @return string Learnpath theme |
|
2612 | + * @return integer Learnpath theme |
|
2611 | 2613 | */ |
2612 | 2614 | public function get_lp_session_id() |
2613 | 2615 | { |
@@ -2640,7 +2642,7 @@ discard block |
||
2640 | 2642 | /** |
2641 | 2643 | * @param string $size |
2642 | 2644 | * @param string $path_type |
2643 | - * @return bool|string |
|
2645 | + * @return string|false |
|
2644 | 2646 | */ |
2645 | 2647 | public function get_preview_image_path($size = null, $path_type = 'web') |
2646 | 2648 | { |
@@ -2786,6 +2788,8 @@ discard block |
||
2786 | 2788 | * Returns the XML DOM document's node |
2787 | 2789 | * @param resource Reference to a list of objects to search for the given ITEM_* |
2788 | 2790 | * @param string The identifier to look for |
2791 | + * @param DOMNodeList $children |
|
2792 | + * @param string $id |
|
2789 | 2793 | * @return mixed The reference to the element found with that identifier. False if not found |
2790 | 2794 | */ |
2791 | 2795 | public function get_scorm_xml_node(& $children, $id) |
@@ -2971,7 +2975,7 @@ discard block |
||
2971 | 2975 | /** |
2972 | 2976 | * Generate and return the table of contents for this learnpath. The (flat) table returned can be |
2973 | 2977 | * used by get_html_toc() to be ready to display |
2974 | - * @return array TOC as a table with 4 elements per row: title, link, status and level |
|
2978 | + * @return boolean TOC as a table with 4 elements per row: title, link, status and level |
|
2975 | 2979 | */ |
2976 | 2980 | public function get_toc() |
2977 | 2981 | { |
@@ -3107,7 +3111,7 @@ discard block |
||
3107 | 3111 | } |
3108 | 3112 | |
3109 | 3113 | /** |
3110 | - * @return array |
|
3114 | + * @return string[] |
|
3111 | 3115 | */ |
3112 | 3116 | public static function getChapterTypes() |
3113 | 3117 | { |
@@ -3996,7 +4000,7 @@ discard block |
||
3996 | 4000 | * Open a resource = initialise all local variables relative to this resource. Depending on the child |
3997 | 4001 | * class, this might be redefined to allow several behaviours depending on the document type. |
3998 | 4002 | * @param integer Resource ID |
3999 | - * @return boolean True on success, false otherwise |
|
4003 | + * @return boolean|null True on success, false otherwise |
|
4000 | 4004 | */ |
4001 | 4005 | public function open($id) |
4002 | 4006 | { |
@@ -4125,7 +4129,7 @@ discard block |
||
4125 | 4129 | * Can be used as abstract |
4126 | 4130 | * @param integer $lp_id Learnpath id |
4127 | 4131 | * @param string $set_visibility New visibility (v/i - visible/invisible) |
4128 | - * @return bool |
|
4132 | + * @return false|null |
|
4129 | 4133 | */ |
4130 | 4134 | public static function toggle_publish($lp_id, $set_visibility = 'v') |
4131 | 4135 | { |
@@ -4208,7 +4212,7 @@ discard block |
||
4208 | 4212 | * Make sure the results are saved with anoter method. This method should probably be |
4209 | 4213 | * redefined in children classes. |
4210 | 4214 | * To use a similar method statically, use the create_new_attempt() method |
4211 | - * @return string URL to load in the viewer |
|
4215 | + * @return boolean URL to load in the viewer |
|
4212 | 4216 | */ |
4213 | 4217 | public function restart() |
4214 | 4218 | { |
@@ -4284,6 +4288,7 @@ discard block |
||
4284 | 4288 | * Saves the given item |
4285 | 4289 | * @param integer $item_id. Optional (will take from $_REQUEST if null) |
4286 | 4290 | * @param boolean $from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true |
4291 | + * @param integer $item_id |
|
4287 | 4292 | * @return boolean |
4288 | 4293 | */ |
4289 | 4294 | public function save_item($item_id = null, $from_outside = true) |
@@ -4783,7 +4788,7 @@ discard block |
||
4783 | 4788 | |
4784 | 4789 | /** |
4785 | 4790 | * Sets use_max_score |
4786 | - * @param string $use_max_score Optional string giving the new location of this learnpath |
|
4791 | + * @param integer $use_max_score Optional string giving the new location of this learnpath |
|
4787 | 4792 | * @return boolean True on success / False on error |
4788 | 4793 | */ |
4789 | 4794 | public function set_use_max_score($use_max_score = 1) |
@@ -5186,6 +5191,7 @@ discard block |
||
5186 | 5191 | * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags |
5187 | 5192 | * |
5188 | 5193 | * @param string 'seriousgame', 'single' or 'multiple' |
5194 | + * @param string $mode |
|
5189 | 5195 | * @return boolean |
5190 | 5196 | * @author ndiechburg <[email protected]> |
5191 | 5197 | **/ |
@@ -5228,7 +5234,7 @@ discard block |
||
5228 | 5234 | /** |
5229 | 5235 | * Switch between multiple attempt, single attempt or serious_game mode (only for scorm) |
5230 | 5236 | * |
5231 | - * @return boolean |
|
5237 | + * @return boolean|null |
|
5232 | 5238 | * @author ndiechburg <[email protected]> |
5233 | 5239 | **/ |
5234 | 5240 | public function switch_attempt_mode() |
@@ -5419,7 +5425,6 @@ discard block |
||
5419 | 5425 | /** |
5420 | 5426 | * Function that creates a html list of learning path items so that we can add audio files to them |
5421 | 5427 | * @author Kevin Van Den Haute |
5422 | - * @param int $lp_id |
|
5423 | 5428 | * @return string |
5424 | 5429 | */ |
5425 | 5430 | public function overview() |
@@ -6440,7 +6445,7 @@ discard block |
||
6440 | 6445 | /** |
6441 | 6446 | * Function that displays a list with al the resources that |
6442 | 6447 | * could be added to the learning path |
6443 | - * @return string |
|
6448 | + * @return boolean |
|
6444 | 6449 | */ |
6445 | 6450 | public function display_resources() |
6446 | 6451 | { |
@@ -10049,7 +10054,7 @@ discard block |
||
10049 | 10054 | |
10050 | 10055 | /** |
10051 | 10056 | * @param int $lp_id |
10052 | - * @return bool |
|
10057 | + * @return false|null |
|
10053 | 10058 | */ |
10054 | 10059 | public function scorm_export_to_pdf($lp_id) |
10055 | 10060 | { |
@@ -10580,7 +10585,7 @@ discard block |
||
10580 | 10585 | |
10581 | 10586 | /** |
10582 | 10587 | * @param int $itemId |
10583 | - * @return learnpathItem|false |
|
10588 | + * @return string |
|
10584 | 10589 | */ |
10585 | 10590 | public function getItem($itemId) |
10586 | 10591 | { |
@@ -10630,7 +10635,6 @@ discard block |
||
10630 | 10635 | /** |
10631 | 10636 | * Set whether this is a learning path with the possibility to subscribe |
10632 | 10637 | * users or not |
10633 | - * @param int $subscribeUsers (0 = false, 1 = true) |
|
10634 | 10638 | */ |
10635 | 10639 | public function setSubscribeUsers($value) |
10636 | 10640 | { |
@@ -10755,7 +10759,7 @@ discard block |
||
10755 | 10759 | |
10756 | 10760 | /** |
10757 | 10761 | * Get the item of exercise type (evaluation type) |
10758 | - * @return array The final evaluation. Otherwise return false |
|
10762 | + * @return integer The final evaluation. Otherwise return false |
|
10759 | 10763 | */ |
10760 | 10764 | public function getFinalEvaluationItem() |
10761 | 10765 | { |
@@ -10976,7 +10980,7 @@ discard block |
||
10976 | 10980 | /** |
10977 | 10981 | * Create a forum for this learning path |
10978 | 10982 | * @param type $forumCategoryId |
10979 | - * @return int The forum ID if was created. Otherwise return false |
|
10983 | + * @return false|string The forum ID if was created. Otherwise return false |
|
10980 | 10984 | */ |
10981 | 10985 | public function createForum($forumCategoryId) |
10982 | 10986 | { |
@@ -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); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param string $name |
64 | 64 | * @param string $value |
65 | - * @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
65 | + * @param Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
66 | 66 | */ |
67 | 67 | public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) { |
68 | 68 | $this->name = $name; |
@@ -377,6 +377,7 @@ discard block |
||
377 | 377 | * specifies some of this handling, but not in a thorough manner. |
378 | 378 | * |
379 | 379 | * @param string Cookie header value (from a Set-Cookie header) |
380 | + * @param integer $reference_time |
|
380 | 381 | * @return Requests_Cookie Parsed cookie object |
381 | 382 | */ |
382 | 383 | public static function parse($string, $name = '', $reference_time = null) { |