24 private $redirectParams;
41 $status = PermissionStatus::newEmpty();
42 if ( !$authority->authorizeAction(
'purge', $status ) ) {
43 return Status::wrap( $status );
46 return $page->doPurge();
59 [
'title' =>
null,
'action' =>
null ]
63 if ( $result ===
true ) {
65 } elseif ( $result instanceof
Status ) {
66 if ( $result->isOK() ) {
69 $this->
getOutput()->addHTML( $result->getHTML() );
73 $this->redirectParams = $this->
getRequest()->getVal(
'redirectparams',
'' );
75 if ( $form->show() ) {
92 'default' => $this->
msg(
'confirm-purge-top' )->parse()
104 return $this->
msg(
'confirm-purge-bottom' )->parse();
108 $this->
getOutput()->redirect( $this->
getTitle()->getFullURL( $this->redirectParams ) );
118class_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....