BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
UsageTracker Class Reference
Inheritance diagram for UsageTracker:
Collaboration diagram for UsageTracker:

Public Member Functions

 initExt ()
 
 getUsageData ($aConfig=null)
 
 getUsageDataFromDB ($aConfig=null)
 
- Public Member Functions inherited from BsExtensionMW
 setCore ($oCore)
 
 getInfo ()
 
 setup ($sExtName="", $aConfig=array())
 
 setHook ($hook, $method=false, $bExecuteFirst=false)
 
 setContext (\IContextSource $context)
 
 setConfig (\Config $config)
 
 getResourcePath ()
 
 getName ()
 
 getExtensionKey ()
 
 getExtensionPath ()
 
 getImagePath ($bResources=false)
 
 getCacheKey ($sSubKey= 'default')
 
 makeTagExtensionDefinitions ()
 
- Public Member Functions inherited from BlueSpice\Extension
 jsonSerialize ()
 
 __construct (array $definition,\IContextSource $context,\Config $config)
 
 getInfo ()
 
 getResourcePath ()
 
 getExtensionPath ()
 
 getName ()
 
 getAuthors ()
 
 getStatus ()
 
 getPackage ()
 
 getUrl ()
 
 getVersion ()
 
 getExtensionKey ()
 
- Public Member Functions inherited from BlueSpice\Context
 __construct (\IContextSource $context,\Config $config)
 
 canUseWikiPage ()
 
 exportSession ()
 
 getConfig ()
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 
 msg ($key)
 

Static Public Member Functions

static getSchemaUpdates ($updater)
 

Public Attributes

 $aCollectorsConfig = array()
 

Protected Member Functions

 initializeCollectors ($aConfig=null)
 
- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

Protected Attributes

 $aCollectors = array()
 
- Protected Attributes inherited from BsExtensionMW
 $mExtensionKey = null
 
 $mExtensionFile = null
 
 $mExtensionType = null
 
 $mInfo = null
 
 $mResourcePath = null
 
 $sName = ''
 
 $sStatus = ''
 
 $sPackage = ''
 
 $mCore = null
 
 $aStandardContext = array( '*', '*', '*' )
 
- Protected Attributes inherited from BlueSpice\Extension
 $extPath = ''
 
 $name = ''
 
 $authors = []
 
 $version = ''
 
 $url = ''
 
 $status = ''
 
 $package = ''
 
- Protected Attributes inherited from BlueSpice\Context
 $context = null
 
 $config = null
 

Member Function Documentation

static UsageTracker::getSchemaUpdates (   $updater)
static

Adds the table to the database

Parameters
DatabaseUpdater$updater
Returns
boolean Always true to keep hook running
UsageTracker::getUsageData (   $aConfig = null)

Collects usage data from one or several collectors. If $aConfig is not set it fetches all collectors and adds them to job queue. If $aConfig is set, it actually collects from the collectors set in config (typically invoked from job queue and only one collector)

Parameters
array$aConfig
Returns
BS[]
UsageTracker::getUsageDataFromDB (   $aConfig = null)

Load existing data from the database instead of collecting it on the fly, as collecting data might be very ressource intense.

Parameters
array$aConfig
Returns
BS[]
UsageTracker::initExt ( )

Basic initialisation of extension, e.g. hooks, permissions, etc.

UsageTracker::initializeCollectors (   $aConfig = null)
protected

Gets all available collector if $aConfig is null, otherwise uses collectors as given in config

Parameters
array$aConfig
Returns
boolean

The documentation for this class was generated from the following file: