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

Public Member Functions

 onBeforePageDisplay (&$oOutputPage, &$oSkin)
 
 onSkinTemplateOutputPageBeforeExec (&$skin, &$template)
 
 onBSShoutBoxGetShoutsBeforeQuery (&$sOutput, $iArticleId, &$iLimit, &$aTables, &$aFields, &$aConditions, &$aOptions, $oReturn)
 
 onBSShoutBoxBeforeAddViewAfterArticleContent (&$oShoutBoxView)
 
 runPreferencePlugin ($sAdapterName, $oVariable)
 
- 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 onUnitTestsList (&$paths)
 

Protected Member Functions

 initExt ()
 
- 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

static RatedComments::getSchemaUpdates (   $oUpdater)
static

Deactivates article rating for each namespace rated comments are activated

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

Initialization of RatedComments extension

RatedComments::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)

Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if needed.

Parameters
OutputPage$oOutputPage
Skin$oSkin
Returns
bool
RatedComments::onBSShoutBoxBeforeAddViewAfterArticleContent ( $oShoutBoxView)

Hook-Handler for hook BSShoutBoxBeforeAddViewAfterArticleContent - Used to replace view

Parameters
ViewRatedCommentsShoutBox$oShoutBoxView
Returns
boolean always true - keeps hooksystem running
RatedComments::onBSShoutBoxGetShoutsBeforeQuery ( $sOutput,
  $iArticleId,
$iLimit,
$aTables,
$aFields,
$aConditions,
$aOptions,
  $oReturn 
)

Hook-Handler for hook BSShoutBoxGetShoutsBeforeQuery - Used for own query and view processing

Parameters
string$sOutput
int$iArticleId
int$iLimit
Returns
boolean - return false to break following query
static RatedComments::onRatingRegister ( $aRatings)
static

Hook-Handler for BlueSpice hook BSRatingRegister Used to register own rating types

Parameters
array$aRatings
Returns
boolean
RatedComments::onSkinTemplateOutputPageBeforeExec ( $skin,
$template 
)

Adds an rating view after article title

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

Hook handler for UnitTestList

Parameters
array$paths
Returns
boolean
RatedComments::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: