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

Public Member Functions

 onBSTopMenuBarCustomizerRegisterNavigationSites (&$aNavigationSites)
 
 onBeforePageDisplay (&$oOutputPage, &$oSkin)
 
 runPreferencePlugin ($sAdapterName, $oVariable)
 
 onBSNamespaceManagerBeforeSetUsernamespaces ($classInstance, &$bsSystemNamespaces)
 
 onSkinTemplateNavigationUniversal (&$sktemplate, &$links)
 
 onParserFirstCallInit (&$parser)
 
 onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
 onMore ($input, $args, $parser)
 
 onBlogTime ($input, $args, $parser)
 
 onUnknownAction ($action, $article)
 
 onEditFormPreloadText (&$sText, &$oTitle)
 
 onBlog ($input, $args, $parser)
 
 onBSRSSFeederGetRegisteredFeeds ($aFeeds)
 
 buildRssNsBlog ()
 
 buildLinksNs ()
 
 onBSUsageTrackerRegisterCollectors (&$aCollectorsConfig)
 
- 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 onRegistration ()
 

Protected Member Functions

 initExt ()
 
 getBlogPages ($iNS)
 
- 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

Blog::initExt ( )
protected

Initialization of Blog extension

Blog::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)

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

Parameters
OutputPage$oOutputPage
Skin$oSkin
Returns
bool
Blog::onBlog (   $input,
  $args,
  $parser 
)

Renders the blog. Called by parser function for bs:blog tag and also from Blog::onUnknownAction.

Parameters
string$inputInner HTML of bs:blog tag. Not used.
array$argsList of tag attributes.
Parser$parserMediaWiki parser object
Returns
string HTML output that is to be displayed.
Blog::onBlogTime (   $input,
  $args,
  $parser 
)

Called by parser function for bs:blog:time tag

Parameters
String$inputInner HTML of bs:blog:time tag. Not used.
Array$argsList of tag attributes.
Parser$parserMediaWiki parser object
Returns
String - empty | error
Blog::onBSInsertMagicAjaxGetData ( $oResponse,
  $type 
)

Inject tags into InsertMagic

Parameters
Object$oResponsereference $param String $type
Returns
always true to keep hook running
Blog::onBSTopMenuBarCustomizerRegisterNavigationSites ( $aNavigationSites)

Adds entry to navigation sites string $wgScriptPath

Parameters
array$aNavigationSites
Returns
boolean - always true
Blog::onEditFormPreloadText ( $sText,
$oTitle 
)

Prefills new article with category. This is used when a new blog entry is created via the new entry form and the blog article base is derived from a category. Called by EditFormPreloadText hook.

Parameters
string$sTextPrefill text.
Title$oTitleCurrent MediaWiki title object.
Returns
bool true to allow other hooked methods to be executed.
Blog::onMore (   $input,
  $args,
  $parser 
)

Hides the bs:blog:more tag in output. Called by parser function.

Parameters
string$inputInner HTML of bs:blog:more tag. Not used.
array$argsList of tag attributes.
Parser$parserMediaWiki parser object
Returns
string HTML output that is to be displayed.
Blog::onParserFirstCallInit ( $parser)

Registers bs:blog and bs:blog:more tag. Called by ParserFirstCallInit hook.

Parameters
Parser$parserMediaWiki Parser object
Returns
bool allow other hooked methods to be executed. Always true.
static Blog::onRegistration ( )
static

extension.json callback

Blog::onSkinTemplateNavigationUniversal ( $sktemplate,
$links 
)

Removes all content actions from action tabs and highlights blog in application context. Called by SkinTemplateNavigationUniversal hook.

Parameters
SkinTemplate$sktemplate
type$links
Returns
boolean Always true to keep hook running
Blog::onUnknownAction (   $action,
  $article 
)

Renders blog output when called via topbar and action=blog. Called by UnkownAction hook.

Deprecated:
since 2.27.0, use Special:Blog instead.
Parameters
string$actionValue of the action parameter as determined by MediaWiki
Article$articleMediaWiki Article object of current article
Returns
bool false to prevent other actions to bind on 'blog'.
Blog::runPreferencePlugin (   $sAdapterName,
  $oVariable 
)

Defines the options for preferences settings of ImageRenderMode and NewEntryFieldPosition

Parameters
string$sAdapterNameKey of the adapter, typically MW
BsConfig$oVariableContains the object of the preference that shall be rendered.
Returns
array Array of preference settings.

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