Classes/Service/LimitService.php
public static function getLimitString($limit)
    {
        if (isset($limit) && !empty($limit)) {
            $limitParts = GeneralUtility::trimExplode(',', $limit);
            if (count($limitParts) === 1) {
                return intval($limitParts[0]);
            }
            if (count($limitParts) === 2) {
                return intval($limitParts[0]) . ',' . intval($limitParts[1]);
            }
        }

        return '';
    }
public static function getLimitString($limit)
    {
        if (isset($limit) && !empty($limit)) {
            $limitParts = GeneralUtility::trimExplode(',', $limit);
            if (count($limitParts) === 1) {
                return intval($limitParts[0]);
            }
            if (count($limitParts) === 2) {
                return intval($limitParts[0]) . ',' . intval($limitParts[1]);
            }
        }

        return '';
    }
public static function getLimitString ( $ limit ) { if ( isset ( $ limit ) && ! empty ( $ limit ) ) { $ limitParts = GeneralUtility :: trimExplode ( ',' , $ limit ) ; if ( count ( $ limitParts ) === 1 ) { return intval ( $ limitParts [ 0 ] ) ; } if ( count ( $ limitParts ) === 2 ) { return intval ( $ limitParts [ 0 ] ) . ',' . intval ( $ limitParts [ 1 ] ) ; } } return '' ; }
Returns the limit statement for database connection

@param string $limit

@return string
Returns the limit statement for database connection