LLMS_Database_Query::set_found_results()
Set variables related to total number of results and pages possible with supplied arguments
Description Description
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
protected function set_found_results() { global $wpdb; // if no results bail early b/c no reason to calculate anything if ( ! $this->number_results ) { return; } $this->found_results = absint( $wpdb->get_var( 'SELECT FOUND_ROWS()' ) ); $this->max_pages = absint( ceil( $this->found_results / $this->get( 'per_page' ) ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |