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()
Return Return
(array)
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.
*
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.24.0 | Unknown. |
| 3.15.0 | Introduced. |