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

Public Member Functions

 onSkinTemplateOutputPageBeforeExec (&$skin, &$template)
 
 onBSUserSidebarGlobalActionsWidgetGlobalActions (UserSidebar $oUserSidebar, User $oUser, &$aLinks, &$sWidgetTitle)
 
 runPreferencePlugin ($sAdapterName, $oVariable)
 
 getArticleContext (Title $oTitle=null, $sCheckRatingPermission= 'read')
 
 getArticleLikeContext (Title $oTitle=null, $sCheckRatingPermission= 'read')
 
- 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 onRatingRegister (&$aRatings)
 
static getSchemaUpdates ($oUpdater)
 
static onBeforePageDisplay (OutputPage &$out, Skin &$skin)
 
static onUnitTestsList (&$paths)
 

Protected Member Functions

 initExt ()
 
 checkRequestTitle (\Title $oTitle=null)
 
- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

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

Rating::getArticleContext ( Title  $oTitle = null,
  $sCheckRatingPermission = 'read' 
)

Checks wether to set Context or not and returns the context Title.

Parameters
Title$oTitle
string$sCheckRatingPermission
Returns
Title - or false
Rating::getArticleLikeContext ( Title  $oTitle = null,
  $sCheckRatingPermission = 'read' 
)

Checks wether to set Context or not and returns the context Title.

Parameters
Title$oTitle
string$sCheckRatingPermission
Returns
Title - or false
static Rating::getSchemaUpdates (   $oUpdater)
static

Adds the table to the database

Parameters
DatabaseUpdater$oUpdater
Returns
boolean Always true to keep Hook running
Rating::initExt ( )
protected

Initialization of Rating extension

static Rating::onBeforePageDisplay ( OutputPage $out,
Skin $skin 
)
static
Parameters
OutputPage$out
Skin$skin
Rating::onBSUserSidebarGlobalActionsWidgetGlobalActions ( UserSidebar  $oUserSidebar,
User  $oUser,
$aLinks,
$sWidgetTitle 
)

Adds Special:Rating link to wiki wide widget

Parameters
UserSidebar$oUserSidebar
User$oUser
array$aLinks
string$sWidgetTitle
Returns
boolean
static Rating::onRatingRegister ( $aRatings)
static
Parameters
array$aRatings
Returns
boolean
Rating::onSkinTemplateOutputPageBeforeExec ( $skin,
$template 
)

Adds an rating view after article title

Parameters
Skin$skin
BaseTemplate$template
Returns
boolean always true
static Rating::onUnitTestsList ( $paths)
static

Hook handler for UnitTestList

Parameters
array$paths
Returns
boolean
Rating::runPreferencePlugin (   $sAdapterName,
  $oVariable 
)

Sets parameters for more complex options in preferences

Parameters
string$sAdapterNameName of the adapter, e.g. MW
BsConfig$oVariableInstance of variable
Returns
array Preferences options

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