Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SCI\MediaWikiContextInteractor Class Reference

Public Member Functions

 __construct (IContextSource $context)
 
 getOldId ()
 
 hasMagicWord ( $magicword)
 
 hasAction ( $action)
 
 getTitle ()
 
 getLanguageCode ()
 

Detailed Description

Helper class to avoid making objects depend on the IContextSource and instead provide dedicated methods to access a specific aspect of the context.

GNU GPL v2+

Since
1.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SCI\MediaWikiContextInteractor::__construct ( IContextSource  $context)
Since
1.0
Parameters
IContextSource$context

Member Function Documentation

◆ getLanguageCode()

SCI\MediaWikiContextInteractor::getLanguageCode ( )
Since
1.0
Returns
string

◆ getOldId()

SCI\MediaWikiContextInteractor::getOldId ( )
See also
RawAction::getOldId
Since
1.0
Returns
int

◆ getTitle()

SCI\MediaWikiContextInteractor::getTitle ( )
Since
1.0
Returns
Title

◆ hasAction()

SCI\MediaWikiContextInteractor::hasAction (   $action)
Since
1.0
Parameters
string$action
Returns
boolean

◆ hasMagicWord()

SCI\MediaWikiContextInteractor::hasMagicWord (   $magicword)
Since
1.0
Parameters
string$magicword
Returns
boolean

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

About | General disclaimer | Privacy policy