Mage_Adminhtml_System_Convert_GuiController Class Reference

Inheritance diagram for Mage_Adminhtml_System_Convert_GuiController:

Mage_Adminhtml_System_Convert_ProfileController Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 indexAction ()
 gridAction ()
 editAction ()
 uploadAction ()
 uploadPostAction ()
 downloadAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 36 of file GuiController.php.


Member Function Documentation

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_System_Convert_ProfileController.

Definition at line 130 of file GuiController.php.

00131     {
00132 //        switch ($this->getRequest()->getActionName()) {
00133 //            case 'index':
00134 //                $aclResource = 'admin/system/convert/gui';
00135 //                break;
00136 //            case 'grid':
00137 //                $aclResource = 'admin/system/convert/gui';
00138 //                break;
00139 //            case 'run':
00140 //                $aclResource = 'admin/system/convert/gui/run';
00141 //                break;
00142 //            default:
00143 //                $aclResource = 'admin/system/convert/gui/edit';
00144 //                break;
00145 //        }
00146 
00147         return Mage::getSingleton('admin/session')->isAllowed('admin/system/convert/gui');
00148     }

downloadAction (  ) 

Definition at line 119 of file GuiController.php.

00120     {
00121         $filename = $this->getRequest()->getParam('filename');
00122         if (!$filename || strpos($filename, '..')!==false || $filename[0]==='.') {
00123             return;
00124         }
00125         $this->_initProfile();
00126         $profile = Mage::registry('current_convert_profile');
00127 
00128     }

editAction (  ) 

Profile edit action

Append edit tabs to left block

Reimplemented from Mage_Adminhtml_System_Convert_ProfileController.

Definition at line 78 of file GuiController.php.

00079     {
00080         $this->_initProfile();
00081         $this->loadLayout();
00082 
00083         $profile = Mage::registry('current_convert_profile');
00084 
00085         // set entered data if was error when we do save
00086         $data = Mage::getSingleton('adminhtml/session')->getConvertProfileData(true);
00087 
00088         if (!empty($data)) {
00089             $profile->addData($data);
00090         }
00091 
00092         $this->_setActiveMenu('system/convert');
00093 
00094 
00095         $this->_addContent(
00096             $this->getLayout()->createBlock('adminhtml/system_convert_gui_edit')
00097         );
00098 
00099         /**
00100          * Append edit tabs to left block
00101          */
00102         $this->_addLeft($this->getLayout()->createBlock('adminhtml/system_convert_gui_edit_tabs'));
00103 
00104         $this->renderLayout();
00105     }

gridAction (  ) 

Reimplemented from Mage_Adminhtml_System_Convert_ProfileController.

Definition at line 70 of file GuiController.php.

00071     {
00072         $this->getResponse()->setBody($this->getLayout()->createBlock('adminhtml/system_convert_gui_grid')->toHtml());
00073     }

indexAction (  ) 

Profiles list action

Set active menu item

Append profiles block to content

Add breadcrumb item

Reimplemented from Mage_Adminhtml_System_Convert_ProfileController.

Definition at line 41 of file GuiController.php.

00042     {
00043         if ($this->getRequest()->getQuery('ajax')) {
00044             $this->_forward('grid');
00045             return;
00046         }
00047         $this->loadLayout();
00048 
00049         /**
00050          * Set active menu item
00051          */
00052         $this->_setActiveMenu('system/convert');
00053 
00054         /**
00055          * Append profiles block to content
00056          */
00057         $this->_addContent(
00058             $this->getLayout()->createBlock('adminhtml/system_convert_gui', 'convert_profile')
00059         );
00060 
00061         /**
00062          * Add breadcrumb item
00063          */
00064         $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Import/Export'), Mage::helper('adminhtml')->__('Import/Export'));
00065         $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Profiles'), Mage::helper('adminhtml')->__('Profiles'));
00066 
00067         $this->renderLayout();
00068     }

uploadAction (  ) 

Definition at line 107 of file GuiController.php.

00108     {
00109         $this->_initProfile();
00110         $profile = Mage::registry('current_convert_profile');
00111     }

uploadPostAction (  ) 

Definition at line 113 of file GuiController.php.

00114     {
00115         $this->_initProfile();
00116         $profile = Mage::registry('current_convert_profile');
00117     }


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

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