Mage_Core_Model_Convert_Adapter_Interactive Class Reference

Inheritance diagram for Mage_Core_Model_Convert_Adapter_Interactive:

Varien_Convert_Adapter_Abstract Varien_Convert_Container_Abstract Varien_Convert_Adapter_Interface Varien_Convert_Container_Interface

List of all members.

Public Member Functions

 load ()
 save ()


Detailed Description

Definition at line 35 of file Interactive.php.


Member Function Documentation

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:56 2009 for Magento by  doxygen 1.5.8