source/Application/Model/Article.php
protected function _getAttribsString(&$sAttributeSql, &$iCnt)
    {
        // we do not use lists here as we don't need this overhead right now
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sSelect = 'select oxattrid from oxobject2attribute where oxobject2attribute.oxobjectid=' . $oDb->quote($this->getId());
        if ($this->getParentId()) {
            $sSelect .= ' OR oxobject2attribute.oxobjectid=' . $oDb->quote($this->getParentId());
        }
        $sAttributeSql = '';
        $aAttributeIds = $oDb->getCol($sSelect);
        if (is_array($aAttributeIds) && count($aAttributeIds)) {
            $aAttributeIds = array_unique($aAttributeIds);
            $iCnt = count($aAttributeIds);
            $sAttributeSql .= 't1.oxattrid IN ( ' . implode(',', $oDb->quoteArray($aAttributeIds)) . ') ';
        }
    }
protected function _getAttribsString(&$sAttributeSql, &$iCnt)
    {
        // we do not use lists here as we don't need this overhead right now
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sSelect = 'select oxattrid from oxobject2attribute where oxobject2attribute.oxobjectid=' . $oDb->quote($this->getId());
        if ($this->getParentId()) {
            $sSelect .= ' OR oxobject2attribute.oxobjectid=' . $oDb->quote($this->getParentId());
        }
        $sAttributeSql = '';
        $aAttributeIds = $oDb->getCol($sSelect);
        if (is_array($aAttributeIds) && count($aAttributeIds)) {
            $aAttributeIds = array_unique($aAttributeIds);
            $iCnt = count($aAttributeIds);
            $sAttributeSql .= 't1.oxattrid IN ( ' . implode(',', $oDb->quoteArray($aAttributeIds)) . ') ';
        }
    }
protected function _getAttribsString ( & $ sAttributeSql , & $ iCnt ) { // we do not use lists here as we don't need this overhead right now $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sSelect = 'select oxattrid from oxobject2attribute where oxobject2attribute.oxobjectid=' . $ oDb -> quote ( $ this -> getId ( ) ) ; if ( $ this -> getParentId ( ) ) { $ sSelect .= ' OR oxobject2attribute.oxobjectid=' . $ oDb -> quote ( $ this -> getParentId ( ) ) ; } $ sAttributeSql = '' ; $ aAttributeIds = $ oDb -> getCol ( $ sSelect ) ; if ( is_array ( $ aAttributeIds ) && count ( $ aAttributeIds ) ) { $ aAttributeIds = array_unique ( $ aAttributeIds ) ; $ iCnt = count ( $ aAttributeIds ) ; $ sAttributeSql .= 't1.oxattrid IN ( ' . implode ( ',' , $ oDb -> quoteArray ( $ aAttributeIds ) ) . ') ' ; } }
gets attribs string

@param string $sAttributeSql Attribute selection snippet
@param int    $iCnt          The number of selected attributes
gets attribs string