97 $form = HTMLForm::factory(
'ooui', $this->fields, $this->
getContext(), $this->
getName() );
101 $form->setSubmitCallback( [ $this,
'onSubmit' ] );
104 $form->setAction( $title->getLocalURL( [
'action' => $this->getName() ] ) );
106 $params = array_diff_key(
108 [
'action' =>
null,
'title' =>
null ]
111 $form->addHiddenField(
'redirectparams',
wfArrayToCgi( $params ) );
114 $form->addPreHtml( $this->
preText() );
115 $form->addPostHtml( $this->
postText() );
165 if ( $form->show() ) {
180class_alias( FormAction::class,
'FormAction' );
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes one or two arrays as input, and returns a CGI-style string, e....