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

Static Public Member Functions

static onRegistration ()
 
static onUnitTestsList (array &$paths)
 
static onVisualEditorConfig (&$aConfigStandard, &$aConfigOverwrite, &$aLoaderUsingDeps)
 
static getListOptions ($listTitle)
 
static preg_replace_nth ($pattern, $replacement, $subject, $nth=1)
 
static onParserFirstCallInit (&$parser)
 
static onEditPage_showEditForm_initial (EditPage &$editPage, OutputPage &$output)
 
static onBSExtendedEditBarBeforeEditToolbar (&$aRows, &$aButtonCfgs)
 
static onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
static onMagicWordBsChecklist ($input, array $args, Parser $parser, PPFrame $frame)
 
static onBeforePageDisplay (&$oOutputPage, &$oSkin)
 
static onBSUsageTrackerRegisterCollectors (&$aCollectorsConfig)
 
static smwDataMapping (SMW\SemanticData $oSemanticData, WikiPage $oWikiPage, SMW\DIProperty $oProperty)
 

Static Public Attributes

static $iCheckboxCounter = 0
 
static $bCheckboxFound = false
 
static $iChecklistMaxItemLength = 60
 

Protected Member Functions

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

Static Protected Member Functions

static getNewCheckboxId ()
 

Additional Inherited Members

- 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 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
 

Detailed Description

Checklist adds a tag, used in WikiMarkup as follows: checkbox: <bs:checklist />

Member Function Documentation

static Checklist::onBeforePageDisplay ( $oOutputPage,
$oSkin 
)
static

Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if needed.

Parameters
OutputPage$oOutputPage
Skin$oSkin
Returns
bool
static Checklist::onBSExtendedEditBarBeforeEditToolbar ( $aRows,
$aButtonCfgs 
)
static
Parameters
array$aRows
type$aButtonCfgs
Returns
boolean
static Checklist::onBSInsertMagicAjaxGetData ( $oResponse,
  $type 
)
static

Inject tags into InsertMagic

Parameters
Object$oResponsereference $param String $type
Returns
always true to keep hook running
static Checklist::onBSUsageTrackerRegisterCollectors ( $aCollectorsConfig)
static

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
static Checklist::onEditPage_showEditForm_initial ( EditPage $editPage,
OutputPage $output 
)
static

Load editor resources (css, js) for checklist

Parameters
EditPage$editPage
OutputPage$output
Returns
boolean true
static Checklist::onMagicWordBsChecklist (   $input,
array  $args,
Parser  $parser,
PPFrame  $frame 
)
static

handle tag "bs:checkbox"

Parameters
type$input
array$args
Parser$parser
PPFrame$frame
Returns
type
static Checklist::onParserFirstCallInit ( $parser)
static
Parameters
Parser$parser
Returns
boolean
static Checklist::onRegistration ( )
static

extension.json callback

static Checklist::onUnitTestsList ( array &  $paths)
static

UnitTestsList allows registration of additional test suites to execute under PHPUnit. Extensions can append paths to files to the $paths array, and since MediaWiki 1.24, can specify paths to directories, which will be scanned recursively for any test case files with the suffix "Test.php".

Parameters
array$paths
static Checklist::onVisualEditorConfig ( $aConfigStandard,
$aConfigOverwrite,
$aLoaderUsingDeps 
)
static

Hook Handler for VisualEditorConfig Hook

Parameters
Array$aConfigStandardreference
Array$aConfigOverwritereference
Array&$aLoaderUsingDepsreference
Returns
boolean always true to keep hook alife
static Checklist::smwDataMapping ( SMW\SemanticData  $oSemanticData,
WikiPage  $oWikiPage,
SMW\DIProperty  $oProperty 
)
static

Callback for BlueSpiceSMWConnector that adds a semantic special property

Parameters
SMW\SemanticData$oSemanticData
WikiPage$oWikiPage
SMW\DIProperty$oProperty

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