[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/ -> FileDeleteForm.php (summary)

File deletion user interface. 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.

Author: Rob Church <[email protected]>
File Size: 411 lines (12 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

FileDeleteForm:: (11 methods):
  __construct()
  execute()
  doDelete()
  showForm()
  showLogEntries()
  prepareMessage()
  setHeaders()
  isValidOldSpec()
  haveDeletableFile()
  getAction()
  getTimestamp()


Class: FileDeleteForm  - X-Ref

File deletion user interface

__construct( $file )   X-Ref
Constructor

param: File $file File object we're deleting

execute()   X-Ref
Fulfil the request; shows the form or deletes the file,
pending authentication, confirmation, etc.


doDelete( &$title, &$file, &$oldimage, $reason,$suppress, User $user = null)   X-Ref
Really delete the file

param: Title $title
param: File $file
param: string $oldimage Archive name
param: string $reason Reason of the deletion
param: bool $suppress Whether to mark all deleted versions as restricted
param: User $user User object performing the request
return: bool|Status

showForm()   X-Ref
Show the confirmation form


showLogEntries()   X-Ref
Show deletion log fragments pertaining to the current file


prepareMessage( $message )   X-Ref
Prepare a message referring to the file being deleted,
showing an appropriate message depending upon whether
it's a current file or an old version

param: string $message Message base
return: string

setHeaders()   X-Ref
Set headers, titles and other bits


isValidOldSpec( $oldimage )   X-Ref
Is the provided `oldimage` value valid?

param: string $oldimage
return: bool

haveDeletableFile( &$file, &$oldfile, $oldimage )   X-Ref
Could we delete the file specified? If an `oldimage`
value was provided, does it correspond to an
existing, local, old version of this file?

param: File $file
param: File $oldfile
param: File $oldimage
return: bool

getAction()   X-Ref
Prepare the form action

return: string

getTimestamp()   X-Ref
Extract the timestamp of the old version

return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1