Exemple #1
0
 protected function _beforeToHtml()
 {
     $moduleConfig = $this->getHelper('Module')->getConfig();
     $this->cronLastRunTime = 'N/A';
     $this->cronIsNotWorking = false;
     $this->cronCurrentRunner = ucfirst($this->getHelper('Module\\Cron')->getRunner());
     $this->cronServiceAuthKey = $moduleConfig->getGroupValue('/cron/service/', 'auth_key');
     $baseDir = $this->getHelper('Client')->getBaseDirectory();
     $this->cronPhp = 'php -q ' . $baseDir . 'cron.php -mdefault 1';
     $baseUrl = $this->getHelper('Magento')->getBaseUrl();
     $this->cronGet = 'GET ' . $baseUrl . 'cron.php';
     $cronLastRunTime = $this->getHelper('Module\\Cron')->getLastRun();
     if (!is_null($cronLastRunTime)) {
         $this->cronLastRunTime = $cronLastRunTime;
         $this->cronIsNotWorking = $this->getHelper('Module\\Cron')->isLastRunMoreThan(12, true);
     }
     $serviceHostName = $moduleConfig->getGroupValue('/cron/service/', 'hostname');
     $this->cronServiceIp = gethostbyname($serviceHostName);
     $this->isMagentoCronDisabled = (bool) (int) $moduleConfig->getGroupValue('/cron/magento/', 'disabled');
     $this->isServiceCronDisabled = (bool) (int) $moduleConfig->getGroupValue('/cron/service/', 'disabled');
     return parent::_beforeToHtml();
 }
 protected function _beforeToHtml()
 {
     $this->requirements = $this->getHelper('Module')->getRequirementsInfo();
     return parent::_beforeToHtml();
 }