MWException: Don't send headers multiple times
[mediawiki.git] / includes / htmlform / HTMLEditTools.php
blob4f1b5302243ae4e0f1b1fb8f9b3a983a8b713783
1 <?php
3 class HTMLEditTools extends HTMLFormField {
4 public function getInputHTML( $value ) {
5 return '';
8 public function getTableRow( $value ) {
9 $msg = $this->formatMsg();
11 return
12 '<tr><td></td><td class="mw-input">' .
13 '<div class="mw-editTools">' .
14 $msg->parseAsBlock() .
15 "</div></td></tr>\n";
18 /**
19 * @since 1.20
21 public function getDiv( $value ) {
22 $msg = $this->formatMsg();
24 return '<div class="mw-editTools">' . $msg->parseAsBlock() . '</div>';
27 /**
28 * @since 1.20
30 public function getRaw( $value ) {
31 return $this->getDiv( $value );
34 protected function formatMsg() {
35 if ( empty( $this->mParams['message'] ) ) {
36 $msg = $this->msg( 'edittools' );
37 } else {
38 $msg = $this->msg( $this->mParams['message'] );
39 if ( $msg->isDisabled() ) {
40 $msg = $this->msg( 'edittools' );
43 $msg->inContentLanguage();
45 return $msg;