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

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

        $soxId = $this->getEditObjectId();
        if (isset($soxId) && $soxId != "-1") {
            if ($oArticle->isDerived()) {
                $this->_aViewData['readonly'] = true;
            }

            // load object
            $oArticle->load($soxId);
        }

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

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

        $soxId = $this->getEditObjectId();
        if (isset($soxId) && $soxId != "-1") {
            if ($oArticle->isDerived()) {
                $this->_aViewData['readonly'] = true;
            }

            // load object
            $oArticle->load($soxId);
        }

        return "article_userdef.tpl";
    }
public function render ( ) { parent :: render ( ) ; $ oArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ this -> _aViewData [ "edit" ] = $ oArticle ; $ soxId = $ this -> getEditObjectId ( ) ; if ( isset ( $ soxId ) && $ soxId != "-1" ) { if ( $ oArticle -> isDerived ( ) ) { $ this -> _aViewData [ 'readonly' ] = true ; } // load object $ oArticle -> load ( $ soxId ) ; } return "article_userdef.tpl" ; }
Loads article data from DB, passes it to Smarty engine, returns name
of template file "article_userdef.tpl".

@return string
Loads article data from DB passes it to Smarty engine returns name of template file article_userdef . tpl .