MediaWiki master
HTMLApiField.php
Go to the documentation of this file.
1<?php
2
4
6
11 public function getTableRow( $value ) {
12 return '';
13 }
14
15 public function getDiv( $value ) {
16 return $this->getTableRow( $value );
17 }
18
19 public function getRaw( $value ) {
20 return $this->getTableRow( $value );
21 }
22
23 public function getInputHTML( $value ) {
24 return '';
25 }
26
27 public function hasVisibleOutput() {
28 return false;
29 }
30}
31
33class_alias( HTMLApiField::class, 'HTMLApiField' );
getDiv( $value)
Get the complete div for the input, including help text, labels, and whatever.
getRaw( $value)
Get the complete raw fields for the input, including help text, labels, and whatever.
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
getTableRow( $value)
Get the complete table row for the input, including help text, labels, and whatever.
hasVisibleOutput()
If this field has a user-visible output or not.
The parent class to generate form fields.