MediaWiki  1.33.0
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, 2 )
 
 $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 30 of file cdb.php.

References $command, and as.

Variable Documentation

◆ $args

if ($line===false) $args = explode( ' ', $line, 2 )

Definition at line 64 of file cdb.php.

Referenced by ProxySpecialPage\__call(), ParserDiffTest\__call(), StubObject\__call(), DumpBackup\__construct(), MediaTransformError\__construct(), BackupDumper\__construct(), TextPassDumper\__construct(), MemcachedClient\__construct(), JSNode\__construct(), StubObject\_call(), LogPage\actionText(), HTMLForm\addButton(), CachedAction\addCachedHTML(), SpecialCachedPage\addCachedHTML(), ArrayUtils\arrayDiffAssocRecursive(), MemoizedCallable\call(), Xhprof\callAny(), Hooks\callHook(), MediaWiki\Auth\AuthManager\callMethodOnProviders(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), WikiPage\commitRollback(), Wikimedia\Rdbms\DatabaseSqlite\deadlockLoop(), Wikimedia\Rdbms\Database\deadlockLoop(), RecompressTracked\dispatch(), RecompressTracked\dispatchToReplica(), RecompressTracked\doAllOrphans(), DeleteOldRevisions\doDelete(), MultiWriteBagOStuff\doWrite(), Xml\encodeJsCall(), SpecialInterwiki\error(), MediaWiki\Shell\Shell\escape(), ApiQueryAllMessages\execute(), FindHooks\execute(), CommandLineInc\execute(), SpecialEditWatchlist\execute(), RecompressTracked\executeChild(), WikiImporter\finishImportPage(), Wikimedia\Rdbms\LBFactory\forEachLBCallMethod(), Http\get(), PPCustomFrame_Hash\getArguments(), PPCustomFrame_DOM\getArguments(), CachedAction\getCachedValue(), SpecialCachedPage\getCachedValue(), CacheHelper\getCachedValue(), InputBox\getEditActionArgs(), WebInstaller\getHelpBox(), FindHooks\getHooksFromFile(), FindHooks\getHooksFromLocalDoc(), MediaWiki\Auth\ButtonAuthenticationRequestTest\getInstance(), MediaWiki\Auth\PasswordAuthenticationRequestTest\getInstance(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest\getInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest\getInstance(), CaptchaAuthenticationRequestTest\getInstance(), MediaWiki\Auth\RememberMeAuthenticationRequestTest\getInstance(), FileRepo\getLocalCacheKey(), GenerateJqueryMsgData\getMessagesAndTests(), ForeignDBViaLBRepo\getSharedCacheKey(), ForeignDBRepo\getSharedCacheKey(), LocalRepo\getSharedCacheKey(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifeqObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\iferrorObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifexistObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifexprObj(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\ifObj(), Wikimedia\Rdbms\DatabasePostgres\insert(), CoreParserFunctions\intFunction(), MemoizedCallable\invokeArgs(), Maintenance\loadParamsAndArgs(), Maintenance\loadWithArgv(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\localTimeObj(), WinCacheBagOStuff\makeKeyInternal(), MemcachedBagOStuff\makeKeyInternal(), BagOStuff\makeKeyInternal(), MockMessageLocalizer\msg(), MWException\msg(), HTMLFormField\msg(), ContextSource\msg(), MWExceptionRenderer\msg(), DerivativeContext\msg(), RequestContext\msg(), Preprocessor_DOM\newCustomFrame(), Preprocessor_Hash\newCustomFrame(), RecompressTracked\newFromCommandLine(), FileBackend\newStatus(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), WikiImporter\pageOutCallback(), MediaWiki\Shell\Command\params(), SpecialUpload\processVerificationError(), MultiTestRecorder\proxy(), JobQueueRedis\pushBlobs(), ImportReporter\reportPage(), Hooks\run(), MysqlMaintenance\runMysql(), Hooks\runWithoutAbort(), MWHttpRequest\setData(), WebInstaller\showError(), WebInstaller\showHelpBox(), LogEventsList\showLogExtract(), WebInstaller\showMessage(), SpecialUpload\showUploadWarning(), LocalRepo\skipWriteOperationIfSha1(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\switchObj(), CoreParserFunctions\tagObj(), ArrayUtilsTest\testArrayDiffAssocRecursive(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest\testBasics(), XhprofTest\testCallAny(), MediaWiki\Auth\AuthenticationResponseTest\testConstructors(), MediaWiki\Session\PHPSessionHandlerTest\testDisabled(), ShellTest\testEscape(), MediaWiki\Auth\UserDataAuthenticationRequestTest\testLoadFromSubmission(), MediaWiki\Session\SessionTest\testMethods(), TemplateParserTest\testProcessTemplate(), ApiOptionsTest\testResetChangeOption(), DBConnRefTest\testRoleExceptions(), MediaWiki\Tests\Maintenance\DeleteAutoPatrolLogsTest\testRun(), ApiMainTest\testSetContinuationManagerTwice(), ApiBaseTest\testStubMethods(), MediaWiki\Session\PHPSessionHandlerTest\testWrongInstance(), MediaWiki\Extensions\ParserFunctions\ParserFunctions\timeObj(), MediaWiki\Shell\Command\unsafeParams(), wfEscapeShellArg(), wfForeignMemcKey(), wfGlobalCacheKey(), wfMemcKey(), wfMergeErrorArrays(), wfMsgReplaceArgs(), RandomImageGenerator\writeImageWithCommandLine(), and DatabaseUpdater\writeSchemaUpdateFile().

◆ $command

◆ $fileHandle

$fileHandle = false
static

Definition at line 57 of file cdb.php.

Referenced by MSCompoundFileReader\__construct(), and MSCompoundFileReader\readHandle().

◆ $line

Definition at line 59 of file cdb.php.

Referenced by UIDGenerator\__construct(), MemcachedClient\_incrdecr(), MemcachedClient\_set(), TestFileReader\addArticle(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), ReleaseNotesTest\assertFileLength(), SpecialRevisionDelete\buildCheckBoxes(), Licenses\buildLine(), SpamRegexBatch\buildRegexes(), SimpleCaptcha\buildRegexes(), RenameUserCleanup\checkRenameLog(), RenameUserCleanup\checkUserExistence(), OrderedStreamingForkController\consume(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), PdfImage\convertDumpToArray(), GadgetTest\create(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), Wikimedia\StaticArrayWriter\encode(), Installer\envCheckShellLocale(), ImageMap\error(), TestFileEditor\execute(), UpdateLexerList\execute(), DeleteBatch\execute(), CreateCommonPasswordCdb\execute(), GenerateNormalizerDataAr\execute(), MwSql\execute(), MoveBatch\execute(), FetchText\execute(), TestFileReader\execute(), MediaWiki\Shell\Command\execute(), RecompressTracked\executeChild(), MediaWiki\Tests\Maintenance\DumpTestCase\expectETAOutput(), InputBox\extractOptions(), ParserEditTests\findTest(), ArrayDiffFormatter\format(), GenerateCollationData\generateFirstChars(), ApiCSPReport\generateLogLine(), SpamRegexBatch\getBadLines(), TestFileEditor\getHeading(), MWDebug\getHTMLDebugLog(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), RandomImageGenerator\getRandomLines(), ReplaceAll\getReplacements(), FormatMetadata\getVisibleFields(), MWExceptionHandler\handleError(), MWExceptionHandler\handleFatalError(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), Block\isWhitelistedFromAutoblocks(), UnifiedDiffFormatter\lines(), DiffFormatter\lines(), MediaWikiGadgetsDefinitionRepo\listFromDefinition(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget\loadCustomCaptions(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\loadCustomCaptions(), Licenses\makeLines(), TitleBlacklistEntry\newFromString(), FormattedRCFeed\notify(), ConfirmEditHooks\onAlternateEditPreview(), SpecialGadgetUsage\outputResults(), QueryPage\outputResults(), ForeignResourceManager\parseBasicYaml(), TitleBlacklist\parseBlacklist(), TestFileEditor\parseHooks(), TestFileEditor\parseTest(), SearchHighlighter\process(), SquidPurgeClient\processHeaderLine(), SquidPurgeClient\processStatusLine(), Maintenance\readlineEmulation(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), ImageMap\render(), UDPRCFeedEngine\send(), RedisPubSubFeedEngine\send(), FileDuplicateSearchPage\showList(), DatabaseOracle\sourceStream(), Wikimedia\Rdbms\Database\sourceStream(), WordLevelDiff\split(), SearchHighlighter\splitAndAdd(), MwSql\sqlDoQuery(), RCFeedIntegrationTest\testNotify(), OldChangesListTest\testRecentChangesLine_Attribs(), OldChangesListTest\testRecentChangesLine_CssForLineNumber(), OldChangesListTest\testRecentChangesLine_dataAttribute(), OldChangesListTest\testRecentChangesLine_DiffHistLinks(), OldChangesListTest\testRecentChangesLine_Flags(), OldChangesListTest\testRecentChangesLine_LogTitle(), OldChangesListTest\testRecentChangesLine_NotWatchedCssClass(), OldChangesListTest\testRecentChangesLine_numberOfWatchingUsers(), OldChangesListTest\testRecentChangesLine_prefix(), OldChangesListTest\testRecentChangesLine_WatchedCssClass(), OldChangesListTest\testRecentChangesLine_watchlistCssClass(), OrderedStreamingForkController\updateAvailableSockets(), RenameUserCleanup\updateTable(), wfBacktrace(), wfIsBadImage(), TableDiffFormatter\wrapLine(), and MediaWiki\Logger\Monolog\MwlogHandler\write().

◆ $quit

$quit = false

Definition at line 56 of file cdb.php.

◆ $showhelp

$showhelp = false

Definition at line 55 of file cdb.php.

◆ do

do
Initial value:
{
$bad = false

Definition at line 53 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 127 of file cdb.php.

$quit
$quit
Definition: cdb.php:56
$line
$line
Definition: cdb.php:59