FRED™  3.0
FRED™: Framework for Rapid and Easy Development
File.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class File extends \Rsi\Fred\Controller\View\Html\Widget{
6 
7  protected $_inputType = 'file';
8 
9  protected function attribs(){
10  $attribs = parent::attribs();
11  if($this->_widget->multi) $attribs['multiple'] = true;
12  return $attribs;
13  }
14 
15  public function render($value = null,$raw = false){
16  $this->_widget->expect('rotate');
17  if($this->_widget->multi) $this->_name .= '[]';
18  return parent::render(); //value not allowed
19  }
20 
21 }
render($value=null, $raw=false)
Definition: File.php:15