MediaWiki  1.23.13
EditAction.php
Go to the documentation of this file.
1 <?php
34 class EditAction extends FormlessAction {
35 
36  public function getName() {
37  return 'edit';
38  }
39 
40  public function onView() {
41  return null;
42  }
43 
44  public function show() {
46  $user = $this->getUser();
47 
48  if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) {
49  $editor = new EditPage( $page );
50  $editor->edit();
51  }
52  }
53 }
54 
62 class SubmitAction extends EditAction {
63 
64  public function getName() {
65  return 'submit';
66  }
67 
68  public function show() {
69  if ( session_id() == '' ) {
70  // Send a cookie so anons get talk message notifications
72  }
73 
74  parent::show();
75  }
76 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
wfSetupSession
wfSetupSession( $sessionId=false)
Initialise php session.
Definition: GlobalFunctions.php:3579
FormlessAction
An action which just does something, without showing a form first.
Definition: FormlessAction.php:29
EditAction\getName
getName()
Return the name of the action this object responds to.
Definition: EditAction.php:36
$editor
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections & $editor
Definition: hooks.txt:1038
wfRunHooks
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
Definition: GlobalFunctions.php:4058
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
SubmitAction\getName
getName()
Return the name of the action this object responds to.
Definition: EditAction.php:64
SubmitAction\show
show()
The main action entry point.
Definition: EditAction.php:68
Action\getUser
getUser()
Shortcut to get the User being used for this instance.
Definition: Action.php:200
EditAction\show
show()
The main action entry point.
Definition: EditAction.php:44
$user
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
Definition: hooks.txt:237
EditAction\onView
onView()
Show something on GET request.
Definition: EditAction.php:40
Action\$page
WikiPage Article ImagePage CategoryPage Page $page
Page on which we're performing the action $page.
Definition: Action.php:42
SubmitAction
Edit submission handler.
Definition: EditAction.php:62
EditAction
Page edition handler.
Definition: EditAction.php:34