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

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

Member Function Documentation

SCI\MediaWikiContextInteractor::getLanguageCode ( )
Since
1.0
Returns
string
SCI\MediaWikiContextInteractor::getOldId ( )
See also
RawAction::getOldId
Since
1.0
Returns
int
SCI\MediaWikiContextInteractor::getTitle ( )
Since
1.0
Returns
Title
SCI\MediaWikiContextInteractor::hasAction (   $action)
Since
1.0
Parameters
string$action
Returns
boolean
SCI\MediaWikiContextInteractor::hasMagicWord (   $magicword)
Since
1.0
Parameters
string$magicword
Returns
boolean

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