Ejemplo n.º 1
0
 /**
  * 
  * @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;
 }
Ejemplo n.º 2
0
 /**
  * 
  * @return Aitoc_Aitsys_Model_Module
  */
 public function getModule()
 {
     return $this->_license->getModule();
 }
Ejemplo n.º 3
0
 public function getManageTitle(Aitoc_Aitsys_Model_Module_License $license)
 {
     $status = $license->getStatus();
     $msg = isset($this->_manageTitles[$status]) ? $this->_manageTitles[$status] : 'Manage `%s` license';
     return $this->__($msg, $license->getModule()->getLabel());
 }