Fix missing commit() flag in postgres savepoint class
[mediawiki.git] / includes / htmlform / fields / HTMLEditTools.php
blob1b5d1fb4ea1b8c6bdbb41fec11ea881add5df293
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 * @param string $value
20 * @return string
21 * @since 1.20
23 public function getDiv( $value ) {
24 $msg = $this->formatMsg();
26 return '<div class="mw-editTools">' . $msg->parseAsBlock() . '</div>';
29 /**
30 * @param string $value
31 * @return string
32 * @since 1.20
34 public function getRaw( $value ) {
35 return $this->getDiv( $value );
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' );
47 $msg->inContentLanguage();
49 return $msg;