public function getLimit()
    {
        $limit = $this->conf['resultsPerPage'] ? $this->conf['resultsPerPage'] : 10;

        if ($this->pObj->piVars['page']) {
            $start = ($this->pObj->piVars['page'] * $limit) - $limit;
            if ($start < 0) {
                $start = 0;
            }
        }

        $startLimit = array($start, $limit);

        // hook for third party pagebrowsers or for modification $this->pObj->piVars['page'] parameter
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['getLimit'])) {
            foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['getLimit'] as $_classRef) {
                $_procObj = &GeneralUtility::makeInstance($_classRef);
                $_procObj->getLimit($startLimit, $this);
            }
        }

        return $startLimit;
    }
public function getLimit()
    {
        $limit = $this->conf['resultsPerPage'] ? $this->conf['resultsPerPage'] : 10;

        if ($this->pObj->piVars['page']) {
            $start = ($this->pObj->piVars['page'] * $limit) - $limit;
            if ($start < 0) {
                $start = 0;
            }
        }

        $startLimit = array($start, $limit);

        // hook for third party pagebrowsers or for modification $this->pObj->piVars['page'] parameter
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['getLimit'])) {
            foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['getLimit'] as $_classRef) {
                $_procObj = &GeneralUtility::makeInstance($_classRef);
                $_procObj->getLimit($startLimit, $this);
            }
        }

        return $startLimit;
    }
public function getLimit ( ) { $ limit = $ this -> conf [ 'resultsPerPage' ] ? $ this -> conf [ 'resultsPerPage' ] : 10 ; if ( $ this -> pObj -> piVars [ 'page' ] ) { $ start = ( $ this -> pObj -> piVars [ 'page' ] * $ limit ) - $ limit ; if ( $ start < 0 ) { $ start = 0 ; } } $ startLimit = array ( $ start , $ limit ) ; // hook for third party pagebrowsers or for modification $this->pObj->piVars['page'] parameter if ( is_array ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'ke_search' ] [ 'getLimit' ] ) ) { foreach ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'ke_search' ] [ 'getLimit' ] as $ _classRef ) { $ _procObj = & GeneralUtility :: makeInstance ( $ _classRef ) ; $ _procObj -> getLimit ( $ startLimit , $ this ) ; } } return $ startLimit ; }
get limit for where query

@return array
get limit for where query