Class: Hitlist
Source Location: /blogs/inc/MODEL/sessions/_hitlist.class.php
Class Hitlist
Class Overview
|
A list of hits. Provides functions for maintaining and extraction of Hits. Located in /blogs/inc/MODEL/sessions/_hitlist.class.php [line 43] |
[ Top ]
Method Summary
| static mixed | change_type() | Change type for a hit |
| static string | dbprune() | Auto pruning of old stats. |
| static mixed | delete() | Delete a hit. |
| static mixed | prune() | Delete all hits for a specific date |
[ Top ]
Methods
static method change_type [line 90]
|
Change type for a hit
Parameters:| int | $hit_ID: | ID to change |
| string | $type: | new type, must be valid ENUM for hit_referer_type field |
API Tags:
| Return: | Return value of DB::query() |
[ Top ]
static method dbprune [line 116]
|
Auto pruning of old stats.
It uses a general setting to store the day of the last prune, avoiding multiple prunes per day. fplanque>> Check: How much faster is this than DELETING right away with an INDEX on the date field?
Note: we're using $localtimenow to log hits, so use this for pruning, too.
NOTE: do not call this directly, but only in conjuction with auto_prune_stats_mode.
API Tags:
| Return: | Empty, if ok. |
[ Top ]
static method delete [line 54]
|
Delete a hit.
Parameters:| int | $hit_ID: | ID to delete |
API Tags:
| Return: | Return value of DB::query() |
[ Top ]
static method prune [line 69]
|
Delete all hits for a specific date
Parameters:| int | $date: | unix timestamp to delete hits for |
API Tags:
| Return: | Return value of DB::query() |
[ Top ]
