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

Public Member Functions

 __construct ()
 
 execute ()
 

Protected Member Functions

 addDefaultParams ()
 
 loadGlobalFunctions ()
 
 getStore ()
 
 dropStore (Store $store)
 
 promptDeletionVerification ($storeName)
 

Protected Attributes

 $originalStore
 

Detailed Description

Sets up the storage backend currently selected in LocalSettings.php (or the default MySQL store if no other store was selected). This is equivalent to clicking the respective button on the special page Special:SMWAdmin. 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...]

-password Password for user account NOTE: specifying user credentials in a command line call will usually store them within the shell history file. For security, provide credentials in Adminssetings.php instead and ensure that your text editor does not create world-readable backup copies when modifying this file.

–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.

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

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

Constructor & Destructor Documentation

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

Member Function Documentation

SMW\Maintenance\SetupStore::addDefaultParams ( )
protected
See also
Maintenance::addDefaultParams
Since
2.0
SMW\Maintenance\SetupStore::dropStore ( Store  $store)
protected
SMW\Maintenance\SetupStore::execute ( )
Since
2.0
SMW\Maintenance\SetupStore::getStore ( )
protected
SMW\Maintenance\SetupStore::loadGlobalFunctions ( )
protected
SMW\Maintenance\SetupStore::promptDeletionVerification (   $storeName)
protected
Parameters
string$storeName
Returns
boolean

Member Data Documentation

SMW\Maintenance\SetupStore::$originalStore
protected

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