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

Public Member Functions

 runPreferencePlugin ($sAdapterName, $oVariable)
 
 onGetPreferences ($user, &$preferences)
 
 onLoadExtensionSchemaUpdates ($updater)
 
 onSkinTemplateOutputPageBeforeExec (&$sktemplate, &$tpl)
 
 onArticleInsertComplete ($oWikiPage, $oUser, $sText, $sSummary, $bMinorEdit, $bWatchThis, $nSectionanchor, &$iFlags, $oRevision)
 
 getReminders (User $oUser, $iOffset=0, $iLimit=25, $sSortField= 'rem_date', $sSortDirection= 'ASC', $iDate=0)
 
 onSkinTemplateNavigation ($oSkinTemplate, &$links)
 
 onBeforePageDisplay (&$out, &$skin)
 
 onBSUserManagerAfterDeleteUser ($oSender, $oUser, &$aAnswer)
 
 onBSUserSidebarGlobalActionsWidgetGlobalActions (UserSidebar $oUserSidebar, User $oUser, &$aLinks, &$sWidgetTitle)
 
 onEchoGetDefaultNotifiedUsers ($event, &$users)
 
- 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 onUnitTestsList (&$paths)
 

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

Reminder::initExt ( )
protected

Init Method of Reminder class Array $wgHooks

Reminder::onArticleInsertComplete (   $oWikiPage,
  $oUser,
  $sText,
  $sSummary,
  $bMinorEdit,
  $bWatchThis,
  $nSectionanchor,
$iFlags,
  $oRevision 
)

Hook after Article is saved, sets up the reminder if user chose so

Parameters
WikiPage$oWikiPage
User$oUser
string$sText
string$sSummary
boolean$bMinorEdit
boolean$bWatchThis
null$nSectionanchor
int$iFlags
Revision$oRevision
Returns
boolean
Reminder::onBeforePageDisplay ( $out,
$skin 
)

Add styles TODO: Make conditional

Parameters
OutputPage$out
Skin$skin
Returns
boolean Always true to keep Hook running
Reminder::onBSUserManagerAfterDeleteUser (   $oSender,
  $oUser,
$aAnswer 
)

Delete all personal reminders when a user is deleted

Parameters
UserManager$oSender
User$oUserUser that was deleted
Returns
boolean Always true to keep Hook running
Reminder::onBSUserSidebarGlobalActionsWidgetGlobalActions ( UserSidebar  $oUserSidebar,
User  $oUser,
$aLinks,
$sWidgetTitle 
)

Adds Special:Reminder link to wiki wide widget

Parameters
UserSidebar$oUserSidebar
User$oUser
array$aLinks
string$sWidgetTitle
Returns
boolean
Reminder::onEchoGetDefaultNotifiedUsers (   $event,
$users 
)

Handler for EchoGetDefaultNotifiedUsers hook.

Parameters
EchoEvent$eventEchoEvent to get implicitly subscribed users for
array&$usersArray to append implicitly subscribed users to.
Returns
bool true in all cases
Reminder::onGetPreferences (   $user,
$preferences 
)

Removes the 'MW::Reminder::ShowAllReminders' setting if the user has no sufficient permissions

Parameters
User$user
Array$preferences
Returns
boolean Always true
Reminder::onLoadExtensionSchemaUpdates (   $updater)

Sets up required database tables

Parameters
DatabaseUpdater$updaterProvided by MediaWikis update.php
Returns
boolean Always true to keep the hook running
Reminder::onSkinTemplateOutputPageBeforeExec ( $sktemplate,
$tpl 
)

Creates Reminder link in personal urls and icon in personal info

Parameters
SkinTemplate$sktemplate
BaseTemplate$tpl
Returns
boolean Always true to keep hook running
Reminder::runPreferencePlugin (   $sAdapterName,
  $oVariable 
)

The preferences plugin callback

Parameters
string$sAdapterName
BsConfig$oVariable
Returns
array MediaWiki preferences options array

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