public static function setLimit($ItLimit = 50, $ItPage = 1) { if (!empty(self::$StLimit)) { self::$StLimit = NULL; } $ItLimit = self::NumberValidate($ItLimit, EXC_INVALID_LIMIT, TRUE); $ItPage = self::NumberValidate($ItPage, EXC_INVALID_PAGE, TRUE); $ItStart = ($ItPage - 1) * $ItLimit; self::$StLimit = " LIMIT {$ItStart}, {$ItLimit}; "; }