source/Application/Controller/Admin/ArticlePictures.php
public function render()
    {
        parent::render();

        $this->_aViewData["edit"] = $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);

        $soxId = $this->getEditObjectId();
        if (isset($soxId) && $soxId != "-1") {
            // load object
            $oArticle->load($soxId);
            $oArticle = $this->updateArticle($oArticle);

            // variant handling
            if ($oArticle->oxarticles__oxparentid->value) {
                $oParentArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                $oParentArticle->load($oArticle->oxarticles__oxparentid->value);
                $this->_aViewData["parentarticle"] = $oParentArticle;
                $this->_aViewData["oxparentid"] = $oArticle->oxarticles__oxparentid->value;
            }
        }

        $this->_aViewData["iPicCount"] = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iPicCount');

        return "article_pictures.tpl";
    }
public function render()
    {
        parent::render();

        $this->_aViewData["edit"] = $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);

        $soxId = $this->getEditObjectId();
        if (isset($soxId) && $soxId != "-1") {
            // load object
            $oArticle->load($soxId);
            $oArticle = $this->updateArticle($oArticle);

            // variant handling
            if ($oArticle->oxarticles__oxparentid->value) {
                $oParentArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                $oParentArticle->load($oArticle->oxarticles__oxparentid->value);
                $this->_aViewData["parentarticle"] = $oParentArticle;
                $this->_aViewData["oxparentid"] = $oArticle->oxarticles__oxparentid->value;
            }
        }

        $this->_aViewData["iPicCount"] = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iPicCount');

        return "article_pictures.tpl";
    }
public function render ( ) { parent :: render ( ) ; $ this -> _aViewData [ "edit" ] = $ oArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ soxId = $ this -> getEditObjectId ( ) ; if ( isset ( $ soxId ) && $ soxId != "-1" ) { // load object $ oArticle -> load ( $ soxId ) ; $ oArticle = $ this -> updateArticle ( $ oArticle ) ; // variant handling if ( $ oArticle -> oxarticles__oxparentid -> value ) { $ oParentArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ oParentArticle -> load ( $ oArticle -> oxarticles__oxparentid -> value ) ; $ this -> _aViewData [ "parentarticle" ] = $ oParentArticle ; $ this -> _aViewData [ "oxparentid" ] = $ oArticle -> oxarticles__oxparentid -> value ; } } $ this -> _aViewData [ "iPicCount" ] = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iPicCount' ) ; return "article_pictures.tpl" ; }
Loads article information - pictures, passes data to Smarty
engine, returns name of template file "article_pictures.tpl".

@return string
Loads article information - pictures passes data to Smarty engine returns name of template file article_pictures . tpl .