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;
        }
    }
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;
        }
    }
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 ; } }
get a limit array usable in an sql query
@param  boolean $end ?
@return array|int
get a limit array usable in an sql query