PHP Class Devise\Support\Sortable\EloquentBuilder

..
Inheritance: extends Illuminate\Database\Eloquent\Builder
显示文件 Open project: devisephp/cms Class Usage Examples

Public Methods

Method Description
paginate ( integer $perPage = null, array $columns = ['*'], string $pageName = 'page', $page = null ) : Illuminate\Pagination\Paginator Get a paginator for the "select" statement.

Protected Methods

Method Description
callParentPagination ( integer $perPage, array $columns ) : Illuminate\Pagination\Paginator Wrapper method so we can call the parent's paginate method and also mock it in mockery too so we don't have to fiddle faddle with Eloquent underneath

Method Details

callParentPagination() protected method

Wrapper method so we can call the parent's paginate method and also mock it in mockery too so we don't have to fiddle faddle with Eloquent underneath
protected callParentPagination ( integer $perPage, array $columns ) : Illuminate\Pagination\Paginator
$perPage integer
$columns array
return Illuminate\Pagination\Paginator

paginate() public method

Get a paginator for the "select" statement.
public paginate ( integer $perPage = null, array $columns = ['*'], string $pageName = 'page', $page = null ) : Illuminate\Pagination\Paginator
$perPage integer
$columns array
$pageName string
return Illuminate\Pagination\Paginator