Public Member Functions | |
load () | |
save () |
Definition at line 35 of file Interactive.php.
load | ( | ) |
Implements Varien_Convert_Adapter_Interface.
Definition at line 38 of file Interactive.php.
00039 { 00040 if (!$_FILES) { 00041 ?> 00042 <form method="post" enctype="multipart/form-data"> 00043 File to upload: <input type="file" name="io_file"/> <input type="submit" value="Upload"/> 00044 </form> 00045 <?php 00046 exit; 00047 } 00048 if (!empty($_FILES['io_file']['tmp_name'])) { 00049 //move_uploaded_file($_FILES['io_file']['tmp_name']) 00050 $this->setData(file_get_contents($_FILES['io_file']['tmp_name'])); 00051 } 00052 00053 return $this; 00054 }
save | ( | ) |
Implements Varien_Convert_Adapter_Interface.
Definition at line 56 of file Interactive.php.
00057 { 00058 if ($this->getVars()) { 00059 foreach ($this->getVars() as $key=>$value) { 00060 header($key.': '.$value); 00061 } 00062 } 00063 echo $this->getData(); 00064 return $this; 00065 }