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

Public Member Functions

 runPreferencePlugin ($sAdapterName, $oVariable)
 
 onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
 onBSWidgetListHelperInitKeyWords (&$aKeywords, $oTitle)
 
 onParserFirstCallInit (&$oParser)
 
 onPagesVisitedTag ($sInput, $aAttributes, $oParser)
 
 onWidgetListKeyword ()
 
 onBSUserSidebarDefaultWidgets (&$aViews, $oUser, $oTitle)
 
 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)
 

Protected Member Functions

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

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

PagesVisited::initExt ( )
protected

Initialization of PagesVisited extension

PagesVisited::onBSInsertMagicAjaxGetData ( $oResponse,
  $type 
)

Inject tags into InsertMagic

Parameters
Object$oResponsereference $param String $type
Returns
always true to keep hook running
PagesVisited::onBSUsageTrackerRegisterCollectors ( $aCollectorsConfig)

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
PagesVisited::onBSUserSidebarDefaultWidgets ( $aViews,
  $oUser,
  $oTitle 
)

Callback for WidgetBar. Adds the PagesVisited Widget to the WidgetBar as default filling.

Parameters
BsEvent$oEventThe event to handle
array$aWidgetsAn array of WidgetView objects
Returns
array An array of WidgetView objects
PagesVisited::onBSWidgetListHelperInitKeyWords ( $aKeywords,
  $oTitle 
)

Event-Handler for 'MW::Utility::WidgetListHelper::InitKeywords'. Registers a callback for the PAGESVISITED Keyword.

Parameters
array$aKeywordsAn array of Keywords array( 'KEYWORD' => $callable )
Returns
array The appended array of Keywords array( 'KEYWORD' => $callable )
PagesVisited::onPagesVisitedTag (   $sInput,
  $aAttributes,
  $oParser 
)

Handles the Parser Hook for TagExtensions

Parameters
string$sInputContent of $lt;pagesvisited /> from MediaWiki Framework
array$aAttributesAttributes of <pagesvisited /> from MediaWiki Framework
Parser$oParserParser object from MediaWiki Framework
Returns
string HTML list of recently visited pages
PagesVisited::onParserFirstCallInit ( $oParser)

Hook-Handler for 'ParserFirstCallInit' (MediaWiki). Sets new Parser-Hooks for the <bs:pagesvisited /> and <pagesvisited /> tag

Parameters
Parser$oParserThe current Parser object from MediaWiki Framework
Returns
bool Always true to keep hook running.
PagesVisited::onWidgetListKeyword ( )

Callback for WidgetListHelper. Adds the PagesVisited Widget to the list if Keyword is found.

Returns
ViewWidget.
PagesVisited::runPreferencePlugin (   $sAdapterName,
  $oVariable 
)

The preferences plugin callback

Parameters
string$sAdapterName
BsConfig$oVariable
Returns
array MediaWiki preferences options array

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