array(
'class' => 'mw-ui-checkbox-label'
),
- Xml::check( $this->mName, $value, $attr ) . // Html:rawElement doesn't escape contents.
- htmlspecialchars( $this->mLabel ) );
+ Xml::check( $this->mName, $value, $attr ) . $this->mLabel );
} else {
return Xml::check( $this->mName, $value, $attr )
. ' '
/**
* For a checkbox, the label goes on the right hand side, and is
* added in getInputHTML(), rather than HTMLFormField::getRow()
- * @return String
+ * @return string
*/
function getLabel() {
return ' ';
/**
* checkboxes don't need a label.
+ * @return bool
*/
protected function needsLabel() {
return false;
}
/**
- * @param $request WebRequest
+ * @param WebRequest $request
*
- * @return String
+ * @return string
*/
function loadDataFromRequest( $request ) {
$invert = false;