php-censor/src/PHPCensor/Form/Element/TextArea.php
2018-03-09 13:46:18 +07:00

40 lines
566 B
PHP

<?php
namespace PHPCensor\Form\Element;
use PHPCensor\View;
class TextArea extends Text
{
/**
* @var integer
*/
protected $rows = 4;
/**
* @return integer
*/
public function getRows()
{
return $this->rows;
}
/**
* @param integer $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @param View $view
*/
protected function onPreRender(View &$view)
{
parent::onPreRender($view);
$view->rows = $this->getRows();
}
}