X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLTextAreaField.php;h=480c5bb926573179f20390f1812a413b2da3171f;hp=8ffff43888f7ad1093f0ee8fa0d661460c0d2570;hb=fb79f30319b9ad2a7eb0f5f4d1668143ec8f963e;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e diff --git a/includes/htmlform/fields/HTMLTextAreaField.php b/includes/htmlform/fields/HTMLTextAreaField.php index 8ffff43888..480c5bb926 100644 --- a/includes/htmlform/fields/HTMLTextAreaField.php +++ b/includes/htmlform/fields/HTMLTextAreaField.php @@ -22,15 +22,15 @@ class HTMLTextAreaField extends HTMLFormField { } } - function getCols() { + public function getCols() { return isset( $this->mParams['cols'] ) ? $this->mParams['cols'] : static::DEFAULT_COLS; } - function getRows() { + public function getRows() { return isset( $this->mParams['rows'] ) ? $this->mParams['rows'] : static::DEFAULT_ROWS; } - function getSpellCheck() { + public function getSpellCheck() { $val = isset( $this->mParams['spellcheck'] ) ? $this->mParams['spellcheck'] : null; if ( is_bool( $val ) ) { // "spellcheck" attribute literally requires "true" or "false" to work. @@ -39,7 +39,7 @@ class HTMLTextAreaField extends HTMLFormField { return null; } - function getInputHTML( $value ) { + public function getInputHTML( $value ) { $attribs = [ 'id' => $this->mID, 'cols' => $this->getCols(), @@ -71,7 +71,7 @@ class HTMLTextAreaField extends HTMLFormField { throw new Exception( "OOUIHTMLForm does not support the 'cols' parameter for textareas" ); } - $attribs = $this->getTooltipAndAccessKey(); + $attribs = $this->getTooltipAndAccessKeyOOUI(); if ( $this->mClass !== '' ) { $attribs['classes'] = [ $this->mClass ];