source/Application/Model/Attribute.php
public function getAttributeAssigns($sArtId)
    {
        if ($sArtId) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $sSelect = "select o2a.oxid from oxobject2attribute as o2a ";
            $sSelect .= "where o2a.oxobjectid = " . $oDb->quote($sArtId) . " order by o2a.oxpos";

            $aIds = [];
            $rs = $oDb->select($sSelect);
            if ($rs != false && $rs->count() > 0) {
                while (!$rs->EOF) {
                    $aIds[] = $rs->fields[0];
                    $rs->fetchRow();
                }
            }

            return $aIds;
        }
    }
public function getAttributeAssigns($sArtId)
    {
        if ($sArtId) {
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $sSelect = "select o2a.oxid from oxobject2attribute as o2a ";
            $sSelect .= "where o2a.oxobjectid = " . $oDb->quote($sArtId) . " order by o2a.oxpos";

            $aIds = [];
            $rs = $oDb->select($sSelect);
            if ($rs != false && $rs->count() > 0) {
                while (!$rs->EOF) {
                    $aIds[] = $rs->fields[0];
                    $rs->fetchRow();
                }
            }

            return $aIds;
        }
    }
public function getAttributeAssigns ( $ sArtId ) { if ( $ sArtId ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sSelect = "select o2a.oxid from oxobject2attribute as o2a " ; $ sSelect .= "where o2a.oxobjectid = " . $ oDb -> quote ( $ sArtId ) . " order by o2a.oxpos" ; $ aIds = [ ] ; $ rs = $ oDb -> select ( $ sSelect ) ; if ( $ rs != false && $ rs -> count ( ) > 0 ) { while ( ! $ rs -> EOF ) { $ aIds [ ] = $ rs -> fields [ 0 ] ; $ rs -> fetchRow ( ) ; } } return $ aIds ; } }
Returns all oxobject2attribute Ids of article

@param string $sArtId article ids

@return null;
Returns all oxobject2attribute Ids of article