3 class HTMLTextAreaField
extends HTMLFormField
{
4 const DEFAULT_COLS
= 80;
5 const DEFAULT_ROWS
= 25;
8 return isset( $this->mParams
['cols'] ) ?
$this->mParams
['cols'] : static::DEFAULT_COLS
;
12 return isset( $this->mParams
['rows'] ) ?
$this->mParams
['rows'] : static::DEFAULT_ROWS
;
15 function getInputHTML( $value ) {
18 'cols' => $this->getCols(),
19 'rows' => $this->getRows(),
20 ) +
$this->getTooltipAndAccessKey();
22 if ( $this->mClass
!== '' ) {
23 $attribs['class'] = $this->mClass
;
26 $allowedParams = array(
35 $attribs +
= $this->getAttributes( $allowedParams );
36 return Html
::textarea( $this->mName
, $value, $attribs );
39 function getInputOOUI( $value ) {
40 $attribs = $this->getTooltipAndAccessKey();
42 if ( $this->mClass
!== '' ) {
43 $attribs['classes'] = array( $this->mClass
);
46 $allowedParams = array(
55 $attribs +
= $this->getAttributes( $allowedParams, array(
56 'tabindex' => 'tabIndex',
57 'readonly' => 'readOnly',
60 return new OOUI\
TextInputWidget( array(
62 'name' => $this->mName
,