You are here

class ViewsUiFileManagedViewsWizard in Views (for Drupal 7) 7.3

Tests creating managed files views with the wizard.

Hierarchy

Expanded class hierarchy of ViewsUiFileManagedViewsWizard

1 string reference to 'ViewsUiFileManagedViewsWizard'
file_managed.inc in plugins/views_wizard/file_managed.inc

File

plugins/views_wizard/views_ui_file_managed_views_wizard.class.php, line 11
Definition of ViewsUiFileManagedViewsWizard.

View source
class ViewsUiFileManagedViewsWizard extends ViewsUiBaseViewsWizard {
  protected function default_display_options($form, $form_state) {
    $display_options = parent::default_display_options($form, $form_state);

    // Add permission-based access control.
    $display_options['access']['type'] = 'perm';

    // Remove the default fields, since we are customizing them here.
    unset($display_options['fields']);

    /* Field: File: Name */
    $display_options['fields']['filename']['id'] = 'filename';
    $display_options['fields']['filename']['table'] = 'file_managed';
    $display_options['fields']['filename']['field'] = 'filename';
    $display_options['fields']['filename']['label'] = '';
    $display_options['fields']['filename']['alter']['alter_text'] = 0;
    $display_options['fields']['filename']['alter']['make_link'] = 0;
    $display_options['fields']['filename']['alter']['absolute'] = 0;
    $display_options['fields']['filename']['alter']['trim'] = 0;
    $display_options['fields']['filename']['alter']['word_boundary'] = 0;
    $display_options['fields']['filename']['alter']['ellipsis'] = 0;
    $display_options['fields']['filename']['alter']['strip_tags'] = 0;
    $display_options['fields']['filename']['alter']['html'] = 0;
    $display_options['fields']['filename']['hide_empty'] = 0;
    $display_options['fields']['filename']['empty_zero'] = 0;
    $display_options['fields']['filename']['link_to_file'] = 1;
    return $display_options;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ViewsUiBaseViewsWizard::$base_table protected property
ViewsUiBaseViewsWizard::$entity_info protected property
ViewsUiBaseViewsWizard::$entity_type protected property
ViewsUiBaseViewsWizard::$filter_defaults protected property
ViewsUiBaseViewsWizard::$plugin protected property
ViewsUiBaseViewsWizard::$validated_views protected property
ViewsUiBaseViewsWizard::add_displays protected function Add the array of display options to the view, with appropriate overrides.
ViewsUiBaseViewsWizard::alter_display_options protected function Alter the full array of display options before they are added to the view.
ViewsUiBaseViewsWizard::block_display_options protected function 2
ViewsUiBaseViewsWizard::build_display_options protected function Build an array of display options for the view.
ViewsUiBaseViewsWizard::build_filters protected function Build the part of the form that allows the user to select the filters.
ViewsUiBaseViewsWizard::build_form function For AJAX callbacks to build other elements in the "show" form. Overrides ViewsWizardInterface::build_form
ViewsUiBaseViewsWizard::build_form_style protected function Build the part of the form that builds the display format options. 2
ViewsUiBaseViewsWizard::build_sorts protected function Build the part of the form that allows the user to select the sort order.
ViewsUiBaseViewsWizard::create_view function Create a View from values that have been already submitted to validate(). Overrides ViewsWizardInterface::create_view
ViewsUiBaseViewsWizard::default_display_filters protected function
ViewsUiBaseViewsWizard::default_display_filters_user protected function
ViewsUiBaseViewsWizard::default_display_sorts protected function
ViewsUiBaseViewsWizard::default_display_sorts_user protected function
ViewsUiBaseViewsWizard::instantiate_view protected function
ViewsUiBaseViewsWizard::page_display_options protected function 2
ViewsUiBaseViewsWizard::page_feed_display_options protected function
ViewsUiBaseViewsWizard::retrieve_validated_view protected function
ViewsUiBaseViewsWizard::row_style_options protected function Add possible row style options. 2
ViewsUiBaseViewsWizard::set_default_options protected function Sets options for a display and makes them the default options if possible.
ViewsUiBaseViewsWizard::set_override_options protected function Sets options for a display, inheriting from the defaults when possible.
ViewsUiBaseViewsWizard::set_validated_view protected function
ViewsUiBaseViewsWizard::validate function Instantiates a view and validates values. Overrides ViewsWizardInterface::validate
ViewsUiBaseViewsWizard::__construct function Constructor. Overrides ViewsWizardInterface::__construct
ViewsUiFileManagedViewsWizard::default_display_options protected function Most subclasses will need to override this method to provide some fields or a different row plugin. Overrides ViewsUiBaseViewsWizard::default_display_options