MediaWiki REL1_30
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 29 of file cdb.php.

References $command, as, and print.

Variable Documentation

◆ $args

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

Definition at line 63 of file cdb.php.

Referenced by MediaWikiTestCase\__call(), MWNamespaceTest\__call(), ParserDiffTest\__call(), StubObject\__call(), MemcachedClient\__construct(), BackupDumper\__construct(), DumpBackup\__construct(), TextPassDumper\__construct(), MediaTransformError\__construct(), UserOptions\__construct(), JSNode\__construct(), StubObject\_call(), LogPage\actionText(), HTMLForm\addButton(), CachedAction\addCachedHTML(), SpecialCachedPage\addCachedHTML(), OutputPage\addWikiMsg(), OutputPage\addWikiMsgArray(), ArrayUtils\arrayDiffAssocRecursive(), OutputPageTest\assertTransformCssMediaCase(), Parser\braceSubstitution(), MemoizedCallable\call(), Hooks\callHook(), MediaWiki\Auth\AuthManager\callMethodOnProviders(), Parser\callParserFunction(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), UserOptions\checkOpts(), MediaWiki\Shell\Shell\command(), WikiPage\commitRollback(), ObjectFactory\constructClassInstance(), Parser\createAssocArgs(), Wikimedia\Rdbms\Database\deadlockLoop(), Wikimedia\Rdbms\DatabaseSqlite\deadlockLoop(), RecompressTracked\dispatch(), RecompressTracked\dispatchToReplica(), RecompressTracked\doAllOrphans(), DeleteOldRevisions\doDelete(), MultiWriteBagOStuff\doWrite(), Xml\encodeJsCall(), MediaWiki\Shell\Shell\escape(), SpecialEditWatchlist\execute(), ApiQueryAllMessages\execute(), CommandLineInc\execute(), FindHooks\execute(), RecompressTracked\executeChild(), WikiImporter\finishImportPage(), RepoGroup\forEachForeignRepo(), Wikimedia\Rdbms\LBFactory\forEachLBCallMethod(), Http\get(), PPCustomFrame_DOM\getArguments(), PPCustomFrame_Hash\getArguments(), CachedAction\getCachedValue(), CacheHelper\getCachedValue(), SpecialCachedPage\getCachedValue(), WebInstaller\getHelpBox(), FindHooks\getHooksFromFile(), FindHooks\getHooksFromLocalDoc(), MediaWiki\Auth\ButtonAuthenticationRequestTest\getInstance(), MediaWiki\Auth\PasswordAuthenticationRequestTest\getInstance(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest\getInstance(), MediaWiki\Auth\RememberMeAuthenticationRequestTest\getInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest\getInstance(), FileRepo\getLocalCacheKey(), GenerateJqueryMsgData\getMessagesAndTests(), ObjectFactory\getObjectFromSpec(), ForeignDBRepo\getSharedCacheKey(), ForeignDBViaLBRepo\getSharedCacheKey(), LocalRepo\getSharedCacheKey(), UserOptions\initializeOpts(), Wikimedia\Rdbms\DatabasePostgres\insert(), CoreParserFunctions\intFunction(), MemoizedCallable\invokeArgs(), Maintenance\loadParamsAndArgs(), Maintenance\loadWithArgv(), BagOStuff\makeKeyInternal(), MemcachedBagOStuff\makeKeyInternal(), ContextSource\msg(), DerivativeContext\msg(), RequestContext\msg(), MWException\msg(), MWExceptionRenderer\msg(), HTMLFormField\msg(), Preprocessor_DOM\newCustomFrame(), Preprocessor_Hash\newCustomFrame(), RecompressTracked\newFromCommandLine(), FileBackend\newStatus(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), WikiImporter\pageOutCallback(), Message\params(), MediaWiki\Shell\Command\params(), SpecialUpload\processVerificationError(), MultiTestRecorder\proxy(), JobQueueRedis\pushBlobs(), SvgHandler\rasterize(), Sanitizer\removeHTMLtags(), ImportReporter\reportPage(), Hooks\run(), Hooks\runWithoutAbort(), MWHttpRequest\setData(), WebInstaller\showError(), WebInstaller\showHelpBox(), LogEventsList\showLogExtract(), WebInstaller\showMessage(), SpecialUpload\showUploadWarning(), LocalRepo\skipWriteOperationIfSha1(), CoreParserFunctions\tagObj(), ArrayUtilsTest\testArrayDiffAssocRecursive(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest\testBasics(), ObjectFactoryTest\testConstructClassInstance(), MessageTest\testConstructorParams(), MediaWiki\Auth\AuthenticationResponseTest\testConstructors(), MediaWiki\Session\PHPSessionHandlerTest\testDisabled(), ShellTest\testEscape(), ObjectFactoryTest\testGetObjectFromClass(), ObjectFactoryTest\testGetObjectFromFactory(), ObjectFactoryTest\testGetObjectFromInvalid(), MediaWiki\Auth\UserDataAuthenticationRequestTest\testLoadFromSubmission(), OutputPageTest\testMakeResourceLoaderLink(), MediaWiki\Session\SessionTest\testMethods(), ObjectFactoryTest\testNamedArgs(), TemplateParserTest\testProcessTemplate(), ApiOptionsTest\testResetChangeOption(), MediaWiki\Session\PHPSessionHandlerTest\testWrongInstance(), MediaWiki\Shell\Command\unsafeParams(), wfEscapeShellArg(), wfForeignMemcKey(), wfMergeErrorArrays(), wfMessageFallback(), wfMsgReplaceArgs(), wfRunHooks(), OutputPage\wrapWikiMsg(), and RandomImageGenerator\writeImageWithCommandLine().

◆ $command

◆ $fileHandle

$fileHandle = false
static

Definition at line 56 of file cdb.php.

◆ $line

Definition at line 58 of file cdb.php.

Referenced by UIDGenerator\__construct(), MemcachedClient\_incrdecr(), MemcachedClient\_set(), TestFileReader\addArticle(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), SpecialRevisionDelete\buildCheckBoxes(), OrderedStreamingForkController\consume(), OrderedStreamingForkController\consumeNoFork(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), DjVuImage\convertDumpToXML(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), Parser\doAllQuotes(), Parser\doTableStuff(), Installer\envCheckShellLocale(), MediaWiki\Shell\Command\execute(), GenerateCommonPassword\execute(), DeleteBatch\execute(), FetchText\execute(), GenerateNormalizerDataAr\execute(), MoveBatch\execute(), MwSql\execute(), TestFileEditor\execute(), TestFileReader\execute(), RecompressTracked\executeChild(), DumpTestCase\expectETAOutput(), ParserEditTests\findTest(), ArrayDiffFormatter\format(), GenerateCollationData\generateFirstChars(), ApiCSPReport\generateLogLine(), UploadBase\getFilenamePrefixBlacklist(), ApiBase\getFinalParamDescription(), TestFileEditor\getHeading(), MWDebug\getHTMLDebugLog(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), RandomImageGenerator\getRandomLines(), FormatMetadata\getVisibleFields(), MWExceptionHandler\handleError(), MWExceptionHandler\handleFatalError(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), Block\isWhitelistedFromAutoblocks(), DiffFormatter\lines(), UnifiedDiffFormatter\lines(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\loadCustomCaptions(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget\loadCustomCaptions(), Licenses\makeLicenses(), FormattedRCFeed\notify(), QueryPage\outputResults(), XMPReader\parse(), DjVuImage\parseFormDjvu(), TestFileEditor\parseHooks(), TestFileEditor\parseTest(), ParserTestRunner\perTestSetup(), SearchHighlighter\process(), SquidPurgeClient\processHeaderLine(), SquidPurgeClient\processStatusLine(), Maintenance\readlineEmulation(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), Parser\renderImageGallery(), Parser\replaceInternalLinks2(), RedisPubSubFeedEngine\send(), UDPRCFeedEngine\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(), wfBacktrace(), wfHtmlValidationHandler(), wfIsBadImage(), and TableDiffFormatter\wrapLine().

◆ $quit

$quit = false

Definition at line 55 of file cdb.php.

◆ $showhelp

$showhelp = false

Definition at line 54 of file cdb.php.

◆ do

do
Initial value:
{
$bad = false

Definition at line 52 of file cdb.php.

◆ else

switch( $command) if ($bad) else
Initial value:
{
if ( function_exists( 'readline_add_history' ) ) {
readline_add_history( $line );
}
}
} while ( !$quit )
$line
Definition cdb.php:58
$quit
Definition cdb.php:55

Definition at line 126 of file cdb.php.