source/Application/Controller/Admin/ListComponentAjax.php
protected function _getVisibleColNames()
    {
        $aColNames = $this->_getColNames();
        $aUserCols = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('aCols');
        $aVisibleCols = [];

        // user defined some cols to load ?
        if (is_array($aUserCols)) {
            foreach ($aUserCols as $iKey => $sCol) {
                $iCol = ( int ) str_replace('_', '', $sCol);
                if (isset($aColNames[$iCol]) && !$aColNames[$iCol][4]) {
                    $aVisibleCols[$iCol] = $aColNames[$iCol];
                }
            }
        }

        // no user defined valid cols ? setting defauls ..
        if (!count($aVisibleCols)) {
            foreach ($aColNames as $sName => $aCol) {
                // visible ?
                if ($aCol[1] && !$aColNames[$sName][4]) {
                    $aVisibleCols[$sName] = $aCol;
                }
            }
        }

        return $aVisibleCols;
    }
protected function _getVisibleColNames()
    {
        $aColNames = $this->_getColNames();
        $aUserCols = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('aCols');
        $aVisibleCols = [];

        // user defined some cols to load ?
        if (is_array($aUserCols)) {
            foreach ($aUserCols as $iKey => $sCol) {
                $iCol = ( int ) str_replace('_', '', $sCol);
                if (isset($aColNames[$iCol]) && !$aColNames[$iCol][4]) {
                    $aVisibleCols[$iCol] = $aColNames[$iCol];
                }
            }
        }

        // no user defined valid cols ? setting defauls ..
        if (!count($aVisibleCols)) {
            foreach ($aColNames as $sName => $aCol) {
                // visible ?
                if ($aCol[1] && !$aColNames[$sName][4]) {
                    $aVisibleCols[$sName] = $aCol;
                }
            }
        }

        return $aVisibleCols;
    }
protected function _getVisibleColNames ( ) { $ aColNames = $ this -> _getColNames ( ) ; $ aUserCols = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'aCols' ) ; $ aVisibleCols = [ ] ; // user defined some cols to load ? if ( is_array ( $ aUserCols ) ) { foreach ( $ aUserCols as $ iKey => $ sCol ) { $ iCol = ( int ) str_replace ( '_' , '' , $ sCol ) ; if ( isset ( $ aColNames [ $ iCol ] ) && ! $ aColNames [ $ iCol ] [ 4 ] ) { $ aVisibleCols [ $ iCol ] = $ aColNames [ $ iCol ] ; } } } // no user defined valid cols ? setting defauls .. if ( ! count ( $ aVisibleCols ) ) { foreach ( $ aColNames as $ sName => $ aCol ) { // visible ? if ( $ aCol [ 1 ] && ! $ aColNames [ $ sName ] [ 4 ] ) { $ aVisibleCols [ $ sName ] = $ aCol ; } } } return $ aVisibleCols ; }
Returns array of col names which are requested by AJAX call and will be fetched from DB

@return array
Returns array of col names which are requested by AJAX call and will be fetched from DB