public function views_db_object::get_items in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 includes/view.inc \views_db_object::get_items()
- 6.2 includes/view.inc \views_db_object::get_items()
Get an array of items for the current display.
File
- includes/
view.inc, line 2549 - views_objects Objects that represent a View or part of a view
Class
- views_db_object
- Base class for views' database objects.
Code
public function get_items($type, $display_id = NULL) {
$this
->set_display($display_id);
if (!isset($display_id)) {
$display_id = $this->current_display;
}
// Get info about the types so we can get the right data.
$types = views_object_types();
return $this->display[$display_id]->handler
->get_option($types[$type]['plural']);
}