本文整理匯總了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)));
}
示例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)));
}