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

Public Member Functions

 onOutputPageBeforeHTML (&$oParserOutput, &$sText)
 
 onPageContentSave ($owikiPage, $oUser, $oContent, $sSummary, $bIsMinor, $bIsWatch, $iSection, &$iFlags, $oStatus)
 
- 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)
 

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

Emoticons::initExt ( )
protected

Initialization of Authors extension

Emoticons::onOutputPageBeforeHTML ( $oParserOutput,
$sText 
)

Hook-Handler for 'OutputPageBeforeHTML' (MediaWiki). Replaces Emoticon syntax with images.

Parameters
ParserOutput$oParserOutputThe ParserOutput object that corresponds to the page.
string$sTextThe text that will be displayed in HTML.
Returns
bool Always true to keep hook running.
Emoticons::onPageContentSave (   $owikiPage,
  $oUser,
  $oContent,
  $sSummary,
  $bIsMinor,
  $bIsWatch,
  $iSection,
$iFlags,
  $oStatus 
)

Hook-Handler for 'ArticleSave' (MediaWiki). Validates provided mapping syntax for Emoticons.

Parameters
WikiPage$owikiPageThe article object being saved
User$oUserThe user object saving the article
Content$oContentThe new article text
string$sSummaryThe article summary (comment)
bool$bIsMinorMinor flag
bool$bIsWatchWatch flag
int$iSectionNumber of edited section
int&$iFlags
Status$oStatusThe Status object
Returns
mixed Boolean true if syntax is okay or the saved article is not the MappingSourceArticle, String 'error-msg' if an error occurs.

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