MediaWiki
REL1_19
|
Public Member Functions | |
getDescription () | |
Returns the description that goes below the <h1> tag. | |
getName () | |
Return the name of the action this object responds to. | |
onSubmit ($data) | |
Process the form on POST submission. | |
onSuccess () | |
Do something exciting on successful processing of the form. | |
requiresUnblock () | |
Whether this action can still be executed by a blocked user. | |
show () | |
purge is slightly weird because it can be either formed or formless depending on user permissions | |
Protected Member Functions | |
alterForm (HTMLForm $form) | |
Play with the HTMLForm if you need to more substantially. | |
getFormFields () | |
Just get an empty form with a single submit button. | |
postText () | |
preText () | |
Add pre- or post-text to the form. | |
Private Attributes | |
$redirectParams |
Definition at line 26 of file PurgeAction.php.
PurgeAction::alterForm | ( | HTMLForm $ | form | ) | [protected] |
Play with the HTMLForm if you need to more substantially.
$form | HTMLForm |
Reimplemented from FormAction.
Definition at line 81 of file PurgeAction.php.
References HTMLForm\setSubmitText(), and wfMsg().
Returns the description that goes below the <h1> tag.
Reimplemented from Action.
Definition at line 38 of file PurgeAction.php.
PurgeAction::getFormFields | ( | ) | [protected] |
Just get an empty form with a single submit button.
Reimplemented from FormAction.
Definition at line 46 of file PurgeAction.php.
Return the name of the action this object responds to.
Reimplemented from Action.
Definition at line 30 of file PurgeAction.php.
PurgeAction::onSubmit | ( | $ | data | ) |
Process the form on POST submission.
If you return false from getFormFields(), this will obviously never be reached. If you don't want to do anything with the form, just return false here
$data | Array |
Reimplemented from FormAction.
Definition at line 50 of file PurgeAction.php.
Referenced by show().
Do something exciting on successful processing of the form.
This might be to show a confirmation message (watch, rollback, etc) or to redirect somewhere else (edit, protect, etc).
Reimplemented from FormAction.
Definition at line 93 of file PurgeAction.php.
References Action\getOutput(), and Action\getTitle().
Referenced by show().
PurgeAction::postText | ( | ) | [protected] |
Reimplemented from FormAction.
Definition at line 89 of file PurgeAction.php.
References wfMessage().
PurgeAction::preText | ( | ) | [protected] |
Add pre- or post-text to the form.
Reimplemented from FormAction.
Definition at line 85 of file PurgeAction.php.
References wfMessage().
Whether this action can still be executed by a blocked user.
Reimplemented from Action.
Definition at line 34 of file PurgeAction.php.
purge is slightly weird because it can be either formed or formless depending on user permissions
Reimplemented from FormAction.
Definition at line 58 of file PurgeAction.php.
References Action\checkCanExecute(), FormAction\getForm(), Action\getRequest(), Action\getUser(), onSubmit(), onSuccess(), Action\setHeaders(), and wfArrayToCGI().
PurgeAction::$redirectParams [private] |
Definition at line 28 of file PurgeAction.php.