source/Application/Controller/CompareController.php
public function getAttributeList()
    {
        if ($this->_oAttributeList === null) {
            $this->_oAttributeList = false;
            if ($oArtList = $this->getCompArtList()) {
                $aProductIds = array_keys($oArtList);
                foreach ($oArtList as $oArticle) {
                    if ($oArticle->getParentId()) {
                        $aProductIds[] = $oArticle->getParentId();
                    }
                }
                $oAttributeList = oxNew(\OxidEsales\Eshop\Application\Model\AttributeList::class);
                $this->_oAttributeList = $oAttributeList->loadAttributesByIds($aProductIds);
            }
        }

        return $this->_oAttributeList;
    }
public function getAttributeList()
    {
        if ($this->_oAttributeList === null) {
            $this->_oAttributeList = false;
            if ($oArtList = $this->getCompArtList()) {
                $aProductIds = array_keys($oArtList);
                foreach ($oArtList as $oArticle) {
                    if ($oArticle->getParentId()) {
                        $aProductIds[] = $oArticle->getParentId();
                    }
                }
                $oAttributeList = oxNew(\OxidEsales\Eshop\Application\Model\AttributeList::class);
                $this->_oAttributeList = $oAttributeList->loadAttributesByIds($aProductIds);
            }
        }

        return $this->_oAttributeList;
    }
public function getAttributeList ( ) { if ( $ this -> _oAttributeList === null ) { $ this -> _oAttributeList = false ; if ( $ oArtList = $ this -> getCompArtList ( ) ) { $ aProductIds = array_keys ( $ oArtList ) ; foreach ( $ oArtList as $ oArticle ) { if ( $ oArticle -> getParentId ( ) ) { $ aProductIds [ ] = $ oArticle -> getParentId ( ) ; } } $ oAttributeList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ AttributeList :: class ) ; $ this -> _oAttributeList = $ oAttributeList -> loadAttributesByIds ( $ aProductIds ) ; } } return $ this -> _oAttributeList ; }
Template variable getter. Returns attribute list

@return object
Template variable getter . Returns attribute list