/** * @static * @param int $current * @return void */ public static function setCurrent($page) { self::$_current = $page < 1 ? 1 : ($page > self::$_total ? self::$_total : $page); }