FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Memo.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Memo extends \Rsi\Fred\Controller\View\Html\Widget{
6 
7  protected function attribs(){
8  $attribs = parent::attribs();
9  if($max = $this->_widget->max) $attribs['maxlength'] = $max;
10  return $attribs;
11  }
12 
13  protected function renderInput($value,$raw,$attribs = null){
14  return $this->html->textarea(
15  htmlspecialchars($raw ? $value : $this->_widget->format($value)),
16  array_merge($this->attribs(),$attribs ?: []),
17  $this->_name
18  );
19  }
20 
21 }
renderInput($value, $raw, $attribs=null)
Definition: Memo.php:13