source/Application/Controller/Admin/ArticleExtend.php
public function updateMedia()
    {
        $aMediaUrls = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('aMediaUrls');
        if (is_array($aMediaUrls)) {
            foreach ($aMediaUrls as $sMediaId => $aMediaParams) {
                $oMedia = oxNew(\OxidEsales\Eshop\Application\Model\MediaUrl::class);
                if ($oMedia->load($sMediaId)) {
                    $oMedia->setLanguage(0);
                    $oMedia->assign($aMediaParams);
                    $oMedia->setLanguage($this->_iEditLang);
                    $oMedia->save();
                }
            }
        }
    }
public function updateMedia()
    {
        $aMediaUrls = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('aMediaUrls');
        if (is_array($aMediaUrls)) {
            foreach ($aMediaUrls as $sMediaId => $aMediaParams) {
                $oMedia = oxNew(\OxidEsales\Eshop\Application\Model\MediaUrl::class);
                if ($oMedia->load($sMediaId)) {
                    $oMedia->setLanguage(0);
                    $oMedia->assign($aMediaParams);
                    $oMedia->setLanguage($this->_iEditLang);
                    $oMedia->save();
                }
            }
        }
    }
public function updateMedia ( ) { $ aMediaUrls = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'aMediaUrls' ) ; if ( is_array ( $ aMediaUrls ) ) { foreach ( $ aMediaUrls as $ sMediaId => $ aMediaParams ) { $ oMedia = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ MediaUrl :: class ) ; if ( $ oMedia -> load ( $ sMediaId ) ) { $ oMedia -> setLanguage ( 0 ) ; $ oMedia -> assign ( $ aMediaParams ) ; $ oMedia -> setLanguage ( $ this -> _iEditLang ) ; $ oMedia -> save ( ) ; } } } }
Updates existing media descriptions
Updates existing media descriptions