Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SMW\Setup Class Reference

Public Member Functions

 init (&$vars, $rootDir)
 

Static Public Member Functions

const static registerExtensionCheck (&$vars)
 
static releaseExtensionCheck (&$vars)
 
static initExtension (&$vars)
 
static isEnabled ()
 
static isValid ( $isCli=false)
 

Public Attributes

const MINIMUM_DB_VERSION
 

Detailed Description

Extension setup and registration

GNU GPL v2+

Since
1.9
Author
mwjames

Member Function Documentation

◆ init()

SMW\Setup::init ( $vars,
  $rootDir 
)
Since
1.9
Parameters
array&$vars
string$rootDir

◆ initExtension()

static SMW\Setup::initExtension ( $vars)
static

Runs at the earliest possible event to initialize functions or hooks that are otherwise too late for the hook system to be recognized.

Since
3.0

◆ isEnabled()

static SMW\Setup::isEnabled ( )
static
Since
3.0

◆ isValid()

static SMW\Setup::isValid (   $isCli = false)
static
Since
3.0

◆ registerExtensionCheck()

const static SMW\Setup::registerExtensionCheck ( $vars)
static

Registers a hook even before the "early" registration to allow checking whether the extension is loaded and enabled.

Since
3.1
Parameters
array$vars

◆ releaseExtensionCheck()

static SMW\Setup::releaseExtensionCheck ( $vars)
static
Since
3.2
Parameters
array$vars

Member Data Documentation

◆ MINIMUM_DB_VERSION

const SMW\Setup::MINIMUM_DB_VERSION
Initial value:
= [
'postgres' => '9.5'

Describes the minimum requirements for the database version that Semantic MediaWiki expects and may differ from what is defined in:

  • MysqlInstaller
  • PostgresInstaller
  • SqliteInstaller

Any change to a version will modify the key computed by SetupFile::makeKey.


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

About | General disclaimer | Privacy policy