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

Public Member Functions

 initExt ()
 
 onBSUEModulePDFBeforeAddingStyleBlocks (&$aTemplate, &$aStyleBlocks)
 
 onBSUEModulePDFBeforeCreatePDF ($oModule, $oDOM, $oCaller)
 
 onArticleContentOnDiff ($diffEngine, $output)
 
- 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)
 

Static Public Member Functions

static getLessVars (Config $config=null)
 

Static Public Attributes

static $sVisualDiffFolderName = 'VisualDiff'
 

Protected Attributes

 $aEngines = array('HTMLDiffEngine', 'UnifiedTextDiffEngine')
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

Member Function Documentation

static VisualDiff::getLessVars ( Config  $config = null)
static

Get global LESS variables.

Parameters
Config$config
Since
1.22
Returns
array Map of variable names to string CSS values.
VisualDiff::initExt ( )

Initialization of VisualDiff extension

VisualDiff::onArticleContentOnDiff (   $diffEngine,
  $output 
)

This seems to be a bad hook, because it is only executed when $user->getBoolOption( 'diffonly' ) === false

Parameters
DifferenceEngine$diffEngine
OutputPage$output
Returns
boolean
VisualDiff::onBSUEModulePDFBeforeAddingStyleBlocks ( $aTemplate,
$aStyleBlocks 
)

Embeds CSS into pdf export

Parameters
array$aTemplate
array$aStyleBlocks
Returns
boolean Always true to keep hook running
VisualDiff::onBSUEModulePDFBeforeCreatePDF (   $oModule,
  $oDOM,
  $oCaller 
)

Make sure to hide content of not selected tabs

Parameters
BsExportModulePDF$oModule
DOMDocument$oDOM
SpecialUniversalExport$oCaller
Returns
boolean Always true to keep hook running

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