当前位置: 首页>>代码示例>>PHP>>正文


PHP view::new_display方法代码示例

本文整理汇总了PHP中view::new_display方法的典型用法代码示例。如果您正苦于以下问题:PHP view::new_display方法的具体用法?PHP view::new_display怎么用?PHP view::new_display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在view的用法示例。


在下文中一共展示了view::new_display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: exec

 /**
  * @return array
  */
 public function exec()
 {
     $this->_view = views_new_view();
     $this->_view->view_php = '';
     $this->_view->base_table = $this->_type;
     $this->_view->is_cacheable = FALSE;
     $this->_view->api_version = 2;
     $handler = $this->_view->new_display('default', 'Defaults', 'default');
     $this->_view->display['default']->handler->override_option('items_per_page', 0);
     $this->_view->display['default']->handler->override_option('relationships', $this->_relationships);
     $this->_view->display['default']->handler->override_option('fields', $this->_fields);
     $this->_view->display['default']->handler->override_option('sorts', $this->_sorts);
     $this->_view->display['default']->handler->override_option('filters', $this->_filters);
     $dummy = $this->_view->execute_display('default', array());
     $mapping = array();
     foreach ($this->_view->display_handler->handlers['field'] as $field_id => $fieldhandler) {
         $mapping[$fieldhandler->field_alias] = $field_id;
     }
     //    var_dump($mapping);
     //    var_dump($this->_view);
     //    var_dump($this->_view->result);
     //    var_dump($this->_outputMapping);
     //    exit;
     $output = array();
     foreach ($this->_view->result as $row) {
         $newRow = new stdClass();
         //      foreach ($this->_outputMapping as $viewFieldName => $outputFieldName) {
         foreach ($mapping as $viewFieldName => $outputFieldName) {
             $newRow->{$outputFieldName} = $row->{$viewFieldName};
         }
         if (isset($newRow->nid)) {
             $output[$newRow->nid] = $newRow;
             //        $output[$newRow->nid] = $row;
         } else {
             $output[] = $newRow;
             //        $output[] = $row;
         }
     }
     return $output;
 }
开发者ID:raphaelhuefner,项目名称:drupal_programmed_views,代码行数:43,代码来源:programmed_views.class.php

示例2: hook_views_default_views

/**
 * This hook allows modules to provide their own views which can either be used
 * as-is or as a "starter" for users to build from.
 *
 * This hook should be placed in MODULENAME.views_default.inc and it will be
 * auto-loaded. MODULENAME.views_default.inc must be in the directory specified
 * by the 'path' key returned by MODULENAME_views_api(), or the same directory
 * as the .module file, if 'path' is unspecified.
 *
 * The $view->disabled boolean flag indicates whether the View should be
 * enabled (FALSE) or disabled (TRUE) by default.
 *
 * @return
 *   An associative array containing the structures of views, as generated from
 *   the Export tab, keyed by the view name. A best practice is to go through
 *   and add t() to all title and label strings, with the exception of menu
 *   strings.
 */
function hook_views_default_views()
{
    // Begin copy and paste of output from the Export tab of a view.
    $view = new view();
    $view->name = 'frontpage';
    $view->description = 'Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.';
    $view->tag = 'default';
    $view->base_table = 'node';
    $view->human_name = 'Front page';
    $view->core = 0;
    $view->api_version = '3.0';
    $view->disabled = FALSE;
    /* Edit this to true to make a default view disabled initially */
    /* Display: Master */
    $handler = $view->new_display('default', 'Master', 'default');
    $handler->display->display_options['access']['type'] = 'none';
    $handler->display->display_options['cache']['type'] = 'none';
    $handler->display->display_options['query']['type'] = 'views_query';
    $handler->display->display_options['query']['options']['query_comment'] = FALSE;
    $handler->display->display_options['exposed_form']['type'] = 'basic';
    $handler->display->display_options['pager']['type'] = 'full';
    $handler->display->display_options['style_plugin'] = 'default';
    $handler->display->display_options['row_plugin'] = 'node';
    /* Sort criterion: Content: Sticky */
    $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
    $handler->display->display_options['sorts']['sticky']['table'] = 'node';
    $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
    $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
    /* Sort criterion: Content: Post date */
    $handler->display->display_options['sorts']['created']['id'] = 'created';
    $handler->display->display_options['sorts']['created']['table'] = 'node';
    $handler->display->display_options['sorts']['created']['field'] = 'created';
    $handler->display->display_options['sorts']['created']['order'] = 'DESC';
    /* Filter criterion: Content: Promoted to front page */
    $handler->display->display_options['filters']['promote']['id'] = 'promote';
    $handler->display->display_options['filters']['promote']['table'] = 'node';
    $handler->display->display_options['filters']['promote']['field'] = 'promote';
    $handler->display->display_options['filters']['promote']['value'] = '1';
    $handler->display->display_options['filters']['promote']['group'] = 0;
    $handler->display->display_options['filters']['promote']['expose']['operator'] = FALSE;
    /* Filter criterion: Content: Published */
    $handler->display->display_options['filters']['status']['id'] = 'status';
    $handler->display->display_options['filters']['status']['table'] = 'node';
    $handler->display->display_options['filters']['status']['field'] = 'status';
    $handler->display->display_options['filters']['status']['value'] = '1';
    $handler->display->display_options['filters']['status']['group'] = 0;
    $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
    /* Display: Page */
    $handler = $view->new_display('page', 'Page', 'page');
    $handler->display->display_options['path'] = 'frontpage';
    /* Display: Feed */
    $handler = $view->new_display('feed', 'Feed', 'feed');
    $handler->display->display_options['defaults']['title'] = FALSE;
    $handler->display->display_options['title'] = 'Front page feed';
    $handler->display->display_options['pager']['type'] = 'some';
    $handler->display->display_options['style_plugin'] = 'rss';
    $handler->display->display_options['row_plugin'] = 'node_rss';
    $handler->display->display_options['path'] = 'rss.xml';
    $handler->display->display_options['displays'] = array('default' => 'default', 'page' => 'page');
    $handler->display->display_options['sitename_title'] = '1';
    // (Export ends here.)
    // Add view to list of views to provide.
    $views[$view->name] = $view;
    // ...Repeat all of the above for each view the module should provide.
    // At the end, return array of default views.
    return $views;
}
开发者ID:harryboulderdash,项目名称:PlayGFC,代码行数:85,代码来源:views.api.php

示例3: view

<?php

$view = new view();
$view->name = 'project_package_remote_items';
$view->description = 'Table of remote items (e.g. external libraries) included in a given packaged release.';
$view->tag = 'Project package';
$view->base_table = 'project_package_remote_item';
$view->human_name = 'Project package - remote items';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array('name' => 'name', 'url' => 'url');
$handler->display->display_options['style_options']['default'] = 'name';
$handler->display->display_options['style_options']['info'] = array('name' => array('sortable' => 1, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'url' => array('sortable' => 1, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0));
/* Field: Project package remote items: Remote item name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'project_package_remote_item';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['label'] = 'Name';
/* Field: Project package remote items: Remote item URL */
开发者ID:washim,项目名称:techsupport,代码行数:31,代码来源:project_package_remote_items.view.php

示例4: view

/**
 * @file
 * Issues across all projects owned by a user.
 */
$view = new view();
$view->name = 'project_issue_user_projects';
$view->description = 'Project issues for a specific user\'s projects';
$view->tag = 'Project issue';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'project_issue_access_per_user_queue';
$handler->display->display_options['access']['project_issue_user_argument'] = 'uid';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '50';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['style_plugin'] = 'project_issue_table';
$handler->display->display_options['style_options']['columns'] = array('field_project_machine_name' => 'field_project_machine_name', 'title_1' => 'title_1', 'title' => 'title', 'timestamp' => 'title', 'field_issue_status' => 'field_issue_status', 'field_issue_priority' => 'field_issue_priority', 'field_issue_category' => 'field_issue_category', 'field_issue_version' => 'field_issue_version', 'comment_count' => 'comment_count', 'new_comments' => 'comment_count', 'last_comment_timestamp' => 'last_comment_timestamp', 'name' => 'name', 'created' => 'created', 'score' => 'score');
$handler->display->display_options['style_options']['default'] = 'score';
开发者ID:tierce,项目名称:ppbe,代码行数:31,代码来源:project_issue_user_projects.view.php

示例5: view

<?php

$view = new view();
$view->name = 'project_release_download_table';
$view->description = 'Provides tables for the latest release from the recommended branches, the latest releases from any supported branches, and devel';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Project release download table';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array('path' => 'path', 'field_release_version' => 'field_release_version', 'uri' => 'uri', 'uri_1' => 'uri_1', 'filesize' => 'filesize', 'filesize_1' => 'filesize_1', 'extension' => 'extension', 'extension_1' => 'extension', 'timestamp' => 'timestamp', 'view_node' => 'view_node', 'edit_node' => 'view_node');
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array('path' => array('align' => '', 'separator' => '', 'empty_column' => 0), 'field_release_version' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'uri' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'uri_1' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'filesize' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'filesize_1' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'extension' => array('align' => '', 'separator' => ' | ', 'empty_column' => 0), 'extension_1' => array('align' => '', 'separator' => '', 'empty_column' => 0), 'timestamp' => array('sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0), 'view_node' => array('align' => '', 'separator' => ' | ', 'empty_column' => 0), 'edit_node' => array('align' => '', 'separator' => '', 'empty_column' => 0));
$handler->display->display_options['style_options']['override'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
开发者ID:tierce,项目名称:ppbe,代码行数:31,代码来源:project_release_download_table.view.php

示例6: view

<?php

// $Id: project_release_download_table.view.php,v 1.4 2009/12/03 01:53:10 dww Exp $
$view = new view();
$view->name = 'project_release_download_table';
$view->description = 'Provides tables for the latest release from the recommended branches, the latest releases from any supported branches, and development snapshot releases for a project.';
$view->tag = 'Project release';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array('supported_releases_rel' => array('label' => 'supported versions', 'required' => 1, 'id' => 'supported_releases_rel', 'table' => 'project_release_nodes', 'field' => 'supported_releases_rel', 'relationship' => 'none'), 'version_api_tid' => array('label' => 'API compatibility term', 'required' => 1, 'id' => 'version_api_tid', 'table' => 'project_release_nodes', 'field' => 'version_api_tid', 'relationship' => 'none')));
$handler->override_option('fields', array('version' => array('label' => 'Version', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'version', 'table' => 'project_release_nodes', 'field' => 'version', 'relationship' => 'none'), 'files' => array('label' => 'Downloads', 'alter' => array('alter_text' => 1, 'text' => 'Download <span class="filesize">([files-size])</span>', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ' | ', 'link_to_file' => 1, 'max_files' => '1', 'file_sort' => 'fid', 'file_sort_order' => 'DESC', 'exclude' => 0, 'id' => 'files', 'table' => 'project_release_nodes', 'field' => 'files', 'relationship' => 'none'), 'file_timestamp' => array('label' => 'Date', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'Y-M-d', 'file_order' => 'MAX', 'exclude' => 0, 'id' => 'file_timestamp', 'table' => 'project_release_nodes', 'field' => 'file_timestamp', 'relationship' => 'none'), 'view_node' => array('label' => 'Links', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Notes', 'exclude' => 0, 'id' => 'view_node', 'table' => 'node', 'field' => 'view_node', 'relationship' => 'none'), 'edit_node' => array('label' => 'Edit link', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Edit', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'node', 'field' => 'edit_node', 'relationship' => 'none')));
$handler->override_option('sorts', array('weight' => array('order' => 'ASC', 'id' => 'weight', 'table' => 'term_data', 'field' => 'weight', 'relationship' => 'version_api_tid'), 'version_major' => array('order' => 'DESC', 'id' => 'version_major', 'table' => 'project_release_nodes', 'field' => 'version_major', 'relationship' => 'none'), 'version_minor' => array('order' => 'DESC', 'id' => 'version_minor', 'table' => 'project_release_nodes', 'field' => 'version_minor', 'relationship' => 'none'), 'version_patch' => array('order' => 'DESC', 'id' => 'version_patch', 'table' => 'project_release_nodes', 'field' => 'version_patch', 'relationship' => 'none'), 'version_extra_weight' => array('order' => 'DESC', 'id' => 'version_extra_weight', 'table' => 'project_release_nodes', 'field' => 'version_extra_weight', 'relationship' => 'none'), 'version_extra' => array('order' => 'DESC', 'id' => 'version_extra', 'table' => 'project_release_nodes', 'field' => 'version_extra', 'relationship' => 'none')));
$handler->override_option('arguments', array('pid' => array('default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array('count' => TRUE, 'override' => FALSE, 'items_per_page' => 25), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Releases for %1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'node', 'validate_fail' => 'empty', 'break_phrase' => 0, 'not' => 0, 'id' => 'pid', 'table' => 'project_release_nodes', 'field' => 'pid', 'relationship' => 'none', 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array('project_project' => 'project_project'), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', 'validate_argument_node_access' => 1, 'validate_argument_nid_type' => 'nid', 'default_options_div_prefix' => '', 'validate_argument_project_term_vocabulary' => array())));
$handler->override_option('filters', array('status_extra' => array('operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'relationship' => 'none'), 'version_api_tid' => array('operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => 'version_api_tid_op', 'label' => 'Project release: API compatibility term', 'use_operator' => FALSE, 'identifier' => 'version_api_tid', 'remember' => FALSE, 'single' => TRUE, 'optional' => TRUE, 'reduce' => FALSE), 'type' => 'all', 'id' => 'version_api_tid', 'table' => 'project_release_nodes', 'field' => 'version_api_tid', 'override' => array('button' => 'Use default'), 'relationship' => 'none'), 'supported' => array('operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'supported', 'table' => 'project_release_supported_versions', 'field' => 'supported', 'relationship' => 'supported_releases_rel'), 'rebuild' => array('operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'rebuild', 'table' => 'project_release_nodes', 'field' => 'rebuild', 'override' => array('button' => 'Use default'), 'relationship' => 'none')));
$handler->override_option('access', array('type' => 'none', 'role' => array(), 'perm' => 'access projects'));
$handler->override_option('cache', array('type' => 'none'));
$handler->override_option('header_empty', 0);
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '0');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array('grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array('version' => 'version', 'files' => 'files', 'file_timestamp' => 'file_timestamp', 'view_node' => 'view_node', 'edit_node' => 'view_node'), 'info' => array('version' => array('sortable' => 0, 'separator' => ''), 'files' => array('separator' => ''), 'file_timestamp' => array('separator' => ''), 'view_node' => array('separator' => ' | '), 'edit_node' => array('separator' => '')), 'default' => '-1'));
$handler->override_option('row_options', array('inline' => array(), 'separator' => ''));
$handler = $view->new_display('attachment', 'Recommended branches', 'attachment_1');
$handler->override_option('fields', array('version' => array('label' => 'Version', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'version', 'table' => 'project_release_nodes', 'field' => 'version', 'relationship' => 'none'), 'files' => array('label' => 'Downloads', 'alter' => array('alter_text' => 1, 'text' => 'Download <span class="filesize">([files-size])</span>', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'type' => 'separator', 'separator' => ' | ', 'link_to_file' => 1, 'max_files' => '1', 'file_sort' => 'fid', 'file_sort_order' => 'DESC', 'exclude' => 0, 'id' => 'files', 'table' => 'project_release_nodes', 'field' => 'files', 'relationship' => 'none'), 'file_timestamp' => array('label' => 'Date', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'Y-M-d', 'file_order' => 'MAX', 'exclude' => 0, 'id' => 'file_timestamp', 'table' => 'project_release_nodes', 'field' => 'file_timestamp', 'override' => array('button' => 'Use default'), 'relationship' => 'none'), 'view_node' => array('label' => 'Links', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Notes', 'exclude' => 0, 'id' => 'view_node', 'table' => 'node', 'field' => 'view_node', 'relationship' => 'none'), 'edit_node' => array('label' => 'Edit link', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Edit', 'exclude' => 0, 'id' => 'edit_node', 'table' => 'node', 'field' => 'edit_node', 'relationship' => 'none'), 'update_status' => array('label' => 'Status', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'status_text_0' => '', 'show_recommended_0' => 0, 'show_icon_0' => 0, 'status_text_1' => '', 'show_recommended_1' => 0, 'show_icon_1' => 0, 'status_text_2' => 'Not secure', 'show_recommended_2' => 0, 'show_icon_2' => 1, 'exclude' => 0, 'id' => 'update_status', 'table' => 'project_release_nodes', 'field' => 'update_status', 'override' => array('button' => 'Use default'), 'relationship' => 'none')));
$handler->override_option('filters', array('status_extra' => array('operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'relationship' => 'none'), 'version_api_tid' => array('operator' => 'in', 'value' => array(), 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => 'version_api_tid_op', 'label' => 'Project release: API compatibility term', 'use_operator' => FALSE, 'identifier' => 'version_api_tid', 'remember' => FALSE, 'single' => TRUE, 'optional' => TRUE, 'reduce' => FALSE), 'type' => 'all', 'id' => 'version_api_tid', 'table' => 'project_release_nodes', 'field' => 'version_api_tid', 'override' => array('button' => 'Use default'), 'relationship' => 'none'), 'supported' => array('operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'supported', 'table' => 'project_release_supported_versions', 'field' => 'supported', 'relationship' => 'supported_releases_rel'), 'rebuild' => array('operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'rebuild', 'table' => 'project_release_nodes', 'field' => 'rebuild', 'override' => array('button' => 'Use default'), 'relationship' => 'none'), 'release_type' => array('operator' => '=', 'value' => 'recommended', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'release_relationship' => 'base', 'id' => 'release_type', 'table' => 'project_release_supported_versions', 'field' => 'release_type', 'relationship' => 'supported_releases_rel', 'override' => array('button' => 'Use default')), 'recommended' => array('operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'recommended', 'table' => 'project_release_supported_versions', 'field' => 'recommended', 'relationship' => 'supported_releases_rel', 'override' => array('button' => 'Use default'))));
开发者ID:Br3nda,项目名称:drupal-module-project,代码行数:31,代码来源:project_release_download_table.view.php

示例7: view

/**
 * @file
 * Issues that are related to a specific issue.
 */
$view = new view();
$view->name = 'project_issue_issue_relations';
$view->description = 'Project issues that are related to a specific issue.';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Related issues';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '50';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['row_plugin'] = 'project_issue_node';
/* Sort criterion: Content: Nid */
$handler->display->display_options['sorts']['nid']['id'] = 'nid';
$handler->display->display_options['sorts']['nid']['table'] = 'node';
开发者ID:washim,项目名称:techsupport,代码行数:31,代码来源:project_issue_issue_relations.view.php

示例8: view

/**
 * @file
 * List of all releases associated with a particular project.
 */
$view = new view();
$view->name = 'project_release_by_project';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Project releases by project';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Releases for [project]';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '20';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
开发者ID:tierce,项目名称:ppbe,代码行数:31,代码来源:project_release_by_project.view.php

示例9: view

<?php

$view = new view();
$view->name = 'listcourses';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->core = 0;
$view->api_version = '2';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array('field_mat_no_uid' => array('label' => 'Student', 'required' => 0, 'delta' => -1, 'id' => 'field_mat_no_uid', 'table' => 'node_data_field_mat_no', 'field' => 'field_mat_no_uid', 'relationship' => 'none'), 'field_course_instance_nid' => array('label' => 'Course Instance', 'required' => 1, 'delta' => -1, 'id' => 'field_course_instance_nid', 'table' => 'node_data_field_course_instance', 'field' => 'field_course_instance_nid', 'relationship' => 'none'), 'field_lecturer_uid' => array('label' => 'Lecturer', 'required' => 0, 'delta' => -1, 'id' => 'field_lecturer_uid', 'table' => 'node_data_field_lecturer', 'field' => 'field_lecturer_uid', 'relationship' => 'field_course_instance_nid'), 'field_student_gpa_nid' => array('label' => 'Student GPA', 'required' => 0, 'delta' => -1, 'id' => 'field_student_gpa_nid', 'table' => 'node_data_field_student_gpa', 'field' => 'field_student_gpa_nid', 'relationship' => 'none'), 'field_program_ref_gpa_nid' => array('label' => 'Program', 'required' => 0, 'delta' => -1, 'id' => 'field_program_ref_gpa_nid', 'table' => 'node_data_field_program_ref_gpa', 'field' => 'field_program_ref_gpa_nid', 'relationship' => 'field_student_gpa_nid'), 'field_course_id_nid' => array('label' => 'Course nid', 'required' => 1, 'delta' => -1, 'id' => 'field_course_id_nid', 'table' => 'node_data_field_course_id', 'field' => 'field_course_id_nid', 'relationship' => 'field_course_instance_nid'), 'content_profile_rel' => array('label' => 'Content Profile', 'required' => 0, 'type' => 'profile', 'id' => 'content_profile_rel', 'table' => 'users', 'field' => 'content_profile_rel', 'relationship' => 'field_lecturer_uid')));
$handler->override_option('fields', array('field_code_value' => array('label' => 'Course', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_code_value', 'table' => 'node_data_field_code', 'field' => 'field_code_value', 'relationship' => 'field_course_id_nid'), 'field_coursetitle_value' => array('label' => 'Course Title', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_coursetitle_value', 'table' => 'node_data_field_coursetitle', 'field' => 'field_coursetitle_value', 'relationship' => 'field_course_id_nid'), 'field_credit_load_sg_value' => array('label' => 'Credit', 'alter' => array('alter_text' => 1, 'text' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[field_credit_load_sg_value]', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_credit_load_sg_value', 'table' => 'node_data_field_credit_load_sg', 'field' => 'field_credit_load_sg_value', 'relationship' => 'none'), 'field_profile_last_name_value' => array('label' => 'Lecturer', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_profile_last_name_value', 'table' => 'node_data_field_profile_last_name', 'field' => 'field_profile_last_name_value', 'relationship' => 'content_profile_rel'), 'field_profile_first_name_value' => array('label' => 'First Name', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_profile_first_name_value', 'table' => 'node_data_field_profile_first_name', 'field' => 'field_profile_first_name_value', 'relationship' => 'content_profile_rel'), 'field_profile_middle_name_value' => array('label' => 'Middle Name', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_profile_middle_name_value', 'table' => 'node_data_field_profile_middle_name', 'field' => 'field_profile_middle_name_value', 'relationship' => 'content_profile_rel'), 'field_sess_name_value' => array('label' => 'Session', 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_sess_name_value', 'table' => 'node_data_field_sess_name', 'field' => 'field_sess_name_value', 'relationship' => 'field_course_instance_nid'), 'field_semester_name_value' => array('label' => 'Semester', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_semester_name_value', 'table' => 'node_data_field_semester_name', 'field' => 'field_semester_name_value', 'relationship' => 'field_course_instance_nid'), 'field_dropped_value' => array('label' => 'Dropped', 'alter' => array('alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0), 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array('group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE), 'exclude' => 0, 'id' => 'field_dropped_value', 'table' => 'node_data_field_dropped', 'field' => 'field_dropped_value', 'relationship' => 'none')));
$handler->override_option('sorts', array('field_sess_name_value' => array('order' => 'ASC', 'delta' => -1, 'id' => 'field_sess_name_value', 'table' => 'node_data_field_sess_name', 'field' => 'field_sess_name_value', 'relationship' => 'field_course_instance_nid'), 'field_semester_name_value_1' => array('order' => 'ASC', 'delta' => -1, 'id' => 'field_semester_name_value_1', 'table' => 'node_data_field_semester_name', 'field' => 'field_semester_name_value', 'relationship' => 'field_course_instance_nid'), 'field_code_value' => array('order' => 'ASC', 'delta' => -1, 'id' => 'field_code_value', 'table' => 'node_data_field_code', 'field' => 'field_code_value', 'relationship' => 'field_course_id_nid')));
$handler->override_option('filters', array('type' => array('operator' => 'in', 'value' => array('student_grades' => 'student_grades'), 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none'), 'uid_current' => array('operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'uid_current', 'table' => 'users', 'field' => 'uid_current', 'relationship' => 'field_mat_no_uid')));
$handler->override_option('access', array('type' => 'perm', 'perm' => 'view my grades'));
$handler->override_option('cache', array('type' => 'none'));
$handler->override_option('header', '<?php
require_once \'./\' . drupal_get_path(\'module\', \'eduerp\') . \'/student/listcourses_header.inc\';
?>
');
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 1);
$handler->override_option('footer_format', '3');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 100);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array('grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array('field_course_code_value' => 'field_course_code_value', 'field_course_title_value' => 'field_course_title_value', 'field_credit_load_value' => 'field_credit_load_value', 'field_gradeforstudent_value' => 'field_gradeforstudent_value', 'field_sess_name_value' => 'field_sess_name_value', 'field_semester_name_value' => 'field_semester_name_value', 'field_gpaforstudent_value' => 'field_gpaforstudent_value', 'field_cgpaforstudent_value' => 'field_cgpaforstudent_value'), 'info' => array('field_course_code_value' => array('sortable' => 1, 'separator' => ''), 'field_course_title_value' => array('sortable' => 1, 'separator' => ''), 'field_credit_load_value' => array('sortable' => 1, 'separator' => ''), 'field_gradeforstudent_value' => array('sortable' => 1, 'separator' => ''), 'field_sess_name_value' => array('sortable' => 1, 'separator' => ''), 'field_semester_name_value' => array('sortable' => 1, 'separator' => ''), 'field_gpaforstudent_value' => array('sortable' => 1, 'separator' => ''), 'field_cgpaforstudent_value' => array('sortable' => 0, 'separator' => '')), 'default' => '-1'));
$handler = $view->new_display('page', 'Page', 'page_1');
开发者ID:manniru,项目名称:eduerp,代码行数:31,代码来源:VIEWlistcourses.php

示例10: view

/**
 * @file
 *   Default view export.
 */
$view = new view();
$view->name = 'commitlog_commit_items';
$view->description = 'VersionControl Commit Items';
$view->tag = 'VersionControl Core';
$view->base_table = 'versioncontrol_item_revisions';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['grouping'] = '';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: VersionControl Item Revisions: File path */
$handler->display->display_options['fields']['path']['id'] = 'path';
$handler->display->display_options['fields']['path']['table'] = 'versioncontrol_item_revisions';
$handler->display->display_options['fields']['path']['field'] = 'path';
$handler->display->display_options['fields']['path']['label'] = '';
$handler->display->display_options['fields']['path']['link_type'] = 'log';
开发者ID:xanthusblack,项目名称:mdwtest,代码行数:31,代码来源:commitlog_commit_items.view.php

示例11: view

// $Id: project_types.view.php,v 1.1 2009/11/25 16:44:51 dww Exp $
/**
 * @file
 * An overview listing of site-wide project types with descriptions.
 */
$view = new view();
$view->name = 'project_types';
$view->description = 'A list of project types with descriptions (currently broken).';
$view->tag = 'project';
$view->view_php = '';
$view->base_table = 'term_data';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = TRUE;
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array('name' => array('id' => 'name', 'table' => 'term_data', 'field' => 'name', 'label' => '', 'relationship' => 'none', 'link_to_taxonomy' => 1), 'description' => array('id' => 'description', 'table' => 'term_data', 'field' => 'description', 'label' => '', 'relationship' => 'none')));
$handler->override_option('filters', array('project_type' => array('operator' => 'in', 'value' => array('1' => 1), 'group' => 0, 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'include' => array('top_level' => 'top_level'), 'id' => 'project_type', 'table' => 'term_data', 'field' => 'project_type', 'relationship' => 'none')));
$handler->override_option('access', array('type' => 'perm', 'role' => array(), 'perm' => 'browse project listings'));
$handler->override_option('title', 'Project types');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 30);
$handler->override_option('use_pager', '1');
$handler->override_option('distinct', 1);
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array('type' => 'ul'));
$handler->override_option('row_options', array('inline' => array(), 'separator' => ''));
$handler = $view->new_display('page', 'Page: Project types', 'page');
$handler->override_option('path', 'project');
$handler->override_option('menu', array('type' => 'normal', 'title' => 'Projects', 'weight' => '0'));
$handler->override_option('tab_options', array('type' => 'none', 'title' => '', 'weight' => 0));
开发者ID:Br3nda,项目名称:drupal-module-project,代码行数:30,代码来源:project_types.view.php

示例12: view

/**
 * @file
 *   Default view export.
 */
$view = new view();
$view->name = 'commitlog_user_commits';
$view->description = 'Commitlog Global Commit Log';
$view->tag = 'VersionControl Core';
$view->base_table = 'versioncontrol_operations';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: VersionControl Operations: Attribution */
$handler->display->display_options['fields']['attribution']['id'] = 'attribution';
$handler->display->display_options['fields']['attribution']['table'] = 'versioncontrol_operations';
开发者ID:xanthusblack,项目名称:mdwtest,代码行数:31,代码来源:commitlog_user_commits.view.php

示例13: view

<?php

$view = new view();
$view->name = 'home_featured_forum_posts';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Home Featured Forum Posts';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options = array('title' => 'Forum Discussions', 'use_more_always' => FALSE, 'access' => array('type' => 'perm'), 'cache' => array('type' => 'none'), 'query' => array('options' => array('query_comment' => FALSE)), 'exposed_form' => array('type' => 'basic'), 'pager' => array('type' => 'some', 'options' => array('items_per_page' => 5)), 'style_plugin' => 'default', 'row_plugin' => 'fields', 'fields' => array('path' => array('id' => 'path', 'table' => 'node', 'field' => 'path', 'label' => '', 'exclude' => TRUE, 'element_label_colon' => FALSE), 'title' => array('id' => 'title', 'table' => 'node', 'field' => 'title', 'label' => '', 'exclude' => TRUE, 'alter' => array('word_boundary' => FALSE, 'ellipsis' => FALSE), 'element_label_colon' => FALSE), 'last_updated' => array('id' => 'last_updated', 'table' => 'node_comment_statistics', 'field' => 'last_updated', 'label' => '', 'alter' => array('alter_text' => TRUE, 'text' => "[title]<br>\n[last_updated]"), 'element_label_colon' => FALSE, 'date_format' => 'time ago'), 'comment_count' => array('id' => 'comment_count', 'table' => 'node_comment_statistics', 'field' => 'comment_count', 'label' => '', 'alter' => array('alter_text' => TRUE, 'text' => "<div class=\"comment-count\">\n[comment_count]\n</div>", 'make_link' => TRUE, 'path' => '[path]', 'absolute' => TRUE), 'element_label_colon' => FALSE)), 'sorts' => array('status' => array('id' => 'status', 'table' => 'node', 'field' => 'status', 'order' => 'DESC'), 'promote' => array('id' => 'promote', 'table' => 'node', 'field' => 'promote', 'order' => 'DESC')), 'filters' => array('status' => array('id' => 'status', 'table' => 'node', 'field' => 'status', 'value' => 1, 'group' => 0, 'expose' => array('operator' => FALSE)), 'type' => array('id' => 'type', 'table' => 'node', 'field' => 'type', 'value' => array('forum' => 'forum'))));
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
开发者ID:nevetS,项目名称:flame,代码行数:17,代码来源:home_featured_forum_posts.php

示例14: view

<?php

/**
 * @file
 * List of all releases associated with a particular project.
 */
$view = new view();
$view->name = 'project_release_by_project';
$view->description = 'List the project release nodes associated with a particular project.';
$view->tag = 'Project release';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE;
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array('nid' => array('id' => 'nid', 'table' => 'node', 'field' => 'nid', 'label' => 'Nid', 'relationship' => 'none', 'link_to_node' => 0), 'title' => array('id' => 'title', 'table' => 'node', 'field' => 'title', 'label' => 'Title', 'relationship' => 'none', 'link_to_node' => 0), 'version' => array('id' => 'version', 'table' => 'project_release_nodes', 'field' => 'version', 'label' => 'Version string', 'relationship' => 'none', 'link_to_node' => 1)));
$handler->override_option('sorts', array('created' => array('id' => 'created', 'table' => 'node', 'field' => 'created', 'order' => 'DESC', 'granularity' => 'minute', 'relationship' => 'none')));
$handler->override_option('arguments', array('pid' => array('default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array('count' => TRUE, 'override' => FALSE, 'items_per_page' => 25), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Releases for %1', 'breadcrumb' => 'project', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'project_nid', 'validate_fail' => 'empty', 'break_phrase' => 0, 'not' => 0, 'id' => 'pid', 'table' => 'project_release_nodes', 'field' => 'pid', 'relationship' => 'none', 'default_argument_fixed' => '', 'default_argument_php' => '')));
$handler->override_option('filters', array('type' => array('id' => 'type', 'table' => 'node', 'field' => 'type', 'operator' => 'in', 'value' => array('project_release' => 'project_release'), 'group' => 0, 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'relationship' => 'none', 'expose_button' => array('button' => 'Expose')), 'status_extra' => array('operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array('operator' => FALSE, 'label' => ''), 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', 'relationship' => 'none'), 'project_release_api_version' => array('operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array('use_operator' => 0, 'operator' => 'project_release_api_version_op', 'identifier' => 'api_version', 'label' => 'API version', 'optional' => 1, 'single' => 0, 'remember' => 0, 'reduce' => 0), 'type' => 'select', 'reduce_duplicates' => TRUE, 'id' => 'project_release_api_version', 'table' => 'term_node', 'field' => 'project_release_api_version', 'hierarchy' => 0, 'relationship' => 'none')));
$handler->override_option('access', array('type' => 'none', 'role' => array(), 'perm' => 'access projects'));
$handler->override_option('empty', 'There are no published releases for this project.');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 20);
$handler->override_option('use_pager', '1');
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array('teaser' => 1, 'links' => 1));
$handler = $view->new_display('page', 'Releases for *project*', 'page');
$handler->override_option('path', 'node/%/release');
$handler->override_option('menu', array('type' => 'none', 'title' => '', 'description' => '', 'weight' => '0', 'name' => 'navigation'));
$handler->override_option('tab_options', array('type' => 'none', 'title' => '', 'description' => '', 'weight' => 0));
开发者ID:edchacon,项目名称:scratchpads,代码行数:31,代码来源:project_release_by_project.view.php

示例15: view

<?php

// $Id: signup_user_admin_list.view.php,v 1.1.2.1 2009/10/03 02:27:43 dww Exp $
/**
 * @file
 * Administrative list of all users signed up for a given node.
 */
$view = new view();
$view->name = 'signup_user_admin_list';
$view->description = t('Administrative list of all users signed up for a given node.');
$view->tag = 'Signup';
$view->view_php = '';
$view->base_table = 'signup_log';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE;
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array('nid' => array('label' => 'Signup node', 'required' => 1, 'id' => 'nid', 'table' => 'signup_log', 'field' => 'nid', 'relationship' => 'none'), 'uid' => array('label' => 'Signup user', 'required' => 1, 'id' => 'uid', 'table' => 'signup_log', 'field' => 'uid', 'relationship' => 'none')));
$handler->override_option('fields', array('name' => array('label' => 'Name', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'uid'), 'signup_time' => array('label' => 'Signup time', 'date_format' => 'small', 'custom_date_format' => '', 'exclude' => 0, 'id' => 'signup_time', 'table' => 'signup_log', 'field' => 'signup_time', 'relationship' => 'none'), 'form_data' => array('label' => 'Additional info', 'type' => 'ul', 'separator' => ', ', 'empty' => '', 'exclude' => 0, 'id' => 'form_data', 'table' => 'signup_log', 'field' => 'form_data', 'relationship' => 'none', 'form_data_fieldname' => ''), 'attended' => array('label' => 'Attendance', 'exclude' => 0, 'id' => 'attended', 'table' => 'signup_log', 'field' => 'attended', 'relationship' => 'none'), 'edit_link' => array('label' => 'Operations', 'text' => '', 'exclude' => 0, 'id' => 'edit_link', 'table' => 'signup_log', 'field' => 'edit_link', 'relationship' => 'none')));
$handler->override_option('arguments', array('nid' => array('default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'signup_status', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'nid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array(), 'validate_argument_type' => 'tid', 'validate_argument_signup_status' => 'any', 'validate_argument_signup_node_access' => 1, 'validate_argument_php' => '')));
$handler->override_option('access', array('type' => 'none'));
$handler->override_option('items_per_page', 100);
$handler->override_option('use_pager', 1);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array('grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'desc', 'columns' => array('name' => 'name', 'signup_time' => 'signup_time', 'form_data' => 'form_data', 'attended' => 'attended', 'edit_link' => 'edit_link'), 'info' => array('name' => array('sortable' => 1, 'separator' => ''), 'signup_time' => array('sortable' => 1, 'separator' => ''), 'form_data' => array('separator' => ''), 'attended' => array('sortable' => 1, 'separator' => ''), 'edit_link' => array('separator' => '')), 'default' => 'signup_time'));
开发者ID:nimish321,项目名称:openscholar,代码行数:25,代码来源:signup_user_admin_list.view.php


注:本文中的view::new_display方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。