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

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 ()
 
 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 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
 $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 ExtendedStatistics::addAvailableDiagramClass (   $sDiagramClass)
static

Registers available diagrams

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

Registers a filter

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

Returns list of available diagrams.

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

Returns list of available filters

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

Get instance for a particluar diagram class.

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

Get a particular filter

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

Initialization of Statistics extension

static ExtendedStatistics::loadAvailableDiagrams ( )
staticprotected

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

Returns
array List of available diagrams
ExtendedStatistics::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)
Parameters
OutputPage$oOutputPage
Skin$oSkin
ExtendedStatistics::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
ExtendedStatistics::onBSDashboardsAdminDashboardPortalPortlets ( $aPortlets)

Hook Handler for BSDashboardsAdminDashboardPortalPortlets

Parameters
array&$aPortletsreference to array portlets
Returns
boolean always true to keep hook alive
ExtendedStatistics::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
ExtendedStatistics::onBSDashboardsUserDashboardPortalPortlets ( $aPortlets)

Hook Handler for BSDashboardsAdminDashboardPortalPortlets

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

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
ExtendedStatistics::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
ExtendedStatistics::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
ExtendedStatistics::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 ExtendedStatistics::onUnitTestsList ( array &  $paths)
static

Registeres Statistics API unit tests

Parameters
array$paths

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