MediaWiki master
MediaWiki\Page\File\FileDeleteForm Class Reference

File deletion user interface. More...

Static Public Member Functions

static doDelete (Title $title, LocalFile $file, ?string $oldimage, $reason, $suppress, UserIdentity $user, $tags=[], bool $deleteTalk=false)
 Really delete the file.
 
static isValidOldSpec ( $oldimage)
 Is the provided oldimage value valid?
 

Detailed Description

File deletion user interface.

Definition at line 41 of file FileDeleteForm.php.

Member Function Documentation

◆ doDelete()

static MediaWiki\Page\File\FileDeleteForm::doDelete ( Title  $title,
LocalFile  $file,
?string  $oldimage,
  $reason,
  $suppress,
UserIdentity  $user,
  $tags = [],
bool  $deleteTalk = false 
)
static

Really delete the file.

Parameters
Title$title
LocalFile$file
string | null$oldimageArchive name
string$reasonReason of the deletion
bool$suppressWhether to mark all deleted versions as restricted
UserIdentity$user
string[]$tagsTags to apply to the deletion action
bool$deleteTalk
Returns
Status The value can be an integer with the log ID of the deletion, or false in case of scheduled deletion.

Definition at line 56 of file FileDeleteForm.php.

References LocalFile\deleteOldFile(), and wfMessage().

◆ isValidOldSpec()

static MediaWiki\Page\File\FileDeleteForm::isValidOldSpec (   $oldimage)
static

Is the provided oldimage value valid?

Parameters
string$oldimage
Returns
bool

Definition at line 168 of file FileDeleteForm.php.


The documentation for this class was generated from the following file: