MediaWiki  master
HTMLApiField.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @stable to extend
4  */
5 class HTMLApiField extends HTMLFormField {
6  public function getTableRow( $value ) {
7  return '';
8  }
9 
10  public function getDiv( $value ) {
11  return $this->getTableRow( $value );
12  }
13 
14  public function getRaw( $value ) {
15  return $this->getTableRow( $value );
16  }
17 
18  public function getInputHTML( $value ) {
19  return '';
20  }
21 
22  public function hasVisibleOutput() {
23  return false;
24  }
25 }
HTMLApiField\getInputHTML
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
Definition: HTMLApiField.php:18
HTMLApiField\getDiv
getDiv( $value)
Get the complete div for the input, including help text, labels, and whatever.
Definition: HTMLApiField.php:10
HTMLFormField
The parent class to generate form fields.
Definition: HTMLFormField.php:9
HTMLApiField\getTableRow
getTableRow( $value)
Get the complete table row for the input, including help text, labels, and whatever.
Definition: HTMLApiField.php:6
HTMLApiField\hasVisibleOutput
hasVisibleOutput()
If this field has a user-visible output or not.
Definition: HTMLApiField.php:22
HTMLApiField
Definition: HTMLApiField.php:5
HTMLApiField\getRaw
getRaw( $value)
Get the complete raw fields for the input, including help text, labels, and whatever.
Definition: HTMLApiField.php:14