BlueSpice MediaWiki master
 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 ()
 
 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 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
 $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

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: