@@ -10,6 +10,9 @@ discard block |
||
10 | 10 | /* |
11 | 11 | * Packs the language variables for a single language into a single string. |
12 | 12 | */ |
13 | +/** |
|
14 | + * @param string|null $lang |
|
15 | + */ |
|
13 | 16 | function mm_pack_language($lwc, $lwe, $lop, $lang) |
14 | 17 | { |
15 | 18 | $returner = ''; |
@@ -41,6 +44,9 @@ discard block |
||
41 | 44 | /* |
42 | 45 | * Unpacks a language string into an array of its component variable. |
43 | 46 | */ |
47 | +/** |
|
48 | + * @param string|null $lang |
|
49 | + */ |
|
44 | 50 | function mm_unpack_language($data_string, $lang) |
45 | 51 | { |
46 | 52 | $returner = array(); |
@@ -71,6 +77,11 @@ discard block |
||
71 | 77 | /* |
72 | 78 | * Packs the time (hour and minute) into a single string. |
73 | 79 | */ |
80 | +/** |
|
81 | + * @param string|null $hour |
|
82 | + * @param string|null $min |
|
83 | + * @param string|null $day |
|
84 | + */ |
|
74 | 85 | function mm_pack_time($hour, $min, $day) |
75 | 86 | { |
76 | 87 | $returner = ''; |
@@ -95,6 +106,9 @@ discard block |
||
95 | 106 | /* |
96 | 107 | * Unpacks the time into an array of hour and minute. |
97 | 108 | */ |
109 | +/** |
|
110 | + * @param string|null $day |
|
111 | + */ |
|
98 | 112 | function mm_unpack_time($data_string, $day) |
99 | 113 | { |
100 | 114 | $returner = array(); |
@@ -118,6 +132,9 @@ discard block |
||
118 | 132 | /* |
119 | 133 | * Unpacks every unpackable item within a given entity. |
120 | 134 | */ |
135 | +/** |
|
136 | + * @param ElggEntity $entity |
|
137 | + */ |
|
121 | 138 | function mm_unpack_mission($entity) |
122 | 139 | { |
123 | 140 | $returner = array(); |
@@ -429,6 +446,10 @@ discard block |
||
429 | 446 | * Notify user function which uses messages_send() to send on site notifications and mail() to send e-mail. |
430 | 447 | * This is here because notify_user() is currently not working. |
431 | 448 | */ |
449 | +/** |
|
450 | + * @param string $title_en |
|
451 | + * @param string $title_fr |
|
452 | + */ |
|
432 | 453 | function mm_notify_user($recipient, $sender, $subject, $title_en,$title_fr,$body_en, $body_fr) { |
433 | 454 | //notify_user($recipient, $sender, $subject, $body, array(), 'email'); |
434 | 455 | |
@@ -622,6 +643,9 @@ discard block |
||
622 | 643 | /* |
623 | 644 | * Returns an accept button to a user who has received an offer if the mission is not full. |
624 | 645 | */ |
646 | +/** |
|
647 | + * @param ElggUser|null $applicant |
|
648 | + */ |
|
625 | 649 | function mm_finalize_button($mission, $applicant) { |
626 | 650 | $relationship_count = elgg_get_entities_from_relationship(array( |
627 | 651 | 'relationship' => 'mission_accepted', |
@@ -787,6 +811,9 @@ discard block |
||
787 | 811 | /* |
788 | 812 | * Check if the user is opted in to any of the opt-in options. |
789 | 813 | */ |
814 | +/** |
|
815 | + * @param ElggEntity|null $current_user |
|
816 | + */ |
|
790 | 817 | function check_if_opted_in($current_user) { |
791 | 818 | //Nick - adding additional checks for other opportunity types |
792 | 819 | if($current_user->opt_in_missions == 'gcconnex_profile:opt:yes') { |
@@ -864,6 +891,9 @@ discard block |
||
864 | 891 | return false; |
865 | 892 | } |
866 | 893 | |
894 | +/** |
|
895 | + * @param ElggEntity $mission |
|
896 | + */ |
|
867 | 897 | function mm_complete_mission_inprogress_reports($mission, $if_no_applicants = false) { |
868 | 898 | if ($if_no_applicants) { |
869 | 899 | // Find out how many accepted applicants are on this mission. |