MediaWiki REL1_30
HTMLEditTools.php
Go to the documentation of this file.
1<?php
2
4 public function getInputHTML( $value ) {
5 return '';
6 }
7
8 public function getTableRow( $value ) {
9 $msg = $this->formatMsg();
10
11 return
12 '<tr><td></td><td class="mw-input">' .
13 '<div class="mw-editTools">' .
14 $msg->parseAsBlock() .
15 "</div></td></tr>\n";
16 }
17
23 public function getDiv( $value ) {
24 $msg = $this->formatMsg();
25
26 return '<div class="mw-editTools">' . $msg->parseAsBlock() . '</div>';
27 }
28
34 public function getRaw( $value ) {
35 return $this->getDiv( $value );
36 }
37
38 protected function formatMsg() {
39 if ( empty( $this->mParams['message'] ) ) {
40 $msg = $this->msg( 'edittools' );
41 } else {
42 $msg = $this->getMessage( $this->mParams['message'] );
43 if ( $msg->isDisabled() ) {
44 $msg = $this->msg( 'edittools' );
45 }
46 }
47 $msg->inContentLanguage();
48
49 return $msg;
50 }
51}
getTableRow( $value)
Get the complete table row 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.
The parent class to generate form fields.
getMessage( $value)
Turns a *-message parameter (which could be a MessageSpecifier, or a message name,...
msg()
Get a translated interface message.