BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Bootstrap\BootstrapManager Class Reference

Public Member Functions

 __construct (ModuleDefinition $moduleDefinition)
 
 addBootstrapModule ($modules)
 
 addAllBootstrapModules ()
 
 addExternalModule ($file, $remotePath= '')
 
 setLessVariable ($key, $value)
 
 setLessVariables ($variables)
 
 addCacheTriggerFile ($files)
 

Static Public Member Functions

static getInstance ()
 
static clear ()
 

Protected Member Functions

 addFilesToGlobalResourceModules ($filetype, $description, $fileExt)
 
 initCoreModules ()
 
 adjustArrayElementOfResourceModuleDescription ($key, $value, $filetype= 'styles')
 

Protected Attributes

 $moduleDefinition = null
 

Detailed Description

Class managing the Bootstrap framework.

Constructor & Destructor Documentation

Bootstrap\BootstrapManager::__construct ( ModuleDefinition  $moduleDefinition)
Since
1.0
Parameters
ModuleDefinition$moduleDefinition

Member Function Documentation

Bootstrap\BootstrapManager::addAllBootstrapModules ( )

Adds all bootstrap modules

Since
1.0
Bootstrap\BootstrapManager::addBootstrapModule (   $modules)

Adds the given Bootstrap module or modules.

Since
1.0
Parameters
string|string[]$modules
Bootstrap\BootstrapManager::addCacheTriggerFile (   $files)
Since
1.1
Parameters
string|string[]$files
Bootstrap\BootstrapManager::addExternalModule (   $file,
  $remotePath = '' 
)
Since
1.0
Parameters
string$file
string$remotePath
Bootstrap\BootstrapManager::addFilesToGlobalResourceModules (   $filetype,
  $description,
  $fileExt 
)
protected
Parameters
string$filetype'styles'|'scripts'
mixed[]$description
$fileExt
Bootstrap\BootstrapManager::adjustArrayElementOfResourceModuleDescription (   $key,
  $value,
  $filetype = 'styles' 
)
protected
Parameters
string$key
mixed$value
string$filetype'styles'|'scripts'
static Bootstrap\BootstrapManager::clear ( )
static
Since
1.0
static Bootstrap\BootstrapManager::getInstance ( )
static

Returns the Bootstrap singleton.

Since
1.0
Returns
BootstrapManager
Bootstrap\BootstrapManager::setLessVariable (   $key,
  $value 
)
Since
1.0
Parameters
string$keythe LESS variable name
string$valuethe value to assign to the variable
Bootstrap\BootstrapManager::setLessVariables (   $variables)
Since
1.0
Parameters
mixed[]$variables

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