class views_display

  1. 3.x includes/view.inc views_display
  2. 2.x includes/view.inc views_display

A display type in a view.

This is just the database storage mechanism, and isn't terribly important to the behavior of the display at all.

Hierarchy

Expanded class hierarchy of views_display

Related topics

6 string references to 'views_display'
view.inc in includes/view.inc
Provides the view object type and associated methods.
views_schema_6000 in ./views.install
Views 2's initial schema. Called directly by views_update_6000() for updates from Drupal 5.
views_schema_6008 in ./views.install
Add the primary key to views_display table.
views_schema_6009 in ./views.install
Enlarge the views_display.display_options field to accomodate a larger set of configurations (e. g. fields, filters, etc.) on a display.
views_update_6008 in ./views.install
Add the primary key to the views_display table.

... See full list

File

includes/view.inc, line 2553
Provides the view object type and associated methods.

View source
class views_display extends views_db_object {
  /**
   * The display handler itself, which has all the methods.
   *
   * @var views_plugin_display
   */
  var $handler;

  /**
   * Stores all options of the display, like fields, filters etc.
   *
   * @var array
   */
  var $display_options;

  var $db_table = 'views_display';
  function views_display($init = TRUE) {
    parent::init($init);
  }

  function options($type, $id, $title) {
    $this->display_plugin = $type;
    $this->id = $id;
    $this->display_title = $title;
  }
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
views_db_object::$db_table public property
views_db_object::add_display function Add a new display handler to the view, automatically creating an id.
views_db_object::add_item function Add an item with a handler to the view.
views_db_object::export_row function Export a loaded row, such as an argument, field or the view itself to PHP code.
views_db_object::generate_display_id function Generate a display id of a certain plugin type.
views_db_object::generate_item_id public static function Generates a unique ID for an item.
views_db_object::get_item function Get the configuration of an item (field/sort/filter/etc) on a given display.
views_db_object::get_items function Get an array of items for the current display.
views_db_object::init function Initialize this object, setting values from schema defaults.
views_db_object::load_row function Load the object with a row from the database.
views_db_object::new_display function Create a new display and a display handler for it.
views_db_object::save_row function Write the row to the database.
views_db_object::set_item function Set the configuration of an item (field/sort/filter/etc) on a given display.
views_db_object::set_item_option function Set an option on an item.
views_display::options function
views_display::views_display function