MediaWiki  1.23.2
cdb.php File Reference

cdb inspector tool More...

Go to the source code of this file.

Functions

 cdbShowHelp ( $command)
 

Variables

if( $line===false$args = explode( ' ', $line )
 
 $command = array_shift( $args )
 
static $fileHandle = false
 
 $line = Maintenance::readconsole()
 
 $quit = false
 
 $showhelp = false
 
 do
 
switch( $command) if( $bad) else
 

Detailed Description

cdb inspector tool

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Todo:
document

Definition in file cdb.php.

Function Documentation

◆ cdbShowHelp()

cdbShowHelp (   $command)

Definition at line 28 of file cdb.php.

References $command, array(), and as.

Variable Documentation

◆ $args

if ($line===false) $args = explode( ' ', $line )
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 62 of file cdb.php.

Referenced by Parser_DiffTest\__call(), StubObject\__call(), StubContLang\__call(), StubUserLang\__call(), MWNamespaceTest\__call(), MediaWikiTestCase\__call(), Skin\__call(), Article\__call(), DummyLinker\__call(), DatabaseSqlite\__construct(), UserOptions\__construct(), BackupDumper\__construct(), DatabaseOracle\__construct(), MWMemcached\__construct(), MediaTransformError\__construct(), DatabaseBase\__construct(), JSNode\__construct(), PPTemplateFrame_Hash\__toString(), PPTemplateFrame_DOM\__toString(), StubObject\_call(), LogPage\actionText(), CachedAction\addCachedHTML(), SpecialCachedPage\addCachedHTML(), OutputPage\addWikiMsg(), OutputPage\addWikiMsgArray(), lessc_parser\argumentDef(), ArrayUtils\arrayDiffAssocRecursive(), OutputPageTest\assertTransformCssMediaCase(), MWFunction\call(), LBFactory\callMethod(), MWInit\callStaticMethod(), UserOptions\checkOpts(), lessc\colorArgs(), WikiPage\commitRollback(), lessc\compileProp(), lessc\compileValue(), DatabaseSqlite\deadlockLoop(), DatabaseBase\deadlockLoop(), RecompressTracked\dispatch(), RecompressTracked\dispatchToSlave(), RecompressTracked\doAllOrphans(), DeleteOldRevisions\doDelete(), MultiWriteBagOStuff\doWrite(), ApiQueryAllMessages\execute(), CommandLineInc\execute(), SpecialEditWatchlist\execute(), DatabaseBase\execute(), RecompressTracked\executeChild(), DatabaseBase\fillPrepared(), WikiImporter\finishImportPage(), RepoGroup\forEachForeignRepo(), LBFactory\forEachLBCallMethod(), lessc_parser\func(), CachedAction\getCachedValue(), SpecialCachedPage\getCachedValue(), CacheHelper\getCachedValue(), WebInstaller\getHelpBox(), FileRepo\getLocalCacheKey(), GenerateJqueryMsgData\getMessagesAndTests(), ForeignDBViaLBRepo\getSharedCacheKey(), ForeignDBRepo\getSharedCacheKey(), LocalRepo\getSharedCacheKey(), PPFrame_Hash\implode(), PPFrame_DOM\implode(), PPFrame_Hash\implodeWithFlags(), PPFrame_DOM\implodeWithFlags(), UserOptions\initializeOpts(), lessc\injectVariables(), CoreParserFunctions\intFunction(), lessc\lib__sprintf(), lessc\lib_contrast(), lessc\lib_darken(), lessc\lib_desaturate(), lessc\lib_fade(), lessc\lib_fadein(), lessc\lib_fadeout(), lessc\lib_lighten(), lessc\lib_mix(), lessc\lib_mod(), lessc\lib_pow(), lessc\lib_saturate(), lessc\lib_spin(), Maintenance\loadParamsAndArgs(), MWExceptionTest\mockHook(), HTMLFormField\msg(), MWException\msg(), DBConnectionError\msg(), ContextSource\msg(), DerivativeContext\msg(), RequestContext\msg(), PPFrame_Hash\newChild(), PPFrame_DOM\newChild(), Preprocessor_Hash\newCustomFrame(), Preprocessor_DOM\newCustomFrame(), RecompressTracked\newFromCommandLine(), MWFunction\newObj(), MediaWikiSite\normalizePageName(), WikiImporter\pageOutCallback(), lessc_parser\parseChunk(), BackupDumper\processArgs(), SpecialUpload\processVerificationError(), JobQueueRedis\pushBlobs(), SvgHandler\rasterize(), lessc\reduce(), Sanitizer\removeHTMLtags(), ParserOutput\replaceEditSectionLinksCallback(), ImportReporter\reportPage(), Hooks\run(), MWException\runHooks(), ContentHandler\runLegacyHooks(), MWHttpRequest\setData(), WebInstaller\showError(), WebInstaller\showHelpBox(), LogEventsList\showLogExtract(), WebInstaller\showMessage(), SpecialUpload\showUploadWarning(), CoreParserFunctions\tagObj(), ArrayUtilsTest\testArrayDiffAssocRecursive(), MWFunctionTest\testNewObjFunction(), ApiOptionsTest\testResetChangeOption(), MWExceptionTest\testRunHooks(), PPFrame_Hash\virtualBracketedImplode(), PPFrame_DOM\virtualBracketedImplode(), PPFrame_Hash\virtualImplode(), PPFrame_DOM\virtualImplode(), OutputPage\wrapWikiMsg(), RandomImageGenerator\writeImageWithCommandLine(), and lessc\zipSetArgs().

◆ $command

◆ $fileHandle

$fileHandle = false
static

Definition at line 55 of file cdb.php.

◆ $line

Examples
/src/includes/rcfeed/RedisPubSubFeedEngine.php.

Definition at line 57 of file cdb.php.

Referenced by UIDGenerator\__construct(), MWMemcached\_incrdecr(), MWMemcached\_set(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), SpecialRevisionDelete\buildCheckBoxes(), TableDiffFormatter\changed(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), lessc\deduplicate(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), DiffEngine\diag(), DiffEngine\diffLocal(), Installer\envCheckShellLocale(), MwSql\execute(), GenerateNormalizerDataAr\execute(), FetchText\execute(), DeleteBatch\execute(), GenerateUtf8Case\execute(), MoveBatch\execute(), RecompressTracked\executeChild(), DumpTestCase\expectETAOutput(), ArrayDiffFormatter\format(), GenerateCollationData\generateFirstChars(), UploadBase\getFilenamePrefixBlacklist(), MWDebug\getHTMLDebugLog(), MWExceptionHandler\getLogMessage(), RandomImageGenerator\getRandomLines(), FormatMetadata\getVisibleFields(), ConfEditorParseError\highlight(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), Block\isWhitelistedFromAutoblocks(), DiffEngine\lineHash(), DiffFormatter\lines(), Licenses\makeLicenses(), RecentChange\notifyRCFeeds(), QueryPage\outputResults(), SearchHighlighter\process(), SquidPurgeClient\processHeaderLine(), SquidPurgeClient\processStatusLine(), Maintenance\readlineEmulation(), TestFileIterator\readNextTest(), UDPRCFeedEngine\send(), RedisPubSubFeedEngine\send(), StatCounter\sendDeltasUDP(), RecentChange\sendToUDP(), SpecialSearch\showInterwiki(), FileDuplicateSearchPage\showList(), DatabaseOracle\sourceStream(), DatabaseBase\sourceStream(), WordLevelDiff\split(), SearchHighlighter\splitAndAdd(), testLine(), lessc_parser\throwError(), wfHtmlValidationHandler(), and TableDiffFormatter\wrapLine().

◆ $quit

$quit = false

Definition at line 54 of file cdb.php.

◆ $showhelp

$showhelp = false

Definition at line 53 of file cdb.php.

◆ do

do
Initial value:
{
$bad = false

Definition at line 51 of file cdb.php.

◆ else

switch ($command) if ($bad) else
Initial value:
{
if ( function_exists( 'readline_add_history' ) ) {
readline_add_history( $line );
}
}
} while ( !$quit )

Definition at line 124 of file cdb.php.

$quit
$quit
Definition: cdb.php:54
$line
$line
Definition: cdb.php:57