當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ImportExportPlugin::getPubIdDisplayType方法代碼示例

本文整理匯總了PHP中ImportExportPlugin::getPubIdDisplayType方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImportExportPlugin::getPubIdDisplayType方法的具體用法?PHP ImportExportPlugin::getPubIdDisplayType怎麽用?PHP ImportExportPlugin::getPubIdDisplayType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ImportExportPlugin的用法示例。


在下文中一共展示了ImportExportPlugin::getPubIdDisplayType方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * @copydoc PKPHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     // Basic grid configuration.
     $this->setTitle('plugins.importexport.common.export.issues');
     // Load submission-specific translations.
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_APP_MANAGER);
     $pluginCategory = $request->getUserVar('category');
     $pluginPathName = $request->getUserVar('plugin');
     $this->_plugin = PluginRegistry::loadPlugin($pluginCategory, $pluginPathName);
     assert(isset($this->_plugin));
     // Fetch the authorized roles.
     $authorizedRoles = $this->getAuthorizedContextObject(ASSOC_TYPE_USER_ROLES);
     // Grid columns.
     $cellProvider = new PubIdExportIssuesListGridCellProvider($this->_plugin, $authorizedRoles);
     $this->addColumn(new GridColumn('identification', 'issue.issue', null, null, $cellProvider, array('html' => true, 'alignment' => COLUMN_ALIGNMENT_LEFT)));
     $this->addColumn(new GridColumn('published', 'editor.issues.published', null, null, $cellProvider, array('html' => true, 'alignment' => COLUMN_ALIGNMENT_LEFT)));
     $this->addColumn(new GridColumn('pubId', null, $this->_plugin->getPubIdDisplayType(), null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 15)));
     $this->addColumn(new GridColumn('status', 'common.status', null, null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 10)));
 }
開發者ID:bkroll,項目名稱:ojs,代碼行數:23,代碼來源:PubIdExportIssuesListGridHandler.inc.php

示例2: initialize

 /**
  * @copydoc PKPHandler::initialize()
  */
 function initialize($request)
 {
     parent::initialize($request);
     $context = $request->getContext();
     // Basic grid configuration.
     $this->setTitle('plugins.importexport.common.export.articles');
     // Load submission-specific translations.
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_SUBMISSION, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_APP_MANAGER);
     $pluginCategory = $request->getUserVar('category');
     $pluginPathName = $request->getUserVar('plugin');
     $this->_plugin = PluginRegistry::loadPlugin($pluginCategory, $pluginPathName);
     assert(isset($this->_plugin));
     // Fetch the authorized roles.
     $authorizedRoles = $this->getAuthorizedContextObject(ASSOC_TYPE_USER_ROLES);
     // Grid columns.
     $cellProvider = new PubIdExportRepresentationsListGridCellProvider($this->_plugin, $authorizedRoles);
     $this->addColumn(new GridColumn('id', null, __('common.id'), 'controllers/grid/gridCell.tpl', $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 10)));
     $this->addColumn(new GridColumn('title', 'grid.submission.itemTitle', null, null, $cellProvider, array('html' => true, 'alignment' => COLUMN_ALIGNMENT_LEFT)));
     $this->addColumn(new GridColumn('issue', 'issue.issue', null, null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 20)));
     $this->addColumn(new GridColumn('galley', 'submission.layout.galleyLabel', null, null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 20)));
     $this->addColumn(new GridColumn('pubId', null, $this->_plugin->getPubIdDisplayType(), null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 15)));
     $this->addColumn(new GridColumn('status', 'common.status', null, null, $cellProvider, array('alignment' => COLUMN_ALIGNMENT_LEFT, 'width' => 10)));
 }
開發者ID:bkroll,項目名稱:ojs,代碼行數:26,代碼來源:PubIdExportRepresentationsListGridHandler.inc.php


注:本文中的ImportExportPlugin::getPubIdDisplayType方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。