b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: evocore ] [ index: evocore ] [ all elements ]

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]



		
		
		
		

Methods

[ 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]

  static mixed change_type( int $hit_ID, string $type  )

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]

  static string dbprune( )

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]

  static mixed delete( int $hit_ID  )

Delete a hit.

Parameters:
int   $hit_ID:  ID to delete

API Tags:
Return:  Return value of DB::query()


[ Top ]
static method prune  [line 69]

  static mixed prune( int $date  )

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 ]

Documentation generated on Tue, 18 Dec 2007 19:18:01 +0100 by phpDocumentor 1.4.0