00001 <?php 00002 00007 class dyn_adbutler extends dyn_interface 00008 { 00015 public function render() 00016 { 00017 parent::render(); 00018 00019 $this->_aViewData["edit"] = $this->_getEditShop( oxSession::getVar( "actshop") ); 00020 00021 return "dyn_adbutler.tpl"; 00022 } 00023 00029 public function save() 00030 { 00031 $soxId = oxConfig::getParameter( "oxid"); 00032 $aParams = oxConfig::getParameter( "editval"); 00033 00034 $oShop = oxNew( "oxshop" ); 00035 $oShop->load( $soxId); 00036 00037 //$aParams = $oShop->ConvertNameArray2Idx( $aParams); 00038 $oShop->assign( $aParams); 00039 00040 $oShop->save(); 00041 } 00042 }