00001 <?php 00002 00008 class Shop_License extends Shop_Config 00009 { 00014 protected $_sThisTemplate = "shop_license.tpl"; 00015 00016 00023 public function render() 00024 { 00025 $myConfig = $this->getConfig(); 00026 if ($myConfig->isDemoShop()) { 00027 throw new oxSystemComponentException("license"); 00028 } 00029 00030 parent::render(); 00031 00032 $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId(); 00033 if ( $soxId != "-1" && isset( $soxId ) ) { 00034 // load object 00035 $oShop = oxNew( "oxshop" ); 00036 $oShop->load( $soxId ); 00037 $this->_aViewData["edit"] = $oShop; 00038 } 00039 00040 $this->_aViewData["version"] = $myConfig->getVersion(); 00041 00042 00043 00044 return $this->_sThisTemplate; 00045 } 00046 00047 }