コード例 #1
0
 public function has_value_for_configuration_changed($observer)
 {
     if (Mage::registry('orderexport_modify_event') == true) {
         Mage::unregister('orderexport_modify_event');
         Xtento_OrderExport_Model_System_Config_Source_Order_Status::isEnabled();
     }
 }
コード例 #2
0
 public function indexAction()
 {
     if (!Xtento_OrderExport_Model_System_Config_Source_Order_Status::isEnabled() || !Mage::helper('xtento_orderexport')->getModuleEnabled()) {
         return $this->_redirect('*/orderexport_index/disabled');
     }
     $this->_initAction()->renderLayout();
 }
コード例 #3
0
 private function _checkStatus()
 {
     if (!Xtento_OrderExport_Model_System_Config_Source_Order_Status::isEnabled()) {
         Mage::throwException(Mage::helper('xtento_orderexport')->getMsg());
     }
 }
コード例 #4
0
 public function isEnabled()
 {
     return Xtento_OrderExport_Model_System_Config_Source_Order_Status::isEnabled();
 }