[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/sessions/model/ -> _hitlist.class.php (sommaire)

This file implements the Hitlist class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE.
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _hitlist.class.php,v 1.1 2007/06/25 11:00:58 fplanque Exp $
Poids: 194 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Hitlist:: (4 méthodes):
  delete()
  prune()
  change_type()
  dbprune()


Classe: Hitlist  - X-Ref

A list of hits. Provides functions for maintaining and extraction of Hits.

delete( $hit_ID )   X-Ref
Delete a hit.

param: int ID to delete
return: mixed Return value of {@link DB::query()}

prune( $date )   X-Ref
Delete all hits for a specific date

param: int unix timestamp to delete hits for
return: mixed Return value of {@link DB::query()}

change_type( $hit_ID, $type )   X-Ref
Change type for a hit

param: int ID to change
param: string new type, must be valid ENUM for hit_referer_type field
return: mixed Return value of {@link DB::query()}

dbprune()   X-Ref
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 {@link $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.

return: string Empty, if ok.



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics