SemanticMediaWiki/maintenance/SMW_conceptCache.php File Reference

Manage SMW concept caches, as supplied by SMWSQLStore2. More...

Go to the source code of this file.

Functions

 doAction ($title, $numlines=false)
 outputMessage ($message, $level=1)

Variables

 $optionsWithArgs = array( 'concept', 'old', 's', 'e' )
 $output_level
 if (!isset($smwgIP))
 $store = smwfGetStore()
 $db = wfGetDB( DB_SLAVE )
if(!($store instanceof
SMWSQLStore2)) 
$select_hard = array_key_exists( 'hard', $options )
 $select_update = array_key_exists( 'update', $options )
 $select_old = isset( $options['old'] ) ? intval( $options['old'] ) : false


Detailed Description

Manage SMW concept caches, as supplied by SMWSQLStore2.

Use option --help for usage details.

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.

Author:
Markus Krötzsch

Definition in file SMW_conceptCache.php.


Function Documentation

doAction ( title,
numlines = false 
)

outputMessage ( message,
level = 1 
)

Definition at line 198 of file SMW_conceptCache.php.

References $output_level.

Referenced by doAction().


Variable Documentation

$db = wfGetDB( DB_SLAVE )

Definition at line 97 of file SMW_conceptCache.php.

Referenced by SMWSqlStore2IdCache::__construct(), SMWSQLStore2::changeSMWPageID(), SMWSQLStore2::changeTitle(), SMWSQLHelpers::createTable(), SMWSQLStoreLight::deleteSemanticData(), SMWSQLStore2::deleteSemanticData(), SMWSQLStore2::deleteSubject(), SMWSQLStoreLight::doDataUpdate(), SMWSQLStore2::doDataUpdate(), SFCreateForm::doSpecialCreateForm(), SMWSQLStoreLight::drop(), SMWSQLStore2::drop(), SMWSQLStore2::fetchSemanticData(), SFUtils::getAllPagesForCategory(), SFUtils::getAllPagesForNamespace(), SFAutocompleteAPI::getAllValuesForProperty(), SFUtils::getCategoriesForPage(), SMWSQLStore2::getConceptCacheStatus(), SMWSQLHelpers::getFields(), SMWSQLStoreLight::getInProperties(), SMWSQLStore2::getInProperties(), SMWSQLStoreLight::getProperties(), SMWSQLStore2::getProperties(), SMWSQLStore2::getPropertiesSpecial(), SMWSQLStoreLight::getPropertySubjects(), SMWSQLStore2::getPropertySubjects(), SMWSQLStoreLight::getPropertyValues(), SMWSQLStore2::getRedirectId(), SMWSQLStoreLight::getSemanticData(), SMWSQLStore2::getSMWPageIDandSort(), SMWSQLStoreLight::getSQLConditions(), SMWSQLStore2::getSQLConditions(), SMWSQLStore2::getStatistics(), SMWSQLStore2::getUnusedPropertiesSpecial(), SMWSQLStore2::getWantedPropertiesSpecial(), SMWDITime::JD2Date(), SMWSQLStore2::makeSMWPageID(), SMWSQLStore2::moveSMWPageID(), SMWSQLStore2::prepareValueQuery(), SMWExportController::printAll(), SMWExportController::printPageList(), SMWSQLStoreLight::refreshData(), SMWSQLStore2::refreshData(), SMWSQLStoreLight::setup(), SMWSQLStore2::setup(), SMWSQLHelpers::setupIndex(), SMWSQLStore2::setupPredefinedProperties(), SMWSQLStore2::setupPropertyTables(), SMWSQLHelpers::setupTable(), SMWSQLStoreLight::setupTables(), SMWSQLStore2::setupTables(), SMWSQLHelpers::updateMySqlField(), SMWSQLHelpers::updatePostgresField(), SMWSQLStore2::updateRedirects(), and SMWSQLHelpers::updateTable().

$optionsWithArgs = array( 'concept', 'old', 's', 'e' )

Definition at line 15 of file SMW_conceptCache.php.

$output_level

Initial value:

 array_key_exists( 'quiet', $options ) ? 0 :
                                ( array_key_exists( 'verbose', $options ) ? 2 : 1 )

Definition at line 21 of file SMW_conceptCache.php.

Referenced by outputMessage().

if (!($store instanceof SMWSQLStore2)) $select_hard = array_key_exists( 'hard', $options )

Definition at line 104 of file SMW_conceptCache.php.

Referenced by doAction().

$select_old = isset( $options['old'] ) ? intval( $options['old'] ) : false

Definition at line 106 of file SMW_conceptCache.php.

Referenced by doAction().

$select_update = array_key_exists( 'update', $options )

Definition at line 105 of file SMW_conceptCache.php.

Referenced by doAction().

$store = smwfGetStore()

if(!isset($smwgIP))

Definition at line 90 of file SMW_conceptCache.php.


Generated on Sun Mar 18 07:15:41 2012 for Semantic MediaWiki by  doxygen 1.5.6