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

Public Member Functions

 onPageContentSave (&$wikiPage, &$user, &$content, &$summary, $minor, $watchthis, $sectionanchor, &$flags, &$status)
 
 getTemplateTitles ($sWikitext)
 
 checkAccessGroups ($oUser, $sAccessGroups)
 
 isUserAllowed ($oPage, $oUser)
 
 onParserFirstCallInit (&$parser)
 
 onUserCan ($title, $user, $action, &$result)
 
 onTagBsPageAccess ($input, $args, $parser)
 
 onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
 onBSUsageTrackerRegisterCollectors (&$aCollectorsConfig)
 
- Public Member Functions inherited from BsExtensionMW
 setCore ($oCore)
 
 getInfo ()
 
 getName ()
 
 getExtensionKey ()
 
 setup ($sExtName="", $aConfig=array())
 
 setHook ($hook, $method=false, $bExecuteFirst=false)
 
 getResourcePath ()
 
 getImagePath ($bResources=false)
 
 getCacheKey ($sSubKey= 'default')
 
 makeTagExtensionDefinitions ()
 
- Public Member Functions inherited from ContextSource
 getContext ()
 
 setContext (IContextSource $context)
 
 getConfig ()
 
 getRequest ()
 
 getTitle ()
 
 canUseWikiPage ()
 
 getWikiPage ()
 
 getOutput ()
 
 getUser ()
 
 getLanguage ()
 
 getSkin ()
 
 getTiming ()
 
 getStats ()
 
 msg ()
 
 exportSession ()
 

Protected Member Functions

 initExt ()
 
- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

Additional Inherited Members

- Protected Attributes inherited from BsExtensionMW
 $mExtensionFile = null
 
 $mExtensionType = null
 
 $mInfo = null
 
 $mExtensionKey = null
 
 $mResourcePath = null
 
 $sName = ''
 
 $sStatus = ''
 
 $sPackage = ''
 
 $mCore = null
 
 $aStandardContext = array( '*', '*', '*' )
 

Detailed Description

PageAccess adds a tag, used in WikiMarkup as follows: Grant exclusive access to group "sysop": <bs:pageaccess groups="sysop" /> Separate multiple groups by commas.

Member Function Documentation

PageAccess::checkAccessGroups (   $oUser,
  $sAccessGroups 
)

Checks if user is in one of the given user groups

Parameters
User$oUserthe current user
string$sAccessGroupsa comma separated list of user groups
Returns
bool
PageAccess::getTemplateTitles (   $sWikitext)

Returns an array of title objects that are used as templates in the given Wikitext.

Parameters
string$sWikitextWiki markup
Returns
array Title objects
PageAccess::isUserAllowed (   $oPage,
  $oUser 
)

Checks if user is allowed to view page

Parameters
Title$oPagetitle or article object
User$oUserthe current user
Returns
bool
PageAccess::onBSUsageTrackerRegisterCollectors ( $aCollectorsConfig)

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
PageAccess::onTagBsPageAccess (   $input,
  $args,
  $parser 
)
Parameters
type$input
string$args
Parser$parser
Returns
string

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