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

Update RESTv1.php #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcelosboeira
Copy link

Get the batch informations to use [moreResults] => NO_MORE_RESULTS and an count(entityResults)

Get the batch informations to use  [moreResults] => NO_MORE_RESULTS and  an count(entityResults)
@marcelosboeira
Copy link
Author

I used that to show or not the pagination.
Ex.:
// Pagination... if ($obj_itens->str_last_batch->moreResults == 'MORE_RESULTS_AFTER_LIMIT') { $this->set('PAGINATION', "Limit: $pageLimit <br> Cursor: $page <br>Next Cursor: $erro {$obj_itens->getCursor()} <br>".' <a class="btn btn-success" href="?page_exe='.$obj_itens->getCursor().( $url_qry?"&$url_qry":"").'" > Next Page</a>'); } else $this->set('PAGINATION', "");

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.

1 participant