Intervals
3 years ago
Campaign_Statistics.php
3 years ago
City_Statistics.php
2 years ago
Country_Statistics.php
2 years ago
Device_Statistics.php
2 years ago
Page_Statistics.php
3 years ago
Referrer_Statistics.php
3 years ago
Statistic.php
3 years ago
Statistics.php
2 years ago
Referrer_Statistics.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\IAWP\Statistics; |
| 4 | |
| 5 | class Referrer_Statistics extends Statistics |
| 6 | { |
| 7 | protected function allowed_in_id_column() : string |
| 8 | { |
| 9 | return 'sessions.referrer_id'; |
| 10 | } |
| 11 | /** |
| 12 | * Referrers are allowed to have a null value in the id column. This would be a null value for |
| 13 | * sessions.referrer_id, which is perfectly fine as these are direct visits. Return true if |
| 14 | * direct visits are to be included, otherwise return false. This is a workaround of the fact |
| 15 | * the direct visits do not have an id for the MySQL IN clause. |
| 16 | * |
| 17 | * @return bool |
| 18 | */ |
| 19 | protected function allow_null_in_id_column() : bool |
| 20 | { |
| 21 | return \in_array(null, $this->allowed_ids); |
| 22 | } |
| 23 | } |
| 24 |