src/Charcoal/Source/Database/DatabasePagination.php
public function sql()
    {
        if ($this->active() && $this->hasLimit()) {
            $limit  = $this->limit();
            $offset = $this->offset();
            return 'LIMIT '.$offset.', '.$limit;
        }

        return '';
    }
public function sql()
    {
        if ($this->active() && $this->hasLimit()) {
            $limit  = $this->limit();
            $offset = $this->offset();
            return 'LIMIT '.$offset.', '.$limit;
        }

        return '';
    }
public function sql ( ) { if ( $ this -> active ( ) && $ this -> hasLimit ( ) ) { $ limit = $ this -> limit ( ) ; $ offset = $ this -> offset ( ) ; return 'LIMIT ' . $ offset . ', ' . $ limit ; } return '' ; }
Converts the pagination into a SQL expression for the LIMIT clause.

@return string A SQL string fragment.
Converts the pagination into a SQL expression for the LIMIT clause .