MediaWiki  1.27.1
importImages.php File Reference

Import one or more images from the local file system into the wiki without using the web-based interface. More...

Go to the source code of this file.

Functions

 showUsage ($reason=false)
 

Variables

 $comment = 'Importing file'
 
if(isset($options['comment-file']))
elseif(isset($options['comment'])) 
$commentExt = isset( $options['comment-ext'] ) ? $options['comment-ext'] : false
 
 $count = count( $files )
 
if(count($args)==0) $dir = $args[0]
 
 $extensions
 
 $files = findFiles( $dir, $extensions, isset( $options['search-recursively'] ) )
 
 $from = $options['from']
 
 $license = isset( $options['license'] ) ? $options['license'] : ''
 
 $limit = $options['limit']
 
 $optionsWithArgs
 
 $optionsWithoutArgs
 
 $processed = $added = $ignored = $skipped = $overwritten = $failed = 0
 
 $sleep = $options['sleep']
 
 $summary = isset( $options['summary'] ) ? $options['summary'] : ''
 
if($limit) $timestamp = isset( $options['timestamp'] ) ? $options['timestamp'] : false
 
 $user
 
if(isset($options['protect'])&&isset($options['unprotect']))
if(isset($options['protect'])&&$options['protect']==1)
global 
$wgFileExtensions
 
if(!$user instanceof User$wgUser = $user
 
if(isset($options['check-userblock'])) else
 

Detailed Description

Import one or more images from the local file system into the wiki without using the web-based interface.

"Smart import" additions:

  • aim: preserve the essential metadata (user, description) when importing media files from an existing wiki.
  • process:
    • interface with the source wiki, don't use bare files only (see –source-wiki-url).
    • fetch metadata from source wiki for each file to import.
    • commit the fetched metadata to the destination wiki while submitting.

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

Author
Rob Church robch.nosp@m.ur@g.nosp@m.mail..nosp@m.com
Mij mij@b.nosp@m.itch.nosp@m.x.it

Definition in file importImages.php.

Function Documentation

showUsage (   $reason = false)

Variable Documentation

$comment = 'Importing file'

Definition at line 122 of file importImages.php.

Referenced by BackupDumperLoggerTest\addLogEntry(), LogFormatterTest\assertIRCComment(), BackupDumperLoggerTest\assertLogItem(), Orphans\checkOrphans(), DummyLinker\commentBlock(), Skin\commentBlock(), Linker\commentBlock(), ApiFeedWatchlist\createFeedItem(), ApiTestCaseUpload\deleteFileByTitle(), UserCache\doQuery(), GenderCache\doQuery(), Article\doQuickEditContent(), WikiPage\doQuickEditContent(), ApiImageRotate\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), Linker\formatAutocomments(), DummyLinker\formatComment(), Linker\formatComment(), FeedUtils\formatDiffRow(), SpecialUndelete\formatFileRow(), DummyLinker\formatLinksInComment(), Linker\formatLinksInComment(), DeletedContribsPager\formatRevisionRow(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialNewpages\formatRow(), ContribsPager\formatRow(), LogFormatter\getComment(), UploadBase\getFilenamePrefixBlacklist(), ChangeTagsRevisionItem\getHTML(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelRevisionItem\getHTML(), RevisionItem\getHTML(), ApiQueryImageInfo\getInfo(), SpecialUpload\getInitialPageText(), LogFormatter\getIRCActionComment(), IRCColourfulRCFeedFormatter\getLine(), GIFMetadataExtractor\getMetadata(), MediaWikiTestCase\insertPage(), LogEventsList\logLine(), MovePage\move(), MovePage\moveToInternal(), RecentChange\newForCategorization(), CategoryMembershipChange\notifyCategorization(), RecentChange\notifyEdit(), RecentChange\notifyNew(), RevertAction\onSubmit(), UploadBase\performUpload(), OldLocalFile\recordOldUpload(), LocalFile\recordUpload2(), ImportReporter\reportPage(), RevDelList\setVisibility(), EditPage\showEditForm(), SpecialRevisionDelete\submit(), LinkerTest\testFormatComment(), LanguageTest\testGetParentLanguage(), LanguageTest\testIsSupportedLanguage(), LogFormatterTest\testLogComment(), PageArchive\undelete(), PageArchive\undeleteRevisions(), LocalFile\upload(), OldLocalFile\uploadOld(), and XmlDumpWriter\writeUpload().

if (isset($options['comment-file'])) elseif (isset($options['comment'])) $commentExt = isset( $options['comment-ext'] ) ? $options['comment-ext'] : false

Definition at line 133 of file importImages.php.

$count = count( $files )

Definition at line 141 of file importImages.php.

Referenced by RedisLockManager\__destruct(), Benchmarker\bench(), ImageBuilder\buildTable(), SectionProfiler\calltreeCount(), CheckStorage\check(), UserDupes\checkDupes(), NamespaceConflictChecker\checkNamespace(), DumpMultiWriter\closeAndRename(), LanguageKsh\convertPlural(), Language\convertPlural(), SpecialWatchlist\countItems(), Sanitizer\decodeCharReferencesAndNormalize(), CategoryViewer\doCategoryQuery(), PopulateParentId\doDBUpdates(), FixExtLinksProtocolRelative\doDBUpdates(), DeleteOldRevisions\doDelete(), JobQueueDB\doGetAbandonedCount(), JobQueueDB\doGetAcquiredCount(), SpecialRecentChanges\doHeader(), PopulateRevisionLength\doLenUpdates(), PopulateRevisionSha1\doSha1LegacyUpdates(), PopulateRevisionSha1\doSha1Updates(), MovePageForm\doSubmit(), MysqlUpdater\doTemplatelinksUpdate(), MultiWriteBagOStuff\doWrite(), RemoveInvalidEmails\execute(), StorageTypeStats\execute(), ApiQueryMyStashedFiles\execute(), CheckBadRedirects\execute(), ApiQueryBlocks\execute(), ApiQueryExternalLinks\execute(), ApiQueryTags\execute(), ApiQueryLangLinks\execute(), ApiQueryDeletedrevs\execute(), ApiQueryIWLinks\execute(), ApiQueryFilearchive\execute(), MakeTestEdits\execute(), MigrateUserGroup\execute(), NukePage\execute(), RemoveUnusedAccounts\execute(), ApiFeedContributions\execute(), DeleteOrphanedRevisions\execute(), DeleteArchivedFiles\execute(), ApiQueryLogEvents\execute(), ApiQueryPagePropNames\execute(), ApiQueryContributions\execute(), DeleteArchivedRevisions\execute(), RefreshFileHeaders\execute(), RenameDbPrefix\execute(), CleanupSpam\execute(), ApiQueryImageInfo\execute(), ApiQueryContributors\execute(), ApiQueryAllUsers\execute(), ImportTextFiles\execute(), NukeNS\execute(), ShowJobs\execute(), CopyFileBackend\execute(), UpdateCollation\execute(), PPFrame_DOM\expand(), TextPassDumper\finalOptionCheck(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), CategoryPager\formatRow(), ActiveUsersPager\formatRow(), UsersPager\formatRow(), CreditsAction\getContributors(), InfoAction\getContributors(), JobQueueFederated\getCrossPartitionSum(), DjVuHandler\getDimensionInfo(), User\getEditCount(), DumpMultiWriter\getFilenames(), ApiHelp\getHelpInternal(), ApiBase\getModuleFromPath(), SpecialEditWatchlist\getNormalForm(), BacklinkCache\getNumLinks(), WantedPagesPage\getQueryInfo(), RandomImageGenerator\getRandomWordPairs(), MergeHistory\getRevisionCount(), UIDGenerator\getSequentialPerNodeIDs(), Language\handleExplicitPluralForms(), SearchHighlighter\highlightText(), ImagePage\imageLinks(), MediaWiki\Auth\Throttler\increase(), DatabaseOracle\indexExists(), ImageBuilder\init(), User\initEditCount(), RemoveUnusedAccounts\isInactiveAccount(), Title\moveSubpages(), moveToExternal(), UIDGenerator\newSequentialPerNodeIDs(), ChangesList\numberofWatchingusers(), ImagePage\openShowImage(), MediaStatisticsPage\outputTableRow(), CheckLanguageCLI\outputText(), PurgeChangedPages\pageableSortedRows(), CoreParserFunctions\pagesincategory(), FormatJson\parse(), PPFuzzTester\pickEntryPoint(), User\pingLimiter(), RebuildTextIndex\populateSearchIndex(), Language\preConvertPlural(), Preprocessor_Hash\preprocessToObj(), ImageBuilder\progress(), Maintenance\purgeRedundantText(), ApiQueryContinueTestBase\query(), AllMessagesTablePager\reallyDoQuery(), EnhancedChangesList\recentChangesBlockGroup(), JobQueueDB\recycleAndDeleteStaleJobs(), DbTestPreviewer\report(), ChangeTags\restrictedTagError(), ApiQueryDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryPrefixSearch\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryProtectedTitles\run(), ApiQueryImages\run(), ApiQueryIWBacklinks\run(), ApiQueryLangBacklinks\run(), ApiQueryWatchlistRaw\run(), ApiQueryExtLinksUsage\run(), ApiQueryDuplicateFiles\run(), ApiQueryCategories\run(), ApiQueryAllCategories\run(), ApiQueryPagesWithProp\run(), ApiQueryWatchlist\run(), ApiQueryQueryPage\run(), ApiQuerySearch\run(), ApiQueryCategoryMembers\run(), ApiQueryAllPages\run(), ApiQueryLinks\run(), ApiQueryAllImages\run(), ApiQueryRevisions\run(), ApiQueryBacklinksprop\run(), ApiQueryAllLinks\run(), ApiQueryRecentChanges\run(), ApiQueryBacklinks\runFirstQuery(), ApiQueryRandom\runQuery(), ApiQueryBacklinks\runSecondQuery(), Maintenance\shouldExecute(), UserrightsPage\showEditUserGroupsForm(), MovePageForm\showSubpages(), SpecialUpload\showViewDeletedLinks(), SearchHighlighter\splitAndAdd(), SevenZipStream\stream_read(), UploadSourceAdapter\stream_read(), ApiEditPageTest\testEdit_redirect(), ApiEditPageTest\testEdit_redirectText(), ApiEditPageTest\testEditAppend(), ApiEditPageTest\testEditConflict(), ApiEditPageTest\testEditConflict_bug41990(), ApiEditPageTest\testEditConflict_newSection(), ServiceContainerTest\testGetService(), SpecialPageFactoryTest\testHookNotCalledTwice(), SiteTest\testSetAndRemovePath(), GenericArrayObjectTest\testUnset(), BagOStuff\trackDuplicateKeys(), PopulateContentModel\updatePageRows(), PopulateContentModel\updateRevisionOrArchiveRows(), UserOptions\USAGER(), Exif\validate(), DumpMultiWriter\writeClosePage(), DumpMultiWriter\writeCloseStream(), DumpMultiWriter\writeOpenPage(), DumpMultiWriter\writeOpenStream(), and DumpMultiWriter\writeRevision().

if (count($args)==0) $dir = $args[0]

Definition at line 56 of file importImages.php.

Referenced by IndexPager\__construct(), FSFileBackendList\__construct(), FileBackendStoreShardListIterator\__construct(), CheckSyntax\addDirectoryContent(), OutputPage\addStyle(), ApiQueryBase\addTimestampWhereRange(), ApiQueryBase\addWhereRange(), FileCacheBase\cachePath(), JobQueueDB\claimRandom(), FileRepo\cleanDir(), SqliteInstaller\dataDirOKmaybeCreate(), UploadFromUrlTestSuite\deleteDirs(), ParserTest\deleteDirs(), FileBackendStore\directoryExists(), CliInstaller\dirIsExecutable(), Installer\dirIsExecutable(), FileBackendStore\doClean(), FSFileBackend\doCleanInternal(), SwiftFileBackend\doCleanInternal(), FSFileBackend\doDirectoryExists(), SwiftFileBackend\doDirectoryExists(), TestFileOpPerformance\doPerfTest(), FileBackendStore\doPrepare(), FSFileBackend\doPrepareInternal(), FileBackendStore\doPublish(), FSFileBackend\doPublishInternal(), FileBackendStore\doSecure(), FSFileBackend\doSecureInternal(), FileBackendTest\doTestRecursiveClean(), Language\embedBidi(), Installer\envCheckUploadsDirectory(), SpecialExport\execute(), ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), PruneFileCache\execute(), UploadStashCleanup\execute(), ApiQueryAllUsers\execute(), FindHooks\execute(), Exif\exifGPStoNumber(), ExtensionProcessor\extractExtensionMessagesFiles(), ExtensionProcessor\extractInfo(), ExtensionProcessor\extractResourceLoaderModules(), findFiles(), LocalSettingsGenerator\generateExtEnableLine(), FileBackendStore\getDirectoryList(), MemoryFileBackend\getDirectoryListInternal(), FSFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirListPageInternal(), FileBackendStore\getFileList(), FSFileBackend\getFileListInternal(), SwiftFileBackend\getFileListInternal(), SwiftFileBackend\getFileListPageInternal(), SpecialVersion\getGitCurrentBranch(), SpecialVersion\getGitHeadSha1(), FindHooks\getHooksFromDir(), SqliteInstaller\getLocalSettings(), SpecialRandomInCategory\getQueryInfo(), RandomImageGenerator\getRandomFilenames(), FSFileBackendList\getRelPath(), ResourceLoaderTestCase\getResourceLoaderContext(), ForeignAPIFile\getThumbnails(), LocalFile\getThumbnails(), NewParserTest\getUploadDir(), FileRepo\initDirectory(), FSFileBackendList\initIterator(), SqliteInstaller\makeStubDBFile(), SqliteInstaller\needsUpgrade(), SqliteInstaller\openConnection(), ImageCleanup\pokeFile(), ExtensionRegistry\processAutoLoader(), PruneFileCache\prune_directory(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), LocalFile\purgeThumbnails(), FileRepo\quickCleanDir(), AutoloadGenerator\readDir(), LocalisationCache\recache(), ApiQueryDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryAllCategories\run(), ApiQueryPagesWithProp\run(), ApiQueryCategoryMembers\run(), ApiQueryAllPages\run(), WikiImporter\setImageBasePath(), SqliteInstaller\setupDatabase(), OutputPage\setupOOUI(), UploadFromUrlTestSuite\setupUploadDir(), ParserTest\setupUploadDir(), Article\showCssOrJsPage(), LogEventsList\showLogExtract(), Article\showMissingArticle(), SqliteInstaller\submitConnectForm(), GitInfoTest\testMissingJsonData(), and RandomImageGenerator\writeImages().

Initial value:
= isset( $options['extensions'] )
? explode( ',', strtolower( $options['extensions'] ) )
if(isset($options['protect'])&&isset($options['unprotect'])) if(isset($options['protect'])&&$options['protect']==1) global $wgFileExtensions
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
Definition: hooks.txt:1004

Definition at line 69 of file importImages.php.

Referenced by ResourceLoaderImage\__construct(), MimeMagic\__construct(), ApiQuerySiteinfo\appendExtensions(), UploadBase\checkWarnings(), WebInstallerOptions\execute(), SpecialVersion\execute(), SpecialVersion\getExtensionCredits(), UploadStash\getExtensionForPath(), MediaHandler\getThumbType(), SpecialUpload\processVerificationError(), and wfEntryPointCheck().

$files = findFiles( $dir, $extensions, isset( $options['search-recursively'] ) )

Definition at line 74 of file importImages.php.

Referenced by MediaWikiTestCase\addTmpFiles(), CheckSyntax\buildFileList(), AutoLoaderTest\checkAutoLoadConf(), ApiStashEdit\checkCache(), TextPassDumperDatabaseTest\checkpointHelper(), Sqlite\checkSqlSyntax(), SqliteMaintenance\checkSyntax(), LocalFileMoveBatch\cleanupSource(), ResourceLoaderFileModule\compileLessFile(), UploadFromUrlTestSuite\deleteFiles(), NewParserTest\deleteFiles(), ParserTest\deleteFiles(), FileBackendTest\doTestDoQuickOperations(), FileBackendTest\doTestGetDirectoryList(), FileBackendTest\doTestGetFileList(), JSParseHelper\execute(), PatchSql\execute(), ImportTextFiles\execute(), FindDeprecated\execute(), ExtensionProcessor\extractMessagesDirs(), RepoGroup\findBySha1s(), FileRepo\findBySha1s(), findFiles(), LocalRepo\findFilesByPrefix(), ResourceLoaderFileModule\getFileHashes(), SwiftFileBackend\getFileListPageInternal(), FindDeprecated\getFiles(), MWDebug\getFilesIncluded(), CSSMin\getLocalFileReferences(), ResourceLoaderImageModule\getModifiedTime(), ResourceLoaderFileModule\getScript(), ResourceLoaderFileModule\getScriptFiles(), ForeignAPIFile\getThumbnails(), LocalFile\getThumbnails(), MWCryptRand\initialRandomState(), ResourcesTest\provideMediaStylesheets(), ResourcesTest\provideResourceFiles(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), LocalFile\purgeThumbnails(), MergeMessageFileList\readFile(), ResourceLoaderFileModule\readStyleFiles(), LocalFileDeleteBatch\removeNonexistentFiles(), LocalFileRestoreBatch\removeNonexistentFiles(), LocalFileMoveBatch\removeNonexistentFiles(), LocalFileRestoreBatch\removeNonexistentFromCleanup(), ApiQueryDuplicateFiles\run(), ResourceLoaderModule\setFileDependencies(), SpecialUndelete\showHistory(), SpecialUploadStash\showUploads(), ResourcesTest\testCommentedLocalFileReferences(), NewParserTest\testFuzzTests(), and FileContentsHasherTest\testMultipleFileHash().

$from = $options['from']

Definition at line 98 of file importImages.php.

Referenced by DoubleReplacer\__construct(), CategoryPager\__construct(), MediaWiki\Session\SessionInfo\__construct(), LanguageConverter\applyManualConv(), MediaWiki\Auth\AuthManager\autoCreateUser(), CategoryPage\closeShowCategory(), WikiPage\commitRollback(), ReassignEdits\doReassignEdits(), SiteConfiguration\doReplace(), ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), CleanupBlocks\execute(), ReassignEdits\execute(), ApiQueryAllUsers\execute(), SpecialPrefixindex\execute(), SpecialAllPages\execute(), SpecialCategories\execute(), ConvertLinks\execute(), SpecialWatchlist\fetchOptionsFromRequest(), WikiFilePage\followRedirect(), BrokenRedirectsPage\formatResult(), ApiFeedWatchlist\getAllowedParams(), FormatJsonTest\getEncodeTestCases(), WikiFilePage\getRedirectTarget(), ApiPageSet\getRedirectTargets(), ConverterRule\getRulesDesc(), CategoryPager\getStartForm(), WikiPage\loadFromRow(), Article\loadFromRow(), WikiPage\loadPageData(), Article\loadPageData(), SpecialPrefixindex\namespacePrefixForm(), WikiPage\newFromID(), WikiPage\newFromRow(), SpecialAllPages\outputHTMLForm(), ConverterRule\parseRules(), UserDupes\reassignEdits(), File\redirectedFrom(), ReplacementArray\removeArray(), ReplacementArray\removePair(), ApiQueryLangBacklinks\run(), ApiQueryIWBacklinks\run(), ApiQueryAllCategories\run(), ApiQueryPagesWithProp\run(), ApiQueryCategoryMembers\run(), ApiQueryAllPages\run(), ApiQueryAllImages\run(), ApiQueryAllLinks\run(), User\saveSettings(), ApiOpenSearch\search(), DatabaseBase\selectSQLText(), UserMailer\send(), User\sendMail(), ReplacementArray\setPair(), Article\setRedirectedFrom(), SpecialAllPages\showChunk(), SpecialWhatLinksHere\showIndirectLinks(), SpecialPrefixindex\showPrefixChunk(), SpecialAllPages\showToplevel(), SpecialEmailUser\submit(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest\testAccountCreationEmail(), FormatJsonTest\testEncodeAllOk(), FormatJsonTest\testEncodeDefault(), FormatJsonTest\testEncodeUtf8(), FormatJsonTest\testEncodeXmlMeta(), and MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest\testProviderChangeAuthenticationDataEmail().

$license = isset( $options['license'] ) ? $options['license'] : ''

Definition at line 138 of file importImages.php.

Referenced by SpecialUpload\getInitialPageText(), and LocalFile\recordUpload().

$limit = $options['limit']

Definition at line 112 of file importImages.php.

$optionsWithArgs
Initial value:
= [
'extensions', 'comment', 'comment-file', 'comment-ext', 'summary', 'user',
'license', 'sleep', 'limit', 'from', 'source-wiki-url', 'timestamp',
]

Definition at line 35 of file importImages.php.

$optionsWithoutArgs
Initial value:
= [
'protect', 'unprotect', 'search-recursively', 'check-userblock', 'overwrite',
'skip-dupes', 'dry'
]

Definition at line 40 of file importImages.php.

$processed = $added = $ignored = $skipped = $overwritten = $failed = 0
$sleep = $options['sleep']

Definition at line 103 of file importImages.php.

Referenced by BagOStuff\lock().

if ($limit) $timestamp = isset( $options['timestamp'] ) ? $options['timestamp'] : false

Definition at line 119 of file importImages.php.

Referenced by MergeHistory\__construct(), ParserOutput\addImage(), ImageBuilder\addMissingImage(), LocalFileMoveBatch\addOlds(), ProtectionForm\buildForm(), ApiStashEdit\buildStashValue(), FileCacheBase\cacheTimestamp(), AjaxResponse\checkLastModified(), OutputPage\checkLastModified(), RevisionDeleter\checkRevisionExistence(), SwiftFileBackend\convertSwiftDate(), ApiFeedWatchlist\createFeedItem(), Xml\dateMenu(), SqlBagOStuff\deleteObjectsExpiringBefore(), ApiTestCase\doApiRequestWithToken(), Block\doAutoblock(), JobQueueRedis\doDeduplicateRootJob(), JobQueue\doDeduplicateRootJob(), JobQueueDB\doDeduplicateRootJob(), SpecialWatchlist\doHeader(), JobQueueRedis\doIsRootJobOldDuplicate(), JobQueue\doIsRootJobOldDuplicate(), RevDelFileList\doPostCommitUpdates(), RevDelFileList\doQuery(), ApiMergeHistory\execute(), ApiSetNotificationTimestamp\execute(), FixUserRegistration\execute(), FixTimestamps\execute(), ApiQueryAllUsers\execute(), ImportTextFiles\execute(), LocalFileRestoreBatch\execute(), EditPageTest\forceRevisionDate(), ApiEditPageTest\forceRevisionDate(), FeedUtils\formatDiff(), FeedUtils\formatDiffRow(), AtomFeed\formatTime(), BlockListPager\formatValue(), CreditsAction\getAuthor(), Block\getAutoblockExpiry(), EnhancedChangesListTest\getCategorizationChange(), NewUsersLogFormatter\getComment(), ReverseChronologicalPager\getDateCond(), TestRecentChangesHelper\getDefaultAttributes(), EnhancedChangesListTest\getEditChange(), RevertAction\getFormFields(), User\getNewMessageLinks(), PageArchive\getPreviousRevision(), ActiveUsersPager\getQueryInfo(), BenchmarkParse\getRevIdForTime(), PageArchive\getRevision(), DifferenceEngine\getRevisionHeader(), Parser\getRevisionTimestamp(), ImageHistoryList\getThumbForLine(), FSFile\getTimestamp(), Revision\getTimestampFromId(), Preferences\getTimezoneOptions(), ImageHistoryList\imageHistoryLine(), EditPage\internalAttemptSave(), FileCacheBase\isCacheGood(), Block\isExpired(), RecentChange\isInRCLifespan(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\isTimestampValid(), Skin\lastModified(), JobRunner\loadBackoffs(), Revision\loadFromTimestamp(), BagOStuff\lock(), MediaWiki\main(), TestRecentChangesHelper\makeCategorizationRecentChange(), MediaWiki\Logger\Monolog\SyslogHandler\makeCommonSyslogHeader(), TestRecentChangesHelper\makeDeletedEditRecentChange(), TestRecentChangesHelper\makeEditRecentChange(), TestRecentChangesHelper\makeLogRecentChange(), TestRecentChangesHelper\makeNewBotEditRecentChange(), WANObjectCache\makePurgeValue(), MediaWiki\Session\Token\match(), ApiMergeHistory\merge(), RecentChange\newForCategorization(), RecentChange\newLogEntry(), RecentChange\notifyEdit(), RecentChange\notifyLog(), RecentChange\notifyNew(), SpecialLockdb\onSubmit(), RevertAction\onSuccess(), SpecialRecentChanges\optionsPanel(), IPTC\parse(), Parser\pstPass2(), ZipDirectoryReader\readCentralDirectory(), DeleteLinksJob\run(), ApiQueryRecentChanges\run(), User\setEmailAuthenticationTimestamp(), OutputPage\setLastModified(), Article\setOldSubtitle(), OutputPage\setRevisionTimestamp(), ParserOutput\setTimestamp(), MessageBlobStoreTest\setUp(), SpecialSearch\showHit(), SpecialUndelete\showRevision(), ApiStashEdit\stashEditFromPreview(), JobRunner\syncBackoffDeltas(), WatchedItemUnitTest\testAddWatch(), MWTimestampTest\testConstructWithNoTimestamp(), WatchedItemUnitTest\testFromUserTitle(), MWTimestampTest\testInvalidOutput(), RecentChangeTest\testIsInRCLifespan(), MergeHistoryTest\testIsValidMerge(), WatchedItemUnitTest\testIsWatched(), WfTimestampTest\testOldTimestamps(), MWTimestampTest\testOutOfRangeTimestamps(), WatchedItemUnitTest\testRemoveWatch(), WatchedItemUnitTest\testResetNotificationTimestamp(), MWTimestampTest\testToString(), MWTimestampTest\testValidOutput(), MWTimestampTest\testValidParse(), MediaWiki\Session\Token\toStringAtTimestamp(), File\transform(), LinksUpdate\updateLinksTimestamp(), WatchedItemStore\updateNotificationTimestamp(), User\validateCache(), Article\view(), and XmlDumpWriter\writeTimestamp().

$user
Initial value:
= isset( $options['user'] )
: User::newSystemUser( 'Maintenance script', [ 'steal' => true ] )
static newFromName($name, $validate= 'valid')
Static factory method for creation from username.
Definition: User.php:568
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition: hooks.txt:1798
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
Definition: hooks.txt:1004

Definition at line 77 of file importImages.php.

if (isset($options['protect'])&&isset($options['unprotect'])) if (isset($options['protect'])&&$options['protect']==1) global $wgFileExtensions

Definition at line 63 of file importImages.php.

Referenced by showUsage().

if (!$user instanceof User) $wgUser = $user

Definition at line 83 of file importImages.php.

if ($count > 0) else
Initial value:
{
$checkUserBlock = false

Definition at line 92 of file importImages.php.