MediaWiki  1.34.4
IManageForm.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use HTMLForm;
6 use OOUI\Layout;
7 use Title;
8 use Status;
9 
10 interface IManageForm {
15  public function hasField( $fieldname );
16 
23  public function addHiddenField( $name, $value, array $attribs = [] );
24 
29  public function setTitle( $t );
30 
35  public function setSubmitCallback( $cb );
36 
41  public function show( $layout = null );
42 
47  public function onSubmit( array $formData );
48 
52  public function onSuccess();
53 }
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\setTitle
setTitle( $t)
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\hasField
hasField( $fieldname)
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:40
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\show
show( $layout=null)
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\setSubmitCallback
setSubmitCallback( $cb)
$t
$t
Definition: make-normalization-table.php:143
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\onSuccess
onSuccess()
MediaWiki\Extension\OATHAuth\HTMLForm
Definition: IManageForm.php:3
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\addHiddenField
addHiddenField( $name, $value, array $attribs=[])
Title
Represents a title within MediaWiki.
Definition: Title.php:42
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm
Definition: IManageForm.php:10
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm\onSubmit
onSubmit(array $formData)
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusabl...
Definition: HTMLForm.php:131