protected function _beforeToHtml() { $this->cronPhp = 'php -q ' . Mage::helper('M2ePro/Client')->getBaseDirectory() . DIRECTORY_SEPARATOR . 'cron.php -mdefault 1'; $this->cronGet = 'GET ' . Mage::helper('M2ePro/Magento')->getBaseUrl() . 'cron.php'; $this->cronLastRun = 'N/A'; $this->cronLastGMT = false; $cronLastAccessTime = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/cron/', 'last_access'); if (!is_null($cronLastAccessTime)) { if ($this->getIsSupportMode()) { $this->cronLastRun = Mage::helper('M2ePro')->gmtDateToTimezone($cronLastAccessTime); } else { $this->cronLastRun = $cronLastAccessTime; $this->cronLastGMT = true; } } $modelCron = Mage::getModel('M2ePro/Cron'); $this->cronLastRunHighlight = 'none'; if ($modelCron->isShowError()) { $this->cronLastRunHighlight = 'error'; } else { if ($modelCron->isShowNotification()) { $this->cronLastRunHighlight = 'warning'; } } return parent::_beforeToHtml(); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('developmentInspectionDatabaseBrokenTables'); //------------------------------ $this->setTemplate('M2ePro/development/inspection/databaseBrokenTables.phtml'); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('developmentInspectionConflictedModules'); //------------------------------ $this->setTemplate('M2ePro/development/inspection/conflictedModules.phtml'); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('developmentInspectionMagento'); //------------------------------ $this->setTemplate('M2ePro/development/inspection/magento.phtml'); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('developmentInspectionInstallation'); //------------------------------ $this->setTemplate('M2ePro/development/inspection/installation.phtml'); $this->prepareInfo(); }
protected function _beforeToHtml() { $this->cronLastRunTime = 'N/A'; $this->cronIsNotWorking = false; $this->cronCurrentType = ucfirst(Mage::helper('M2ePro/Module_Cron')->getType()); $baseDir = Mage::helper('M2ePro/Client')->getBaseDirectory(); $this->cronPhp = 'php -q ' . $baseDir . DIRECTORY_SEPARATOR . 'cron.php -mdefault 1'; $baseUrl = Mage::helper('M2ePro/Magento')->getBaseUrl(); $this->cronGet = 'GET ' . $baseUrl . 'cron.php'; $cronLastRunTime = Mage::helper('M2ePro/Module_Cron')->getLastRun(); if (!is_null($cronLastRunTime)) { $this->cronLastRunTime = $cronLastRunTime; $this->cronIsNotWorking = Mage::helper('M2ePro/Module_Cron')->isLastRunMoreThan(12, true); } $serviceHostName = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/cron/service/', 'hostname'); $this->cronServiceIp = gethostbyname($serviceHostName); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->requirements = Mage::helper('M2ePro/Module')->getRequirementsInfo(); return parent::_beforeToHtml(); }