|
1 | | -<?php namespace Config; |
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Config; |
2 | 4 |
|
3 | 5 | /*** |
4 | 6 | * |
|
13 | 15 | * |
14 | 16 | ***/ |
15 | 17 |
|
16 | | -use CodeIgniter\Config\BaseConfig; |
| 18 | +use Tatter\Visits\Config\Visits as BaseConfig; |
17 | 19 |
|
18 | | -class Visits extends \Tatter\Visits\Config\Visits |
| 20 | +class Visits extends BaseConfig |
19 | 21 | { |
20 | | - // metric for tracking a unique visitor, one of: ip_address, session_id, user_id |
21 | | - // NOTE: using user_id will count empty $userSource values as unique visits |
22 | | - public $trackingMethod = "ip_address"; |
23 | | - |
24 | | - // the session variable to check for a logged-in user ID |
25 | | - public $userSource = 'logged_in'; |
26 | | - |
27 | | - // how many minutes before a visit counts as new instead of incrementing a previous view count |
28 | | - // set to zero to record each visit as its own page view (not recommended) |
29 | | - public $resetMinutes = 60; |
30 | | - |
31 | | - // Whether to ignore AJAX requests when recording |
32 | | - public $ignoreAjax = true; |
| 22 | + /** |
| 23 | + * Metric for tracking a unique visitor |
| 24 | + * |
| 25 | + * @var 'ip_address'|'session_id'|'user_id' |
| 26 | + */ |
| 27 | + public $trackingMethod = 'ip_address'; |
| 28 | + |
| 29 | + /** |
| 30 | + * Session variable to check for a logged-in user ID |
| 31 | + * |
| 32 | + * @deprecated Next version will rely on codeigniter4/authentication-implementation |
| 33 | + * |
| 34 | + * @var string |
| 35 | + */ |
| 36 | + public $userSource = 'logged_in'; |
| 37 | + |
| 38 | + /** |
| 39 | + * Number of minutes before a visit counts as new |
| 40 | + * instead of incrementing a previous view count. |
| 41 | + * Set to zero to record each page view as unique (not recommended). |
| 42 | + * |
| 43 | + * @var int |
| 44 | + */ |
| 45 | + public $resetMinutes = 60; |
| 46 | + |
| 47 | + /** |
| 48 | + * Whether to ignore AJAX requests when recording. |
| 49 | + * See framework User Guide for caveats. |
| 50 | + * |
| 51 | + * @see https://www.codeigniter.com/user_guide/general/ajax.html |
| 52 | + * |
| 53 | + * @var bool |
| 54 | + */ |
| 55 | + public $ignoreAjax = true; |
33 | 56 | } |
0 commit comments