FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Char.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Char 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  if($size = $this->_widget->size ?: $max) $attribs['size'] = $size;
11  if($placeholder = $this->_widget->placeholder) $attribs['placeholder'] = $placeholder;
12  if($this->_widget->suggest === false) $attribs['autocomplete'] = 'off';
13  return $attribs;
14  }
15 
16 }