BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BsExtensionMW Class Reference

Inherits BlueSpice\Extension, and BlueSpice\ITagExtensionDefinitionProvider.

Inherited by AboutBlueSpice, Authors, Blog, BlueSpiceCategoryManager, BlueSpicePasteImage, BoilerPlate, Bookshelf, BookshelfUI, BsPHPExcel, BSSocialActionsMW, BSSocialActivityStream, BSSocialActivityStreamUpdate, BSSocialArticles, BSSocialBlog, BSSocialComments, BSSocialGroups, BSSocialMaskSourceTitles, BSSocialMicroBlog, BSSocialNotifications, BSSocialProfile, BSSocialRating, BSSocialTags, BSSocialTopics, BSSocialWatchEntities, Canvas3DTagCloud, CategoryCheck, Checklist, ContextMenu, Dashboards, Emoticons, Expiry, ExportTables, ExtendedStatistics, FlaggedRevsConnector, Flexiskin, GroupManager, HideTitle, InsertCategory, InsertFile, InsertLink, InsertMagic, InsertTemplate, InterWikiLinks, LatexRenderer, NamespaceCss, NamespaceManager, PageAccess, PagesVisited, PageTemplates, PermissionManager, Rating, Readers, Reminder, Review, ReviewExtended, RSSFeeder, RSSStandards, SaferEdit, Showtime, SmartList, TagCloud, TagSearch, UEModuleBookDOCX, UEModuleBookHTML, UEModuleBookPDF, UEModuleDOCX, UEModuleHTML, UEModulePDF, UEModulePDFRecursive, UEModulePDFSubpages, UEModuleTable2Excel, UniversalExport, UsageTracker, UserManager, UserPreferences, VisualDiff, and WikiExplorer.

Collaboration diagram for BsExtensionMW:

Public Member Functions

 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 Attributes

 $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
 

Detailed Description

Deprecated:
since version 3.0.0 - Use instead

Member Function Documentation

BsExtensionMW::getCacheKey (   $sSubKey = 'default')

Returns the cache key for this particlular extension

Parameters
string$sSubKey
Deprecated:
since version 3.0.0
Returns
string
BsExtensionMW::getExtensionKey ( )

Returns the key of the extension. 'MW::<name>'

Returns
string
BsExtensionMW::getImagePath (   $bResources = false)

Returns the image path for the current extension

Parameters
boolean$bResourcesWhether or not the image directory is located inside the resources directory
Deprecated:
since version 3.0.0
Returns
string
BsExtensionMW::getInfo ( )

returns the extension informations as an array

Returns
array
BsExtensionMW::getName ( )

Returns the name of the extension

Returns
string
BsExtensionMW::getResourcePath ( )

Returns the resource path for the current extension string $IP string $wgScriptPath

Returns
string
BsExtensionMW::initExt ( )
protected
Deprecated:
since version 3.0.0 - Use constructor instead
BsExtensionMW::makeTagExtensionDefinitions ( )

Returns an array of tag extension definitions

Returns
array

Implements BlueSpice\ITagExtensionDefinitionProvider.

BsExtensionMW::setConfig ( \Config  $config)

Sets the Config

Parameters
\Config$config
Deprecated:
since version 3.0.0 - This is just for backwards compatibillity as older extensions may have their own constructor and therefore do not handover the config to the parent constructor
Returns
Extension
BsExtensionMW::setContext ( \IContextSource  $context)

Sets the Context

Parameters
\IContextSource$context
Deprecated:
since version 3.0.0 - This is just for backwards compatibillity as older extensions may have their own constructor and therefore do not handover the context to the parent constructor
Returns
Extension
BsExtensionMW::setCore (   $oCore)

Save a reference to current adapter instance.

Deprecated:
since version 3.0.0
Parameters
BsCore$oCore
BsExtensionMW::setup (   $sExtName = "",
  $aConfig = array() 
)

Initializes the extension.

Parameters
string$sExtName
array$aConfig
Deprecated:
since version 3.0.0

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