Public Member Functions | |
preDispatch () | |
indexAction () | |
runAction () | |
recompileAction () | |
disableAction () | |
enableAction () | |
Protected Member Functions | |
_getCompiler () | |
_isAllowed () | |
Protected Attributes | |
$_compiler = null |
Definition at line 34 of file ProcessController.php.
_getCompiler | ( | ) | [protected] |
Get compiler process object
Definition at line 48 of file ProcessController.php.
00049 { 00050 if ($this->_compiler === null) { 00051 $this->_compiler = Mage::getModel('compiler/process'); 00052 } 00053 return $this->_compiler; 00054 }
_isAllowed | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Controller_Action.
Definition at line 106 of file ProcessController.php.
00107 { 00108 return Mage::getSingleton('admin/session')->isAllowed('compiler'); 00109 }
disableAction | ( | ) |
Definition at line 88 of file ProcessController.php.
00089 { 00090 $this->_getCompiler()->registerIncludePath(false); 00091 Mage::getSingleton('adminhtml/session')->addSuccess( 00092 Mage::helper('compiler')->__('Compiler include path disabled') 00093 ); 00094 $this->_redirect('*/*/'); 00095 }
enableAction | ( | ) |
Definition at line 97 of file ProcessController.php.
00098 { 00099 $this->_getCompiler()->registerIncludePath(); 00100 Mage::getSingleton('adminhtml/session')->addSuccess( 00101 Mage::helper('compiler')->__('Compiler include path enabled') 00102 ); 00103 $this->_redirect('*/*/'); 00104 }
indexAction | ( | ) |
Definition at line 55 of file ProcessController.php.
00056 { 00057 Mage::getSingleton('adminhtml/session')->addError( 00058 Mage::helper('compiler')->__('Compiler module is now in Beta (not to be used in production environment)') 00059 ); 00060 $this->loadLayout(); 00061 $this->_setActiveMenu('system/tools'); 00062 $this->renderLayout(); 00063 }
preDispatch | ( | ) |
Controller predispatch method
Reimplemented from Mage_Adminhtml_Controller_Action.
Definition at line 38 of file ProcessController.php.
00039 { 00040 parent::preDispatch(); 00041 }
recompileAction | ( | ) |
Definition at line 82 of file ProcessController.php.
00083 { 00084 $this->_getCompiler()->clear(); 00085 $this->_redirect('*/*/run'); 00086 }
runAction | ( | ) |
Definition at line 65 of file ProcessController.php.
00066 { 00067 try { 00068 $this->_getCompiler()->run(); 00069 Mage::getSingleton('adminhtml/session')->addSuccess( 00070 Mage::helper('compiler')->__('Compilation successfully finished') 00071 ); 00072 } catch (Mage_Core_Exception $e) { 00073 Mage::getSingleton('adminhtml/session')->addError($e->getMessage()); 00074 } catch (Exception $e) { 00075 Mage::getSingleton('adminhtml/session')->addError( 00076 Mage::helper('compiler')->__('Compilation error') 00077 ); 00078 } 00079 $this->_redirect('*/*/'); 00080 }
$_compiler = null [protected] |
Definition at line 36 of file ProcessController.php.