| '
. ' '
. $msg->parseAsBlock()
. " |
\n";
}
/**
* @since 1.20
*/
public function getDiv( $value ) {
$msg = $this->formatMsg();
return '' . $msg->parseAsBlock() . '
';
}
/**
* @since 1.20
*/
public function getRaw( $value ) {
return $this->getDiv( $value );
}
protected function formatMsg() {
if ( empty( $this->mParams['message'] ) ) {
$msg = $this->msg( 'edittools' );
} else {
$msg = $this->msg( $this->mParams['message'] );
if ( $msg->isDisabled() ) {
$msg = $this->msg( 'edittools' );
}
}
$msg->inContentLanguage();
return $msg;
}
}
class HTMLApiField extends HTMLFormField {
public function getTableRow( $value ) {
return '';
}
public function getDiv( $value ) {
return $this->getTableRow( $value );
}
public function getRaw( $value ) {
return $this->getTableRow( $value );
}
public function getInputHTML( $value ) {
return '';
}
}