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)


Top ↑

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' ) ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.