LLMS_Database_Query::sanitize_id_array( mixed $ids = array() )

Sanitize input to ensure an array of absints.


Parameters Parameters

$ids

(mixed) (Optional) String/Int or array of strings/ints.

Default value: array()


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.database.query.php

			empty( $this->count_query ) &&
			! $has_sql_calc
		) {
			_doing_it_wrong(
				get_class( $this ) . '::prepare_query',
				sprintf(
					/* translators: %s: The query subclass name. */
					'Subclasses of LLMS_Database_Query should set $this->count_query in prepare_query() when no_found_rows is not true. %s does not set count_query, so get_found_results() and get_max_pages() will return 0.',
					get_class( $this )
				),
				'[version]'
			);
		}
	}

	/**
	 * Gets information about properties that used to be public and have been replaced with public getters.
	 *
	 * Used by `__get()` and `__set()` and will be removed when these are properly removed in the next
	 * major release.
	 *

Top ↑

Changelog Changelog

Changelog
Version Description
3.24.0 Unknown.
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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