Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SMW\Maintenance\SetupStore Class Reference
Inheritance diagram for SMW\Maintenance\SetupStore:
Inheritance graph
[legend]
Collaboration diagram for SMW\Maintenance\SetupStore:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 
 setMessageReporter (MessageReporter $messageReporter)
 
 getDbType ()
 
 getConnection ()
 
 execute ()
 
 reportMessage ( $message)
 

Protected Member Functions

 initMessageReporter ()
 
 loadGlobalFunctions ()
 
 getStore ()
 
 dropStore (Store $store)
 
 hasDeletionVerification ()
 

Protected Attributes

 $originalStore
 
 $messageReporter
 

Detailed Description

Sets up the storage backend currently selected in the "LocalSettings.php" file (or the default MySQL store if no other store was selected). This is equivalent to clicking the respective button on the special page Special:SemanticMediaWiki. However, the latter may timeout if the setup involves migrating a lot of existing data.

Note: If SMW is not installed in its standard path under ./extensions then the MW_INSTALL_PATH environment variable must be set. See README in the maintenance directory.

Usage: php setupStore.php [options...]

–delete Delete all SMW data, uninstall the selected storage backend. This is useful when moving to a new storage engine, and in the rare case of unsinstalling SMW. Deleted data can be recreated using this script (setup) followed by the use of the rebuildhData.php script which may take some time.

–backend The backend to use, e.g. SMWSQLStore3.

–skip-optimize Skips the table optimization process.

–skip-import Skips the import process.

–nochecks When specified, no prompts are provided. Deletion will thus happen without the need to provide any confirmation.

Author
Markus Krötzsch
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
James Hong Kong

Constructor & Destructor Documentation

◆ __construct()

SMW\Maintenance\SetupStore::__construct ( )
Since
2.0

Member Function Documentation

◆ execute()

SMW\Maintenance\SetupStore::execute ( )
See also
Maintenance::execute
Since
2.0

◆ getConnection()

SMW\Maintenance\SetupStore::getConnection ( )
Since
3.0

◆ getDbType()

SMW\Maintenance\SetupStore::getDbType ( )
See also
Maintenance::getDbType
Since
3.0

◆ hasDeletionVerification()

SMW\Maintenance\SetupStore::hasDeletionVerification ( )
protected
Parameters
string$storeName
Returns
boolean

◆ reportMessage()

SMW\Maintenance\SetupStore::reportMessage (   $message)
Since
3.0
Parameters
string$message

◆ setMessageReporter()

SMW\Maintenance\SetupStore::setMessageReporter ( MessageReporter  $messageReporter)
Since
3.0
Parameters
MessageReporter$messageReporter

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

About | General disclaimer | Privacy policy