source/Application/Model/Article.php
public function getAccessoires()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        // Performance
        if (!$myConfig->getConfigParam('bl_perfLoadAccessoires')) {
            return;
        }

        $oAcclist = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oAcclist->setSqlLimit(0, $myConfig->getConfigParam('iNrofCrossellArticles'));
        $oAcclist->loadArticleAccessoires($this->oxarticles__oxid->value);

        if ($oAcclist->count()) {
            return $oAcclist;
        }
    }
public function getAccessoires()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        // Performance
        if (!$myConfig->getConfigParam('bl_perfLoadAccessoires')) {
            return;
        }

        $oAcclist = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oAcclist->setSqlLimit(0, $myConfig->getConfigParam('iNrofCrossellArticles'));
        $oAcclist->loadArticleAccessoires($this->oxarticles__oxid->value);

        if ($oAcclist->count()) {
            return $oAcclist;
        }
    }
public function getAccessoires ( ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; // Performance if ( ! $ myConfig -> getConfigParam ( 'bl_perfLoadAccessoires' ) ) { return ; } $ oAcclist = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oAcclist -> setSqlLimit ( 0 , $ myConfig -> getConfigParam ( 'iNrofCrossellArticles' ) ) ; $ oAcclist -> loadArticleAccessoires ( $ this -> oxarticles__oxid -> value ) ; if ( $ oAcclist -> count ( ) ) { return $ oAcclist ; } }
Loads and returns array with accessories information.

@return array
Loads and returns array with accessories information .