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

Public Member Functions

 onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
 onBeforePageDisplay (&$oOutputPage, &$oSkin)
 
 onUserPageSettings ($oUser, $oTitle, &$aSettingViews)
 
 onSkinTemplateOutputPageBeforeExec (&$sktemplate, &$tpl)
 
- 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 onPageContentSave ($wikiPage, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $status)
 

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

Authors::initExt ( )
protected

Initialization of Authors extension

Authors::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)

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

Parameters
OutputPage$oOutputPage
Skin$oSkin
Returns
bool
Authors::onBSInsertMagicAjaxGetData ( $oResponse,
  $type 
)

Inject tags into InsertMagic

Parameters
Object$oResponsereference $param String $type
Returns
always true to keep hook running
static Authors::onPageContentSave (   $wikiPage,
  $user,
  $content,
  $summary,
  $isMinor,
  $isWatch,
  $section,
  $flags,
  $status 
)
static

Invalidates cache for authors

Parameters
WikiPage$wikiPage
User$user
Content$content
type$summary
type$isMinor
type$isWatch
type$section
type$flags
Status$status
Returns
boolean
Authors::onSkinTemplateOutputPageBeforeExec ( $sktemplate,
$tpl 
)

Hook-Handler for 'SkinTemplateOutputPageBeforeExec'. Creates the authors list below an article.

Parameters
SkinTemplate$sktemplatea collection of views. Add the view that needs to be displayed
BaseTemplate$tplcurrently logged in user. Not used in this context.
Returns
bool always true
Authors::onUserPageSettings (   $oUser,
  $oTitle,
$aSettingViews 
)

Hook-handler for 'BS:UserPageSettings'

Parameters
User$oUserThe current MediaWiki User object
Title$oTitleThe current MediaWiki Title object
array$aSettingViewsA list of View objects
Returns
array The SettingsViews array with an andditional View object

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