BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

xlrstats::CtimePlugin Class Reference

Inheritance diagram for xlrstats::CtimePlugin:
b3::plugin::Plugin

List of all members.

Public Member Functions

def __init__
def purge
def onEvent
def update_time_stats_connected
def formatTD
def update_time_stats_exit

Public Attributes

 console
 ctime_table
 query

Private Attributes

 _max_age_in_days

Static Private Attributes

dictionary _clients = {}
 _cronTab = None
int _max_age_in_days = 31
int _hours = 5
int _minutes = 0

Detailed Description

This is a helper class/plugin that saves client join and disconnect time info
It can not be called directly or separately from the XLRstats plugin!

Constructor & Destructor Documentation

def xlrstats::CtimePlugin::__init__ (   self,
  console,
  cTimeTable 
)

Reimplemented from b3::plugin::Plugin.


Member Function Documentation

def xlrstats::CtimePlugin::formatTD (   self,
  td 
)
def xlrstats::CtimePlugin::onEvent (   self,
  event 
)
\
Called by B3 when a registered event is encountered. You must overwrite
this to intercept events.

Reimplemented from b3::plugin::Plugin.

def xlrstats::CtimePlugin::purge (   self)
def xlrstats::CtimePlugin::update_time_stats_connected (   self,
  client 
)
def xlrstats::CtimePlugin::update_time_stats_exit (   self,
  clientid 
)

Member Data Documentation

dictionary xlrstats::CtimePlugin::_clients = {} [static, private]
xlrstats::CtimePlugin::_cronTab = None [static, private]
int xlrstats::CtimePlugin::_hours = 5 [static, private]
int xlrstats::CtimePlugin::_max_age_in_days = 31 [static, private]
int xlrstats::CtimePlugin::_minutes = 0 [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties