includes/htmlform/HTMLTextAreaField.php 1 location
|
@@ 33-40 (lines=8) @@
|
| 30 |
|
return isset( $this->mParams['rows'] ) ? $this->mParams['rows'] : static::DEFAULT_ROWS; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
function getSpellCheck() { |
| 34 |
|
$val = isset( $this->mParams['spellcheck'] ) ? $this->mParams['spellcheck'] : null; |
| 35 |
|
if ( is_bool( $val ) ) { |
| 36 |
|
// "spellcheck" attribute literally requires "true" or "false" to work. |
| 37 |
|
return $val === true ? 'true' : 'false'; |
| 38 |
|
} |
| 39 |
|
return null; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
function getInputHTML( $value ) { |
| 43 |
|
$attribs = [ |
includes/htmlform/HTMLTextField.php 1 location
|
@@ 29-36 (lines=8) @@
|
| 26 |
|
return isset( $this->mParams['size'] ) ? $this->mParams['size'] : 45; |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
function getSpellCheck() { |
| 30 |
|
$val = isset( $this->mParams['spellcheck'] ) ? $this->mParams['spellcheck'] : null; |
| 31 |
|
if ( is_bool( $val ) ) { |
| 32 |
|
// "spellcheck" attribute literally requires "true" or "false" to work. |
| 33 |
|
return $val === true ? 'true' : 'false'; |
| 34 |
|
} |
| 35 |
|
return null; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
public function isPersistent() { |
| 39 |
|
if ( isset( $this->mParams['persistent'] ) ) { |