source/Application/Model/Search.php
public function getSearchArticles($sSearchParamForQuery = false, $sInitialSearchCat = false, $sInitialSearchVendor = false, $sInitialSearchManufacturer = false, $sSortBy = false)
    {
        // sets active page
        $this->iActPage = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('pgNr');
        $this->iActPage = ($this->iActPage < 0) ? 0 : $this->iActPage;

        // load only articles which we show on screen
        //setting default values to avoid possible errors showing article list
        $iNrofCatArticles = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
        $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;

        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->setSqlLimit($iNrofCatArticles * $this->iActPage, $iNrofCatArticles);

        $sSelect = $this->_getSearchSelect($sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer, $sSortBy);
        if ($sSelect) {
            $oArtList->selectString($sSelect);
        }

        return $oArtList;
    }
public function getSearchArticles($sSearchParamForQuery = false, $sInitialSearchCat = false, $sInitialSearchVendor = false, $sInitialSearchManufacturer = false, $sSortBy = false)
    {
        // sets active page
        $this->iActPage = (int) \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('pgNr');
        $this->iActPage = ($this->iActPage < 0) ? 0 : $this->iActPage;

        // load only articles which we show on screen
        //setting default values to avoid possible errors showing article list
        $iNrofCatArticles = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iNrofCatArticles');
        $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;

        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->setSqlLimit($iNrofCatArticles * $this->iActPage, $iNrofCatArticles);

        $sSelect = $this->_getSearchSelect($sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer, $sSortBy);
        if ($sSelect) {
            $oArtList->selectString($sSelect);
        }

        return $oArtList;
    }
public function getSearchArticles ( $ sSearchParamForQuery = false , $ sInitialSearchCat = false , $ sInitialSearchVendor = false , $ sInitialSearchManufacturer = false , $ sSortBy = false ) { // sets active page $ this -> iActPage = ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'pgNr' ) ; $ this -> iActPage = ( $ this -> iActPage < 0 ) ? 0 : $ this -> iActPage ; // load only articles which we show on screen //setting default values to avoid possible errors showing article list $ iNrofCatArticles = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iNrofCatArticles' ) ; $ iNrofCatArticles = $ iNrofCatArticles ? $ iNrofCatArticles : 10 ; $ oArtList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oArtList -> setSqlLimit ( $ iNrofCatArticles * $ this -> iActPage , $ iNrofCatArticles ) ; $ sSelect = $ this -> _getSearchSelect ( $ sSearchParamForQuery , $ sInitialSearchCat , $ sInitialSearchVendor , $ sInitialSearchManufacturer , $ sSortBy ) ; if ( $ sSelect ) { $ oArtList -> selectString ( $ sSelect ) ; } return $ oArtList ; }
Returns a list of articles according to search parameters. Returns matched

@param string $sSearchParamForQuery       query parameter
@param string $sInitialSearchCat          initial category to seearch in
@param string $sInitialSearchVendor       initial vendor to seearch for
@param string $sInitialSearchManufacturer initial Manufacturer to seearch for
@param string $sSortBy                    sort by

@return ArticleList
Returns a list of articles according to search parameters . Returns matched