26 lines
363 B
PHP
26 lines
363 B
PHP
|
<?php
|
||
|
|
||
|
namespace b8\Form\Element;
|
||
|
use b8\Form\Element\Text,
|
||
|
b8\View;
|
||
|
|
||
|
class TextArea extends Text
|
||
|
{
|
||
|
protected $_rows = 4;
|
||
|
|
||
|
public function getRows()
|
||
|
{
|
||
|
return $this->_rows;
|
||
|
}
|
||
|
|
||
|
public function setRows($rows)
|
||
|
{
|
||
|
$this->_rows = $rows;
|
||
|
}
|
||
|
|
||
|
protected function _onPreRender(View &$view)
|
||
|
{
|
||
|
parent::_onPreRender($view);
|
||
|
$view->rows = $this->getRows();
|
||
|
}
|
||
|
}
|