public function getLimit($end = false)
    {
        $bottom = ($this->maxPerPage * ($this->pageCurrent - 1));
        $top = $this->maxPerPage;
        if ($end === false) {
            return array($bottom, $top);
        }
        if ($end === 0) {
            return $bottom;
        }
        if ($end === 1) {
            return $top;
        }
    }