MediaWiki
1.34.0
FormlessAction.php
Go to the documentation of this file.
1
<?php
28
abstract
class
FormlessAction
extends
Action
{
29
35
abstract
public
function
onView
();
36
37
public
function
show
() {
38
$this->
setHeaders
();
39
40
// This will throw exceptions if there's a problem
41
$this->
checkCanExecute
( $this->
getUser
() );
42
43
$this->
getOutput
()->addHTML( $this->
onView
() );
44
}
45
}
FormlessAction\onView
onView()
Show something on GET request.
Action\setHeaders
setHeaders()
Set output headers for noindexing etc.
Definition:
Action.php:360
FormlessAction
An action which just does something, without showing a form first.
Definition:
FormlessAction.php:28
FormlessAction\show
show()
The main action entry point.
Definition:
FormlessAction.php:37
Action
Actions are things which can be done to pages (edit, delete, rollback, etc).
Definition:
Action.php:39
Action\checkCanExecute
checkCanExecute(User $user)
Checks if the given user (identified by an object) can perform this action.
Definition:
Action.php:308
Action\getUser
getUser()
Shortcut to get the User being used for this instance.
Definition:
Action.php:218
Action\getOutput
getOutput()
Get the OutputPage being used for this instance.
Definition:
Action.php:208
includes
actions
FormlessAction.php
Generated on Thu Dec 19 2019 14:54:00 for MediaWiki by
1.8.16