37 private $redirectParams;
51 $status = PermissionStatus::newEmpty();
52 if ( !$authority->authorizeAction(
'purge', $status ) ) {
53 return Status::wrap( $status );
56 return $page->doPurge();
68 [
'title' =>
null,
'action' =>
null ]
72 if ( $result ===
true ) {
74 } elseif ( $result instanceof
Status ) {
75 if ( $result->isOK() ) {
78 $this->
getOutput()->addHTML( $result->getHTML() );
82 $this->redirectParams = $this->
getRequest()->getVal(
'redirectparams',
'' );
84 if ( $form->show() ) {
99 'default' => $this->
msg(
'confirm-purge-top' )->parse()
110 return $this->
msg(
'confirm-purge-bottom' )->parse();
114 $this->
getOutput()->redirect( $this->
getTitle()->getFullURL( $this->redirectParams ) );
123class_alias( PurgeAction::class,
'PurgeAction' );
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes one or two arrays as input, and returns a CGI-style string, e....