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

Public Member Functions

 runPreferencePlugin ($sAdapterName, $oVariable)
 
 onBeforePageDisplay (OutputPage &$out, Skin &$skin)
 
 onStatebarAddSortBodyVars (&$aSortBodyVars)
 
 onBSStateBarBeforeBodyViewAdd ($oStatebar, &$aBodyViews, $oUser, $oTitle)
 
 onDefaultWidgets ($oEvent, $aWidgets)
 
 onBSWidgetListHelperInitKeyWords (&$aKeywords, $oTitle)
 
 onWidgetListKeyword ()
 
 onParserFirstCallInit (&$oParser)
 
 onBSUsageTrackerRegisterCollectors (&$aCollectorsConfig)
 
 getWidget ()
 
 onBSInsertMagicAjaxGetData (&$oResponse, $type)
 
- 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 ()
 

Protected Attributes

 $aCategoryWhitelist = array( 'Exportable', 'Public' )
 
 $aCategoryBlacklist = array( 'Confidential', 'Internal' )
 
 $aParamsDefaults
 
 $aParamsOverrides
 
- 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

UniversalExport::getWidget ( )

Creates a Widget object

Returns
ViewWidget
UniversalExport::initExt ( )
protected

Initialization of UniversalExport extension

UniversalExport::onBSStateBarBeforeBodyViewAdd (   $oStatebar,
$aBodyViews,
  $oUser,
  $oTitle 
)

Hook handler that adds information to the StateBar body

Parameters
StateBar$oStatebar
array$aBodyViews
User$oUser
Title$oTitle
Returns
boolean Always true to keep the hook running
UniversalExport::onBSUsageTrackerRegisterCollectors ( $aCollectorsConfig)

Register tag with UsageTracker extension

Parameters
array$aCollectorsConfig
Returns
Always true to keep hook running
UniversalExport::onBSWidgetListHelperInitKeyWords ( $aKeywords,
  $oTitle 
)

Hook-Handler for 'MW::Utility::WidgetListHelper::InitKeywords'. Registers a callback for the UNIVERSALEXPORT Keyword.

Parameters
array$aKeywords
Title$oTitle
Returns
boolean Always true to keep the hook running
UniversalExport::onDefaultWidgets (   $oEvent,
  $aWidgets 
)

Renders widget view of InfoBox. Called by MW::WidgetBar::DefaultWidgets.

Parameters
BsEvent$oEventThe Event object
array$aWidgetsAn array of widgets. Add your Widget to this array.
Returns
bool allow other hooked methods to be executed. always true
Deprecated:
in 1.1.1
UniversalExport::onParserFirstCallInit ( $oParser)

Hook-Handler for the MediaWiki 'ParserFirstCallInit' hook. Dispatches registration og TagExtensions to the TagLibrary.

Parameters
Parser$oParserThe MediaWiki Parser object
Returns
bool Always true to keep the hook runnning.
UniversalExport::onStatebarAddSortBodyVars ( $aSortBodyVars)

Hook-Handler for Hook 'BSStatebarAddSortBodyVars'

Parameters
array$aSortBodyVars
Returns
boolean Always true to keep hook running
UniversalExport::onWidgetListKeyword ( )

Creates a Widget for the UNIVERSALEXPORT Keyword.

Returns
ViewWidget
UniversalExport::runPreferencePlugin (   $sAdapterName,
  $oVariable 
)

Sets parameters for more complex options in preferences

Parameters
string$sAdapterNameName of the adapter, e.g. MW
BsConfig$oVariableInstance of variable
Returns
array Preferences options

Member Data Documentation

UniversalExport::$aParamsDefaults
protected
Initial value:
= array(
'format' => 'pdf',
'pdf-merging' => '0',
'attachments' => '0',
'recursive' => false,
'filter' => 'use-all'
)
UniversalExport::$aParamsOverrides
protected
Initial value:
= array(
'use-serverside-caching' => false,
'pdf-attachment-formats' => array( 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp', 'odg', 'svg' )
)

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