Go to the source code of this file.
Variables | |
| $optionsWithArgs = array( 'd', 's', 'e', 'n', 'b', 'startidfile', 'server', 'page' ) | |
| global | $smwgEnableUpdateJobs = false |
| global | $wgServer |
| global | $wgTitle = Title::newFromText( 'SMW_refreshData.php' ) |
| $filterarray = array() | |
| if(array_key_exists( 'c', $options)) if(array_key_exists( 'p', $options)) if(array_key_exists( 't', $options)) | $filter = count( $filterarray ) > 0 ? $filterarray : false |
| if(array_key_exists( 'f', $options)) | $linkCache = LinkCache::singleton() |
| $num_files = 0 | |
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 SMW_refreshData.php [options...]
-d <delay> Wait for this many milliseconds after processing an article, useful for limiting server load. -s <startid> Start refreshing at given article ID, useful for partial refreshing -e <endid> Stop refreshing at given article ID, useful for partial refreshing -n <numids> Stop refreshing after processing a given number of IDs, useful for partial refreshing --startidfile <startidfile> Read <startid> from a file instead of the arguments and write the next id to the file when finished. Useful for continual partial refreshing from cron. -b <backend> Execute the operation for the storage backend of the given name (default is to use the current backend) -v Be verbose about the progress. -c Will refresh only category pages (and other explicitly named namespaces) -p Will refresh only property pages (and other explicitly named namespaces) -t Will refresh only type pages (and other explicitly named namespaces) --page=<pagelist> will refresh only the pages of the given names, with | used as a separator. Example: --page="Page 1|Page 2" refreshes Page 1 and Page 2 Options -s, -e, -n, --startidfile, -c, -p, -t are ignored if --page is given. -f Fully delete all content instead of just refreshing relevant entries. This will also rebuild the whole storage structure. May leave the wiki temporarily incomplete. --server=<server> The protocol and server name to as base URLs, e.g. http://en.wikipedia.org. This is sometimes necessary because server name detection may fail in command line scripts.
Definition in file SMW_refreshData.php.
| if (array_key_exists( 'c', $options)) if (array_key_exists( 'p', $options)) if (array_key_exists( 't', $options)) $filter = count( $filterarray ) > 0 ? $filterarray : false |
Definition at line 110 of file SMW_refreshData.php.
Referenced by SMWSparqlStoreQueryEngine::buildConjunctionCondition(), SMWSparqlStoreQueryEngine::buildDisjunctionCondition(), SDCreateFilter::execute(), SDBrowseData::execute(), SMWSQLStoreLight::getSemanticData(), SMWSQLStore2::getSemanticData(), and SDBrowseDataPage::printFilterValue().
| $filterarray = array() |
Definition at line 100 of file SMW_refreshData.php.
| if (array_key_exists( 'f', $options)) $linkCache = LinkCache::singleton() |
Definition at line 132 of file SMW_refreshData.php.
Referenced by SMWExportController::printAll(), SMWExportController::printPageList(), and SMWExportController::printPages().
| $num_files = 0 |
Definition at line 133 of file SMW_refreshData.php.
| $optionsWithArgs = array( 'd', 's', 'e', 'n', 'b', 'startidfile', 'server', 'page' ) |
Definition at line 41 of file SMW_refreshData.php.
| $smwgEnableUpdateJobs = false |
Definition at line 45 of file SMW_refreshData.php.
Referenced by SMWUpdateJob::insert(), SMWParseData::storeData(), and SMWSQLStore2::updateRedirects().
| global $wgServer |
Definition at line 45 of file SMW_refreshData.php.
| $wgTitle = Title::newFromText( 'SMW_refreshData.php' ) |
Definition at line 45 of file SMW_refreshData.php.
Referenced by SFFormUtils::cancelLinkHTML(), SFFormLinker::createLinkedPage(), SRFCalendar::displayCalendar(), SDBrowseData::execute(), SFFormPrinter::formHTML(), SRFPloticus::getResultText(), SMWEmbeddedResultPrinter::getResultText(), SMWResultPrinter::handleNonFileResult(), SMWFactbox::onOutputPageParserOutput(), SFFormUtils::prepareTextForFCK(), SFRunQuery::printPage(), SMWShow::render(), SMWSetRecurringEvent::render(), SMWDeclare::render(), SMWConcept::render(), SMWAsk::render(), SFParserFunctions::renderAutoEdit(), SFFormLinker::setBrokenLink(), SFFormEditPage::setHeaders(), SFUploadForm::show(), and SFFormUtils::watchInputHTML().
1.5.6