dyn_trusted.php

Go to the documentation of this file.
00001 <?php
00002 
00003 
00009 class dyn_trusted extends Shop_Config
00010 {
00017     public function render()
00018     {
00019         parent::render();
00020         $this->_aViewData['oxid'] = $this->getConfig()->getShopId();
00021 
00022         $aIds = $this->_aViewData["confaarrs"]['iShopID_TrustedShops'];
00023 
00024         $this->_aViewData["aShopID_TrustedShops"] = $aIds;
00025         $this->_aViewData["alllang"] = oxLang::getInstance()->getLanguageNames();
00026 
00027         return "dyn_trusted.tpl";
00028     }
00029 
00035     public function save()
00036     {
00037         $myConfig = $this->getConfig();
00038         $aConfStrs  = oxConfig::getParameter( "aShopID_TrustedShops");
00039         $blSave = true;
00040         foreach ( $aConfStrs as $sConfStrs) {
00041             if ( $sConfStrs ) {
00042                 if ( strlen( $sConfStrs ) != 33 || substr( $sConfStrs, 0, 1 ) != 'X' ) {
00043                     $this->_aViewData["errorsaving"] = 1;
00044                     $blSave = false;
00045                 }
00046             }
00047         }
00048         if ( $blSave ) {
00049             $myConfig->saveShopConfVar( "aarr", 'iShopID_TrustedShops', serialize($aConfStrs), $myConfig->getShopId() );
00050         }
00051     }
00052 
00056     public function getViewId()
00057     {
00058         return 'dyn_interface';
00059     }
00060 }

Generated on Thu Dec 4 12:04:55 2008 for OXID eShop CE by  doxygen 1.5.5