XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
formfile.php
Go to the documentation of this file.
1 <?php
21 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 
27 {
35 
43  function XoopsFormFile($caption, $name, $maxfilesize)
44  {
45  $this->setCaption($caption);
46  $this->setName($name);
47  $this->_maxFileSize = intval($maxfilesize);
48  }
49 
55  function getMaxFileSize()
56  {
57  return $this->_maxFileSize;
58  }
59 
65  function render()
66  {
67  return '<input type="hidden" name="MAX_FILE_SIZE" value="' . $this->getMaxFileSize() . '" /><input type="file" name="' . $this->getName() . '" id="' . $this->getName() . '" title="' . $this->getTitle() . '" ' .$this->getExtra() . ' /><input type="hidden" name="xoops_upload_file[]" id="xoops_upload_file[]" value="' . $this->getName() . '" />';
68  }
69 }
70 
71 ?>