Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\OATHAuth\HTMLForm; |
4 | |
5 | use MediaWiki\HTMLForm\HTMLForm; |
6 | use MediaWiki\Status\Status; |
7 | use MediaWiki\Title\Title; |
8 | use OOUI\Layout; |
9 | |
10 | interface IManageForm { |
11 | /** |
12 | * @param string $fieldname |
13 | * @return bool |
14 | */ |
15 | public function hasField( $fieldname ); |
16 | |
17 | /** |
18 | * @param string $name |
19 | * @param string $value |
20 | * @param array $attribs |
21 | * @return HTMLForm |
22 | */ |
23 | public function addHiddenField( $name, $value, array $attribs = [] ); |
24 | |
25 | /** |
26 | * @param Title $t |
27 | * @return HTMLForm |
28 | */ |
29 | public function setTitle( $t ); |
30 | |
31 | /** |
32 | * @param callable $cb |
33 | * @return HTMLForm |
34 | */ |
35 | public function setSubmitCallback( $cb ); |
36 | |
37 | /** |
38 | * @param Layout|null $layout |
39 | * @return bool|Status |
40 | */ |
41 | public function show( $layout = null ); |
42 | |
43 | /** |
44 | * @param array $formData |
45 | * @return array|bool|Status|string |
46 | */ |
47 | public function onSubmit( array $formData ); |
48 | |
49 | /** |
50 | * @return void |
51 | */ |
52 | public function onSuccess(); |
53 | } |