/** * * @return Aitoc_Aitsys_Helper_License */ protected function _addInstallAction() { if ($this->_license->isUninstalled()) { $this->_actions[] = array('url' => array('path' => 'aitsys/license/manage', 'args' => array('modulekey' => $this->_license->getKey())), 'title' => $this->__('Install')); } elseif ($this->_license->isInstalled()) { $this->_actions[] = array('url' => array('path' => 'aitsys/license/manage', 'args' => array('modulekey' => $this->_license->getKey())), 'title' => $this->__('Manage')); } return $this; }
/** * * @param $args * @return Aitoc_Aitsys_Model_License_Service */ protected function _updateArgs(&$args) { $platform = $this->tool()->platform(); if (!isset($args[0]) || !is_array($args[0])) { $args[0] = array(); } $args[0]['platform_version'] = $platform->getVersion(); $args[0]['is_test'] = $platform->isTestMode(); $args[0]['magento_version'] = Mage::getVersion(); /* try { $args[0]['base_url'] = Mage::getBaseUrl(); } catch (Mage_Core_Model_Store_Exception $exc) { $args[0]['base_url'] = Mage::app()->getStore(0)->getBaseUrl(); } */ $args[0]['base_url'] = $this->tool()->getRealBaseUrl(false); if (!isset($args[0]['domain']) || !$args[0]['domain'] || $args[0]['domain'] === '') { $args[0]['domain'] = $this->tool()->getRealBaseUrl(); } $args[0]['platform_path'] = $this->tool()->platform()->getInstallDir(true); $args[0]['server_info'] = Mage::helper('aitsys/statistics')->getServerInfo(); if ($platformId = $platform->getPlatformId()) { $args[0]['platformid'] = $platformId; } if ($this->_license) { $args[0]['module_key'] = $this->_license->getKey(); $args[0]['link_id'] = $this->_license->getLinkId(); $args[0]['module_version'] = $this->_license->getModule()->getVersion(); if (!isset($args[0]['purchaseid'])) { $args[0]['purchaseid'] = $this->_license->getPurchaseId(); } } return $this; }
/** * * @return Aitoc_Aitsys_Helper_License */ protected function _addManualInstallAction() { $this->_actions[] = array('url' => array('path' => 'aitsys/license/manualInstall', 'args' => array('modulekey' => $this->_license->getKey())), 'title' => $this->__('Manual Install')); return $this; }