MediaWiki
master
FormlessAction.php
Go to the documentation of this file.
1
<?php
10
namespace
MediaWiki\Actions
;
11
19
abstract
class
FormlessAction
extends
Action
{
20
26
abstract
public
function
onView
();
27
31
public
function
show
() {
32
$this->
setHeaders
();
33
34
// This will throw exceptions if there's a problem
35
$this->
checkCanExecute
( $this->
getUser
() );
36
37
$this->
getOutput
()->addHTML( $this->
onView
() );
38
}
39
}
40
42
class_alias( FormlessAction::class,
'FormlessAction'
);
MediaWiki\Actions\Action
Actions are things which can be done to pages (edit, delete, rollback, etc).
Definition
Action.php:53
MediaWiki\Actions\Action\setHeaders
setHeaders()
Set output headers for noindexing etc.
Definition
Action.php:407
MediaWiki\Actions\Action\getUser
getUser()
Shortcut to get the User being used for this instance.
Definition
Action.php:153
MediaWiki\Actions\Action\checkCanExecute
checkCanExecute(User $user)
Checks if the given user (identified by an object) can perform this action.
Definition
Action.php:327
MediaWiki\Actions\Action\getOutput
getOutput()
Get the OutputPage being used for this instance.
Definition
Action.php:143
MediaWiki\Actions\FormlessAction
An action which just does something, without showing a form first.
Definition
FormlessAction.php:19
MediaWiki\Actions\FormlessAction\onView
onView()
Show something on GET request.
MediaWiki\Actions\FormlessAction\show
show()
Definition
FormlessAction.php:31
MediaWiki\Actions
Definition
Action.php:9
includes
Actions
FormlessAction.php
Generated on Wed Jan 14 2026 00:23:15 for MediaWiki by
1.10.0