php-censor/src/B8Framework/Form/Element/TextArea.php
2016-06-23 21:18:41 +06:00

26 lines
363 B
PHP
Executable file

<?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();
}
}