77 Hooks::run(
'ActionModifyFormFields', [ $this->
getName(), &$this->fields, $this->page ] );
80 $form = HTMLForm::factory(
'ooui', $this->fields, $this->
getContext(), $this->
getName() );
84 $form->setSubmitCallback( [ $this,
'onSubmit' ] );
87 $form->setAction( $title->getLocalURL( [
'action' => $this->getName() ] ) );
91 [
'action' =>
null,
'title' =>
null ]
97 $form->addPreText( $this->
preText() );
98 $form->addPostText( $this->
postText() );
102 Hooks::run(
'ActionBeforeFormDisplay', [ $this->
getName(), &$form, $this->page ] );
143 if ( $form->show() ) {
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfArrayToCgi( $array1, $array2=null, $prefix='')
This function takes one or two arrays as input, and returns a CGI-style string, e....
Actions are things which can be done to pages (edit, delete, rollback, etc).
checkCanExecute(User $user)
Checks if the given user (identified by an object) can perform this action.
getName()
Return the name of the action this object responds to.
getTitle()
Shortcut to get the Title object from the page.
getContext()
Get the IContextSource in use here.
getUser()
Shortcut to get the User being used for this instance.
setHeaders()
Set output headers for noindexing etc.
getRequest()
Get the WebRequest being used for this instance.
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)