\Vegas\Paginator\AdapterMongo

Class Mongo

Summary

Methods
Properties
Constants
__construct()
getPaginate()
getPreviousPage()
getNextPage()
getTotalPages()
setCurrentPage()
getResults()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct( $config)

Constructor Sets config as class properties

Parameters

$config

getPaginate()

getPaginate()

{@inheritdoc}

getPreviousPage()

getPreviousPage() : integer|null

Returns previous page number

Returns

integer|null

getNextPage()

getNextPage() : integer|null

Returns next page number

Returns

integer|null

getTotalPages()

getTotalPages() : integer

Returns number of pages

Returns

integer

setCurrentPage()

setCurrentPage(integer $page) : $this

Sets current page

Parameters

integer $page

Returns

$this

getResults()

getResults() : array

Returns results for current page

Returns

array