2
2
3
3
/**
4
4
* @package Simple Referrals
5
- * @version 1.2
5
+ * @version 1.3.1
6
6
* @author Diego Andrés <diegoandres_cortes@outlook.com>
7
7
* @copyright Copyright (c) 2021, SMF Tricks
8
8
* @license https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -27,7 +27,7 @@ class SimpleReferrals
27
27
* SimpleReferrals::custom_fields()
28
28
*
29
29
* Loads custom profile fields
30
- *
30
+ *
31
31
* @param int $user The ID of a user previously loaded by {@link loadMemberData()}
32
32
* @param array $area An array containing the action areas
33
33
* @return void
@@ -51,7 +51,7 @@ public static function custom_fields($user, $area)
51
51
*
52
52
* It includes the referral in the member newly created account,
53
53
* as well as attempting to find the referral found in the form.
54
- *
54
+ *
55
55
* @param array $regOptions The register options
56
56
* @return void
57
57
*/
@@ -98,7 +98,7 @@ public static function save_referral(&$regOptions, &$theme_vars, &$knownInts)
98
98
* SimpleReferrals::update_count()
99
99
*
100
100
* Updates a member ref_count if set as the referral
101
- *
101
+ *
102
102
* @param array $regOptions The register options
103
103
* @return void
104
104
*/
@@ -132,7 +132,7 @@ public static function update_count($regOptions)
132
132
*
133
133
* Inserts a fake custom field in the register/signup view. It also does all the
134
134
* checkings in case of errors and other unexpected situations.
135
- *
135
+ *
136
136
* @return void
137
137
*/
138
138
public static function register ()
@@ -200,7 +200,7 @@ public static function register()
200
200
* SimpleReferrals::profile()
201
201
*
202
202
* Inserts the custom field in the profile view
203
- *
203
+ *
204
204
* @return void
205
205
*/
206
206
public static function profile ()
@@ -230,7 +230,7 @@ public static function profile()
230
230
* SimpleReferrals::member_data()
231
231
*
232
232
* Include referral count in loadMemberData
233
- *
233
+ *
234
234
* @param string $columns The member columns
235
235
* @param string $tablws Any additional tables
236
236
* @param string $set What kind of data to load (normal, profile, minimal)
@@ -258,7 +258,7 @@ public static function member_data(&$columns, &$tables, &$set)
258
258
* SimpleReferrals::member_context()
259
259
*
260
260
* Referrals count
261
- *
261
+ *
262
262
* @param array $data The monstrous array of user information
263
263
* @param int $user The ID of a user previously loaded by {@link loadMemberData()}
264
264
* @return void
@@ -290,7 +290,7 @@ public static function member_context(&$data, $user)
290
290
* SimpleReferrals::admin()
291
291
*
292
292
* Adds the maintainance tab to the menu and sections
293
- *
293
+ *
294
294
* @param array $areas The monstrous admin array
295
295
* @return void
296
296
*/
@@ -308,7 +308,7 @@ public static function admin(&$areas)
308
308
* SimpleReferrals::settings()
309
309
*
310
310
* Adds the settings to the mods settings page
311
- *
311
+ *
312
312
* @param array $config_vars The mod settings array
313
313
* @return void
314
314
*/
@@ -327,7 +327,7 @@ public static function settings(&$config_vars)
327
327
* SimpleReferrals::maint_recount()
328
328
*
329
329
* Adds the maintainance area to the sections
330
- *
330
+ *
331
331
* @param array $areas The maint areas array
332
332
* @return void
333
333
*/
@@ -350,7 +350,7 @@ public static function maint_recount(&$areas)
350
350
* SimpleReferrals::maintain_recount()
351
351
*
352
352
* Returns a finished message after running the task
353
- *
353
+ *
354
354
* @return void
355
355
*/
356
356
public static function maintain_recount ()
@@ -366,7 +366,7 @@ public static function maintain_recount()
366
366
*
367
367
* Mimics the posts recount of smf, but it recounts the referrals for each user,
368
368
* and cleans those that didn't actually have referrals
369
- *
369
+ *
370
370
* @return void
371
371
*/
372
372
public static function do_recount ()
0 commit comments