source/Application/Model/AttributeList.php
protected function _createAttributeListFromSql($sSelect)
    {
        $aAttributes = [];
        $rs = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->select($sSelect);
        if ($rs != false && $rs->count() > 0) {
            while (!$rs->EOF) {
                if (!isset($aAttributes[$rs->fields[0]])) {
                    $aAttributes[$rs->fields[0]] = new stdClass();
                }

                $aAttributes[$rs->fields[0]]->title = $rs->fields[1];
                if (!isset($aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]])) {
                    $aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]] = new stdClass();
                }
                $aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]]->value = $rs->fields[2];
                $rs->fetchRow();
            }
        }

        return $aAttributes;
    }
protected function _createAttributeListFromSql($sSelect)
    {
        $aAttributes = [];
        $rs = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->select($sSelect);
        if ($rs != false && $rs->count() > 0) {
            while (!$rs->EOF) {
                if (!isset($aAttributes[$rs->fields[0]])) {
                    $aAttributes[$rs->fields[0]] = new stdClass();
                }

                $aAttributes[$rs->fields[0]]->title = $rs->fields[1];
                if (!isset($aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]])) {
                    $aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]] = new stdClass();
                }
                $aAttributes[$rs->fields[0]]->aProd[$rs->fields[3]]->value = $rs->fields[2];
                $rs->fetchRow();
            }
        }

        return $aAttributes;
    }
protected function _createAttributeListFromSql ( $ sSelect ) { $ aAttributes = [ ] ; $ rs = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> select ( $ sSelect ) ; if ( $ rs != false && $ rs -> count ( ) > 0 ) { while ( ! $ rs -> EOF ) { if ( ! isset ( $ aAttributes [ $ rs -> fields [ 0 ] ] ) ) { $ aAttributes [ $ rs -> fields [ 0 ] ] = new stdClass ( ) ; } $ aAttributes [ $ rs -> fields [ 0 ] ] -> title = $ rs -> fields [ 1 ] ; if ( ! isset ( $ aAttributes [ $ rs -> fields [ 0 ] ] -> aProd [ $ rs -> fields [ 3 ] ] ) ) { $ aAttributes [ $ rs -> fields [ 0 ] ] -> aProd [ $ rs -> fields [ 3 ] ] = new stdClass ( ) ; } $ aAttributes [ $ rs -> fields [ 0 ] ] -> aProd [ $ rs -> fields [ 3 ] ] -> value = $ rs -> fields [ 2 ] ; $ rs -> fetchRow ( ) ; } } return $ aAttributes ; }
Fills array with keys and products with value

@param string $sSelect SQL select

@return array $aAttributes
Fills array with keys and products with value