| '
. ' '
. $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 '';
}
}
interface HTMLNestedFilterable {
/**
* Support for seperating multi-option preferences into multiple preferences
* Due to lack of array support.
* @param $data array
*/
function filterDataForSubmit( $data );
}
class HTMLFormFieldRequiredOptionsException extends MWException {
static public function create( HTMLFormField $field, array $missing ) {
return new self( sprintf(
"Form type `%s` expected the following parameters to be set: %s",
get_class( $field ),
implode( ', ', $missing )
) );
}
}