src/Charcoal/Source/Database/DatabasePagination.php
public function offset()
    {
        $page   = $this->page();
        $limit  = $this->numPerPage();
        $offset = (($page - 1) * $limit);
        if (PHP_INT_MAX <= $offset) {
            $offset = PHP_INT_MAX;
        }

        return max(0, $offset);
    }
public function offset()
    {
        $page   = $this->page();
        $limit  = $this->numPerPage();
        $offset = (($page - 1) * $limit);
        if (PHP_INT_MAX <= $offset) {
            $offset = PHP_INT_MAX;
        }

        return max(0, $offset);
    }
public function offset ( ) { $ page = $ this -> page ( ) ; $ limit = $ this -> numPerPage ( ) ; $ offset = ( ( $ page - 1 ) * $ limit ) ; if ( PHP_INT_MAX <= $ offset ) { $ offset = PHP_INT_MAX ; } return max ( 0 , $ offset ) ; }
Retrieve the offset from the page number and count.

@return integer
Retrieve the offset from the page number and count .