Go to the documentation of this file.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 = oxConfig::getParameter( "oxid" );
00033 
00034         
00035 
00036         
00037 
00038 
00039         
00040         $sSavedID = oxConfig::getParameter( "saved_oxid" );
00041         if ( ($soxId == "-1" || !isset( $soxId ) ) && isset( $sSavedID ) ) {
00042             $soxId = $sSavedID;
00043             oxSession::deleteVar( "saved_oxid");
00044             $this->_aViewData["oxid"] =  $soxId;
00045             
00046             $this->_aViewData["updatelist"] =  "1";
00047         }
00048 
00049         if ( $soxId != "-1" && isset( $soxId ) ) {
00050             
00051             $oShop = oxNew( "oxshop" );
00052             $oShop->load( $soxId );
00053             $this->_aViewData["edit"] =  $oShop;
00054         }
00055 
00056         $this->_aViewData["version"] = $myConfig->getVersion();
00057 
00058 
00059 
00060         return $this->_sThisTemplate;
00061     }
00062 
00063 }