[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 3 class HTMLEditTools extends HTMLFormField { 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 18 /** 19 * @param string $value 20 * @return string 21 * @since 1.20 22 */ 23 public function getDiv( $value ) { 24 $msg = $this->formatMsg(); 25 26 return '<div class="mw-editTools">' . $msg->parseAsBlock() . '</div>'; 27 } 28 29 /** 30 * @param string $value 31 * @return string 32 * @since 1.20 33 */ 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->msg( $this->mParams['message'] ); 43 if ( $msg->isDisabled() ) { 44 $msg = $this->msg( 'edittools' ); 45 } 46 } 47 $msg->inContentLanguage(); 48 49 return $msg; 50 } 51 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |