src/Charcoal/Source/DatabaseSource.php
public function sqlPagination()
    {
        $pager = $this->pagination();
        if (!$pager instanceof DatabasePagination) {
            $pager = $this->createPagination($pager->data());
        }

        $sql = $pager->sql();
        if (strlen($sql) > 0) {
            $sql = ' '.$sql;
        }

        return $sql;
    }
public function sqlPagination()
    {
        $pager = $this->pagination();
        if (!$pager instanceof DatabasePagination) {
            $pager = $this->createPagination($pager->data());
        }

        $sql = $pager->sql();
        if (strlen($sql) > 0) {
            $sql = ' '.$sql;
        }

        return $sql;
    }
public function sqlPagination ( ) { $ pager = $ this -> pagination ( ) ; if ( ! $ pager instanceof DatabasePagination ) { $ pager = $ this -> createPagination ( $ pager -> data ( ) ) ; } $ sql = $ pager -> sql ( ) ; if ( strlen ( $ sql ) > 0 ) { $ sql = ' ' . $ sql ; } return $ sql ; }
Compile the LIMIT clause.

@return string
Compile the LIMIT clause .