MediaWiki
master
FormlessAction.php
Go to the documentation of this file.
1
<?php
30
abstract
class
FormlessAction
extends
Action
{
31
37
abstract
public
function
onView
();
38
42
public
function
show
() {
43
$this->
setHeaders
();
44
45
// This will throw exceptions if there's a problem
46
$this->
checkCanExecute
( $this->
getUser
() );
47
48
$this->
getOutput
()->addHTML( $this->
onView
() );
49
}
50
}
FormlessAction\onView
onView()
Show something on GET request.
Action\setHeaders
setHeaders()
Set output headers for noindexing etc.
Definition:
Action.php:472
FormlessAction
An action which just does something, without showing a form first.
Definition:
FormlessAction.php:30
FormlessAction\show
show()
Stable to override.
Definition:
FormlessAction.php:42
Action
Actions are things which can be done to pages (edit, delete, rollback, etc).
Definition:
Action.php:43
Action\checkCanExecute
checkCanExecute(User $user)
Checks if the given user (identified by an object) can perform this action.
Definition:
Action.php:411
Action\getUser
getUser()
Shortcut to get the User being used for this instance.
Definition:
Action.php:249
Action\getOutput
getOutput()
Get the OutputPage being used for this instance.
Definition:
Action.php:239
includes
actions
FormlessAction.php
Generated on Mon Jan 25 2021 07:07:36 for MediaWiki by
1.8.19