84 $form = HTMLForm::factory(
'ooui', $this->fields, $this->
getContext(), $this->
getName() );
88 $form->setSubmitCallback( $this->
onSubmit( ... ) );
91 $form->setAction( $title->getLocalURL( [
'action' => $this->getName() ] ) );
93 $params = array_diff_key(
95 [
'action' =>
null,
'title' =>
null ]
98 $form->addHiddenField(
'redirectparams',
wfArrayToCgi( $params ) );
101 $form->addPreHtml( $this->
preText() );
102 $form->addPostHtml( $this->
postText() );
152 if ( $form->show() ) {
167class_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....