Remove underscore from classes WebInstaller_*
[mediawiki.git] / includes / htmlform / HTMLTextAreaField.php
blob4fd198976bbab115dfd9b5a0272ceeb3d4a71870
1 <?php
3 class HTMLTextAreaField extends HTMLFormField {
4 const DEFAULT_COLS = 80;
5 const DEFAULT_ROWS = 25;
7 function getCols() {
8 return isset( $this->mParams['cols'] ) ? $this->mParams['cols'] : static::DEFAULT_COLS;
11 function getRows() {
12 return isset( $this->mParams['rows'] ) ? $this->mParams['rows'] : static::DEFAULT_ROWS;
15 function getInputHTML( $value ) {
16 $attribs = array(
17 'id' => $this->mID,
18 'name' => $this->mName,
19 'cols' => $this->getCols(),
20 'rows' => $this->getRows(),
21 ) + $this->getTooltipAndAccessKey();
23 if ( $this->mClass !== '' ) {
24 $attribs['class'] = $this->mClass;
27 $allowedParams = array(
28 'placeholder',
29 'tabindex',
30 'disabled',
31 'readonly',
32 'required',
33 'autofocus'
36 $attribs += $this->getAttributes( $allowedParams );
38 return Html::element( 'textarea', $attribs, $value );