Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring up the $totalCount in dbObject::paginate() #788

Merged
merged 2 commits into from
Oct 11, 2018

Conversation

vstaikov
Copy link
Contributor

@vstaikov vstaikov commented Oct 1, 2018

$currentPage = 1;
dbObject::$pageLimit = 50;

$objects = dbObject::paginate($currentPage);
$totalPages = dbObject::$totalPages;
$totalObjects = dbObject::$totalCount; // we can get total objects now

@avbdr avbdr merged commit 2ab6651 into ThingEngineer:master Oct 11, 2018
@avbdr
Copy link
Collaborator

avbdr commented Oct 11, 2018

thank you. merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants