MediaWiki REL1_34
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 print.

Variable Documentation

◆ $args

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

Definition at line 64 of file cdb.php.

Referenced by ParserDiffTest\__call(), StubObject\__call(), MemcachedClient\__construct(), DumpBackup\__construct(), BackupDumper\__construct(), TextPassDumper\__construct(), MediaTransformError\__construct(), PPTemplateFrame_DOM\__toString(), PPTemplateFrame_Hash\__toString(), StubObject\_call(), LogPage\actionText(), HTMLForm\addButton(), CachedAction\addCachedHTML(), SpecialCachedPage\addCachedHTML(), OutputPage\addWikiMsg(), OutputPage\addWikiMsgArray(), ArrayUtils\arrayDiffAssocRecursive(), Parser\braceSubstitution(), MemoizedCallable\call(), Xhprof\callAny(), Hooks\callHook(), MediaWiki\Auth\AuthManager\callMethodOnProviders(), Parser\callParserFunction(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), WikiPage\commitRollback(), Parser\createAssocArgs(), Wikimedia\Rdbms\Database\deadlockLoop(), Wikimedia\Rdbms\DatabaseSqlite\deadlockLoop(), RecompressTracked\dispatch(), RecompressTracked\dispatchToChild(), RecompressTracked\doAllOrphans(), DeleteOldRevisions\doDelete(), MultiWriteBagOStuff\doWrite(), Xhprof\enable(), Xml\encodeJsCall(), MediaWiki\Shell\Shell\escape(), SpecialEditWatchlist\execute(), ApiQueryAllMessages\execute(), CommandLineInc\execute(), FindHooks\execute(), RecompressTracked\executeChild(), Wikimedia\Rdbms\LBFactory\forEachLBCallMethod(), Http\get(), CachedAction\getCachedValue(), CacheHelper\getCachedValue(), SpecialCachedPage\getCachedValue(), WebInstaller\getHelpBox(), FindHooks\getHooksFromFile(), FindHooks\getHooksFromLocalDoc(), FileRepo\getLocalCacheKey(), ForeignDBRepo\getSharedCacheKey(), ForeignDBViaLBRepo\getSharedCacheKey(), LocalRepo\getSharedCacheKey(), PPFrame_DOM\implode(), PPFrame_Hash\implode(), PPFrame_DOM\implodeWithFlags(), PPFrame_Hash\implodeWithFlags(), Wikimedia\Rdbms\DatabasePostgres\insert(), MemoizedCallable\invokeArgs(), XmlDumpWriter\invokeLenient(), Maintenance\loadParamsAndArgs(), Maintenance\loadWithArgv(), CachedBagOStuff\makeKeyInternal(), MediumSpecificBagOStuff\makeKeyInternal(), MemcachedBagOStuff\makeKeyInternal(), MultiWriteBagOStuff\makeKeyInternal(), WinCacheBagOStuff\makeKeyInternal(), PPFrame_DOM\newChild(), PPFrame_Hash\newChild(), Preprocessor_DOM\newCustomFrame(), Preprocessor_Hash\newCustomFrame(), RecompressTracked\newFromCommandLine(), FileBackend\newStatus(), MediaWiki\Site\MediaWikiPageNameNormalizer\normalizePageName(), ComposerPhpunitXmlCoverageEdit\onEvent(), Message\params(), MediaWiki\Shell\Command\params(), MediaWiki\Shell\FirejailCommand\params(), SpecialUpload\processVerificationError(), JobQueueRedis\pushBlobs(), Wikimedia\ParamValidator\Util\UploadedFileStream\quietCall(), Sanitizer\removeHTMLtags(), ImportReporter\reportLogItem(), Hooks\run(), MysqlMaintenance\runMysql(), Hooks\runWithoutAbort(), MWHttpRequest\setData(), LogEventsList\showLogExtract(), SpecialUpload\showUploadWarning(), LocalRepo\skipWriteOperationIfSha1(), CoreParserFunctions\tagObj(), MediaWiki\Shell\Command\unsafeParams(), PPFrame_DOM\virtualBracketedImplode(), PPFrame_Hash\virtualBracketedImplode(), PPFrame_DOM\virtualImplode(), PPFrame_Hash\virtualImplode(), wfEscapeShellArg(), wfForeignMemcKey(), wfGlobalCacheKey(), wfMemcKey(), wfMergeErrorArrays(), wfMsgReplaceArgs(), OutputPage\wrapWikiMsg(), 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(), TableDiffFormatter\added(), TableDiffFormatter\addedLine(), Skin\addToSidebarPlain(), DatabaseUpdater\appendLine(), SpecialRevisionDelete\buildCheckBoxes(), Licenses\buildLine(), OrderedStreamingForkController\consume(), TableDiffFormatter\context(), TableDiffFormatter\contextLine(), DjVuImage\convertDumpToXML(), TableDiffFormatter\deleted(), TableDiffFormatter\deletedLine(), Wikimedia\StaticArrayWriter\encode(), Installer\envCheckShellLocale(), MediaWiki\Rest\EntryPoint\execute(), MediaWiki\Shell\Command\execute(), CreateCommonPasswordCdb\execute(), DeleteBatch\execute(), FetchText\execute(), GenerateNormalizerDataAr\execute(), MoveBatch\execute(), MwSql\execute(), RecompressTracked\executeChild(), ArrayDiffFormatter\format(), GenerateCollationData\generateFirstChars(), ApiCSPReport\generateLogLine(), UploadBase\getFilenamePrefixBlacklist(), MWDebug\getHTMLDebugLog(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), FormatMetadata\getVisibleFields(), Parser\handleAllQuotes(), MWExceptionHandler\handleError(), MWExceptionHandler\handleFatalError(), Parser\handleInternalLinks2(), Parser\handleTables(), SearchHighlighter\highlightSimple(), SearchHighlighter\highlightText(), MediaWiki\BadFileLookup\isBadFile(), MediaWiki\Block\DatabaseBlock\isWhitelistedFromAutoblocks(), DiffFormatter\lines(), UnifiedDiffFormatter\lines(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\loadCustomCaptions(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget\loadCustomCaptions(), Licenses\makeLines(), FormattedRCFeed\notify(), QueryPage\outputResults(), ForeignResourceManager\parseBasicYaml(), DjVuImage\parseFormDjvu(), SearchHighlighter\process(), SquidPurgeClient\processHeaderLine(), SquidPurgeClient\processStatusLine(), Maintenance\readlineEmulation(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), Parser\renderImageGallery(), RedisPubSubFeedEngine\send(), UDPRCFeedEngine\send(), SpecialFileDuplicateSearch\showList(), Wikimedia\Rdbms\Database\sourceStream(), WordLevelDiff\split(), SearchHighlighter\splitAndAdd(), MwSql\sqlDoQuery(), OrderedStreamingForkController\updateAvailableSockets(), wfBacktrace(), 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 )
$line
Definition cdb.php:59
$quit
Definition cdb.php:56

Definition at line 127 of file cdb.php.