source/Application/Controller/Admin/ListComponentAjax.php
protected function _getData($sCountQ, $sQ)
    {
        $sQ = $this->_addFilter($sQ);
        $sCountQ = $this->_addFilter($sCountQ);

        $aResponse['startIndex'] = $iStart = $this->_getStartIndex();
        $aResponse['sort'] = '_' . $this->_getSortCol();
        $aResponse['dir'] = $this->_getSortDir();

        $iDebug = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iDebug');
        if ($iDebug) {
            $aResponse['countsql'] = $sCountQ;
        }

        $aResponse['records'] = [];

        // skip further execution if no records were found ...
        if (($iTotal = $this->_getTotalCount($sCountQ))) {
            $sQ .= $this->_getSorting();
            $sQ .= $this->_getLimit($iStart);

            if ($iDebug) {
                $aResponse['datasql'] = $sQ;
            }

            $aResponse['records'] = $this->_getDataFields($sQ);
        }

        $aResponse['totalRecords'] = $iTotal;

        return $aResponse;
    }
protected function _getData($sCountQ, $sQ)
    {
        $sQ = $this->_addFilter($sQ);
        $sCountQ = $this->_addFilter($sCountQ);

        $aResponse['startIndex'] = $iStart = $this->_getStartIndex();
        $aResponse['sort'] = '_' . $this->_getSortCol();
        $aResponse['dir'] = $this->_getSortDir();

        $iDebug = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iDebug');
        if ($iDebug) {
            $aResponse['countsql'] = $sCountQ;
        }

        $aResponse['records'] = [];

        // skip further execution if no records were found ...
        if (($iTotal = $this->_getTotalCount($sCountQ))) {
            $sQ .= $this->_getSorting();
            $sQ .= $this->_getLimit($iStart);

            if ($iDebug) {
                $aResponse['datasql'] = $sQ;
            }

            $aResponse['records'] = $this->_getDataFields($sQ);
        }

        $aResponse['totalRecords'] = $iTotal;

        return $aResponse;
    }
protected function _getData ( $ sCountQ , $ sQ ) { $ sQ = $ this -> _addFilter ( $ sQ ) ; $ sCountQ = $ this -> _addFilter ( $ sCountQ ) ; $ aResponse [ 'startIndex' ] = $ iStart = $ this -> _getStartIndex ( ) ; $ aResponse [ 'sort' ] = '_' . $ this -> _getSortCol ( ) ; $ aResponse [ 'dir' ] = $ this -> _getSortDir ( ) ; $ iDebug = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iDebug' ) ; if ( $ iDebug ) { $ aResponse [ 'countsql' ] = $ sCountQ ; } $ aResponse [ 'records' ] = [ ] ; // skip further execution if no records were found ... if ( ( $ iTotal = $ this -> _getTotalCount ( $ sCountQ ) ) ) { $ sQ .= $ this -> _getSorting ( ) ; $ sQ .= $ this -> _getLimit ( $ iStart ) ; if ( $ iDebug ) { $ aResponse [ 'datasql' ] = $ sQ ; } $ aResponse [ 'records' ] = $ this -> _getDataFields ( $ sQ ) ; } $ aResponse [ 'totalRecords' ] = $ iTotal ; return $ aResponse ; }
Formats data array which later will be processed by _outputResponse method

@param string $sCountQ count query
@param string $sQ      data load query

@return array
Formats data array which later will be processed by _outputResponse method