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

Public Member Functions

 onParserFirstCallInit (&$parser)
 
 onBeforePageDisplay (&$oOutputPage, &$oSkin)
 
 onTagProgress ($input, $args, $parser)
 
 onBSExtendedSearchAdminButtons ($oSpecialPage, &$aSearchAdminButtons)
 
 onBSDashboardsAdminDashboardPortalConfig ($oCaller, &$aPortalConfig, $bIsDefault)
 
 onBSDashboardsAdminDashboardPortalPortlets (&$aPortlets)
 
 onBSDashboardsUserDashboardPortalConfig ($oCaller, &$aPortalConfig, $bIsDefault)
 
 onBSDashboardsUserDashboardPortalPortlets (&$aPortlets)
 
 getPortalConfig (&$aPortalConfig)
 
 getPortalPortlets (&$aPortlets)
 
 onBSUserSidebarGlobalActionsWidgetGlobalActions (UserSidebar $oUserSidebar, User $oUser, &$aLinks, &$sWidgetTitle)
 
 onBSUsageTrackerRegisterCollectors (&$aCollectorsConfig)
 
- Public Member Functions inherited from BsExtensionMW
 setCore ($oCore)
 
 getInfo ()
 
 getName ()
 
 getExtensionKey ()
 
 setup ($sExtName="", $aConfig=array())
 
 setHook ($hook, $method=false, $bExecuteFirst=false)
 
 getResourcePath ()
 
 getImagePath ($bResources=false)
 
 getCacheKey ($sSubKey= 'default')
 
 makeTagExtensionDefinitions ()
 
- Public Member Functions inherited from ContextSource
 getContext ()
 
 setContext (IContextSource $context)
 
 getConfig ()
 
 getRequest ()
 
 getTitle ()
 
 canUseWikiPage ()
 
 getWikiPage ()
 
 getOutput ()
 
 getUser ()
 
 getLanguage ()
 
 getSkin ()
 
 getTiming ()
 
 getStats ()
 
 msg ()
 
 exportSession ()
 

Static Public Member Functions

static addAvailableDiagramClass ($sDiagramClass)
 
static getAvailableDiagrams ()
 
static getDiagram ($sDiagramClass)
 
static addAvailableFilter ($sFilterClass)
 
static getAvailableFilters ()
 
static getFilter ($sFilterClass)
 
static onUnitTestsList (array &$paths)
 

Protected Member Functions

 initExt ()
 
- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

Static Protected Member Functions

static loadAvailableDiagrams ()
 

Static Protected Attributes

static $aAvailableDiagramClasses = array()
 
static $aAvailableDiagrams = null
 
static $aAvailableFilters = array()
 

Additional Inherited Members

- Protected Attributes inherited from BsExtensionMW
 $mExtensionFile = null
 
 $mExtensionType = null
 
 $mInfo = null
 
 $mExtensionKey = null
 
 $mResourcePath = null
 
 $sName = ''
 
 $sStatus = ''
 
 $sPackage = ''
 
 $mCore = null
 
 $aStandardContext = array( '*', '*', '*' )
 

Member Function Documentation

static Statistics::addAvailableDiagramClass (   $sDiagramClass)
static

Registers available diagrams

Parameters
string$sDiagramClassName of class.
static Statistics::addAvailableFilter (   $sFilterClass)
static

Registers a filter

Parameters
string$sFilterClassName of filter class
static Statistics::getAvailableDiagrams ( )
static

Returns list of available diagrams.

Returns
array List of diagram objects.
static Statistics::getAvailableFilters ( )
static

Returns list of available filters

Returns
array Names of filtesr.
static Statistics::getDiagram (   $sDiagramClass)
static

Get instance for a particluar diagram class.

Parameters
string$sDiagramClassName of diagram
Returns
BsDiagram
static Statistics::getFilter (   $sFilterClass)
static

Get a particular filter

Parameters
string$sFilterClassName of filter
Returns
BsStatisticsFilter Filter object
Statistics::initExt ( )
protected

Initialization of Statistics extension

static Statistics::loadAvailableDiagrams ( )
staticprotected

Loads all available diagrams, i.e. instanciate all classes

Returns
array List of available diagrams
Statistics::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)
Parameters
OutputPage$oOutputPage
Skin$oSkin
Statistics::onBSDashboardsAdminDashboardPortalConfig (   $oCaller,
$aPortalConfig,
  $bIsDefault 
)

Hook Handler for BSDashboardsAdminDashboardPortalConfig

Parameters
object$oCallercaller instance
array&$aPortalConfigreference to array portlet configs
boolean$bIsDefaultdefault
Returns
boolean always true to keep hook alive
Statistics::onBSDashboardsAdminDashboardPortalPortlets ( $aPortlets)

Hook Handler for BSDashboardsAdminDashboardPortalPortlets

Parameters
array&$aPortletsreference to array portlets
Returns
boolean always true to keep hook alive
Statistics::onBSDashboardsUserDashboardPortalConfig (   $oCaller,
$aPortalConfig,
  $bIsDefault 
)

Hook Handler for BSDashboardsAdminDashboardPortalConfig

Parameters
object$oCallercaller instance
array&$aPortalConfigreference to array portlet configs
boolean$bIsDefaultdefault
Returns
boolean always true to keep hook alive
Statistics::onBSDashboardsUserDashboardPortalPortlets ( $aPortlets)

Hook Handler for BSDashboardsAdminDashboardPortalPortlets

Parameters
array&$aPortletsreference to array portlets
Returns
boolean always true to keep hook alive
Statistics::onBSUsageTrackerRegisterCollectors ( $aCollectorsConfig)

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
Statistics::onBSUserSidebarGlobalActionsWidgetGlobalActions ( UserSidebar  $oUserSidebar,
User  $oUser,
$aLinks,
$sWidgetTitle 
)

Adds Special:ExtendedStatistic link to wiki wide widget

Parameters
UserSidebar$oUserSidebar
User$oUser
array$aLinks
string$sWidgetTitle
Returns
boolean
Statistics::onParserFirstCallInit ( $parser)

Registers a tag "bs:infobox" with the parser. for legacy reasons witn HalloWiki, also "infobox" is supported. Called by ParserFirstCallInit hook

Parameters
Parser$parserMediaWiki parser object
Returns
bool allow other hooked methods to be executed. always true
Statistics::onTagProgress (   $input,
  $args,
  $parser 
)

Renders the Progress tag. Called by parser function.

Parameters
string$inputInner HTML of InfoBox tag. Not used.
array$argsList of tag attributes.
Parser$parserMediaWiki parser object
Returns
string HTML output that is to be displayed.
static Statistics::onUnitTestsList ( array &  $paths)
static

Registeres Statistics API unit tests

Parameters
array$paths

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