source/Application/Component/Widget/ArticleBox.php
protected function _getArticleById($sArticleId)
    {
        /** @var \OxidEsales\Eshop\Application\Model\Article $oArticle */
        $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $oArticle->load($sArticleId);
        $iLinkType = $this->getViewParameter('iLinkType');

        if ($this->getViewParameter('inlist')) {
            $oArticle->setInList();
        }
        if ($iLinkType) {
            $oArticle->setLinkType($iLinkType);
        }
        // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
        if ($oRecommList = $this->getActiveRecommList()) {
            $oArticle->text = $oRecommList->getArtDescription($oArticle->getId());
        }
        // END deprecated

        return $oArticle;
    }
protected function _getArticleById($sArticleId)
    {
        /** @var \OxidEsales\Eshop\Application\Model\Article $oArticle */
        $oArticle = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $oArticle->load($sArticleId);
        $iLinkType = $this->getViewParameter('iLinkType');

        if ($this->getViewParameter('inlist')) {
            $oArticle->setInList();
        }
        if ($iLinkType) {
            $oArticle->setLinkType($iLinkType);
        }
        // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
        if ($oRecommList = $this->getActiveRecommList()) {
            $oArticle->text = $oRecommList->getArtDescription($oArticle->getId());
        }
        // END deprecated

        return $oArticle;
    }
protected function _getArticleById ( $ sArticleId ) { /** @var \OxidEsales\Eshop\Application\Model\Article $oArticle */ $ oArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; $ oArticle -> load ( $ sArticleId ) ; $ iLinkType = $ this -> getViewParameter ( 'iLinkType' ) ; if ( $ this -> getViewParameter ( 'inlist' ) ) { $ oArticle -> setInList ( ) ; } if ( $ iLinkType ) { $ oArticle -> setLinkType ( $ iLinkType ) ; } // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module. if ( $ oRecommList = $ this -> getActiveRecommList ( ) ) { $ oArticle -> text = $ oRecommList -> getArtDescription ( $ oArticle -> getId ( ) ) ; } // END deprecated return $ oArticle ; }
Returns prepared article by id.

@param string $sArticleId Article id

@return \OxidEsales\Eshop\Application\Model\Article
Returns prepared article by id .