1.20.x views_plugin_query.inc | views_plugin_query::set_limit($limit) |
Set a LIMIT on the query, specifying a maximum number of results.
File
- modules/
views/ plugins/ views_plugin_query.inc, line 112 - Defines the base query class, which is the underlying layer in a View.
Class
- views_plugin_query
- Object used to create a SELECT query.
Code
function set_limit($limit) {
$this->limit = $limit;
}