MediaWiki REL1_39
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 34 of file FileDeleteForm.php.

Member Function Documentation

◆ doDelete()

static 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.
Exceptions
MWException

Definition at line 50 of file FileDeleteForm.php.

References $file, $title, and wfMessage().

◆ isValidOldSpec()

static FileDeleteForm::isValidOldSpec ( $oldimage)
static

Is the provided oldimage value valid?

Parameters
string$oldimage
Returns
bool

Definition at line 155 of file FileDeleteForm.php.


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