protected function _getOxcomAdminSearchData($sSql = '', $sType = '')
    {
        $aData = [];
        $oDbRes = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->select($sSql);
        if ($oDbRes != false && $oDbRes->count() > 0) {
            while (!$oDbRes->EOF) {
                $aField = $oDbRes->getFields();
                $aData[] = ['name' => $aField[1], 'oxid' => $aField[0], 'type' => $sType];
                $oDbRes->fetchRow();
            }
        }

        return $aData;
    }
protected function _getOxcomAdminSearchData($sSql = '', $sType = '')
    {
        $aData = [];
        $oDbRes = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->select($sSql);
        if ($oDbRes != false && $oDbRes->count() > 0) {
            while (!$oDbRes->EOF) {
                $aField = $oDbRes->getFields();
                $aData[] = ['name' => $aField[1], 'oxid' => $aField[0], 'type' => $sType];
                $oDbRes->fetchRow();
            }
        }

        return $aData;
    }
protected function _getOxcomAdminSearchData ( $ sSql = '' , $ sType = '' ) { $ aData = [ ] ; $ oDbRes = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> select ( $ sSql ) ; if ( $ oDbRes != false && $ oDbRes -> count ( ) > 0 ) { while ( ! $ oDbRes -> EOF ) { $ aField = $ oDbRes -> getFields ( ) ; $ aData [ ] = [ 'name' => $ aField [ 1 ] , 'oxid' => $ aField [ 0 ] , 'type' => $ sType ] ; $ oDbRes -> fetchRow ( ) ; } } return $ aData ; }
Gets search result as array

@param string $sSql

@return array
Gets search result as array