本文整理汇总了PHP中GridHandler::renderFilter方法的典型用法代码示例。如果您正苦于以下问题:PHP GridHandler::renderFilter方法的具体用法?PHP GridHandler::renderFilter怎么用?PHP GridHandler::renderFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridHandler
的用法示例。
在下文中一共展示了GridHandler::renderFilter方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderFilter
/**
* @copyDoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
$workflowStages = WorkflowStageDAO::getWorkflowStageTranslationKeys();
$workflowStages[0] = 'workflow.stage.any';
ksort($workflowStages);
$filterColumns = $this->getFilterColumns();
$filterData = array('columns' => $filterColumns, 'workflowStages' => $workflowStages, 'gridId' => $this->getId());
return parent::renderFilter($request, $filterData);
}
示例2: renderFilter
/**
* @see GridHandler::renderFilter()
*/
function renderFilter($request)
{
// Get filter data.
import('classes.security.RoleDAO');
$roleOptions = array(0 => 'grid.user.allRoles') + RoleDAO::getRoleNames(true);
$filterData = array('roleOptions' => $roleOptions);
return parent::renderFilter($request, $filterData);
}
示例3: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request)
{
$context = $request->getContext();
$userGroupDao = DAORegistry::getDAO('UserGroupDAO');
$userGroups = $userGroupDao->getByContextId($context->getId());
$userGroupOptions = array('' => __('grid.user.allRoles'));
while ($userGroup = $userGroups->next()) {
$userGroupOptions[$userGroup->getId()] = $userGroup->getLocalizedName();
}
// Import PKPUserDAO to define the USER_FIELD_* constants.
import('lib.pkp.classes.user.PKPUserDAO');
$fieldOptions = array(USER_FIELD_FIRSTNAME => 'user.firstName', USER_FIELD_LASTNAME => 'user.lastName', USER_FIELD_USERNAME => 'user.username', USER_FIELD_EMAIL => 'user.email');
$matchOptions = array('contains' => 'form.contains', 'is' => 'form.is');
$filterData = array('userGroupOptions' => $userGroupOptions, 'fieldOptions' => $fieldOptions, 'matchOptions' => $matchOptions);
return parent::renderFilter($request, $filterData);
}
开发者ID:relaciones-internacionales-journal,项目名称:pkp-lib,代码行数:19,代码来源:ExportableUsersGridHandler.inc.php
示例4: renderFilter
/**
* @see GridHandler::renderFilter()
*/
function renderFilter($request)
{
$categoriesSymbolic = $categories = PluginRegistry::getCategories();
$categories = array('all' => __('grid.plugin.allCategories'));
foreach ($categoriesSymbolic as $category) {
$categories[$category] = __("plugins.categories.{$category}");
}
$filterData = array('categories' => $categories);
return parent::renderFilter($request, $filterData);
}
示例5: renderFilter
/**
* @see GridHandler::renderFilter()
*/
function renderFilter($request)
{
// Get filter data.
import('classes.security.RoleDAO');
$roleOptions = array(0 => 'grid.user.allPermissionLevels') + RoleDAO::getRoleNames(true);
// Reader roles are not important for stage assignments.
if (array_key_exists(ROLE_ID_READER, $roleOptions)) {
unset($roleOptions[ROLE_ID_READER]);
}
$filterData = array('roleOptions' => $roleOptions);
$workflowStages = array(0 => 'grid.userGroup.allStages') + WorkflowStageDAO::getWorkflowStageTranslationKeys();
$filterData['stageOptions'] = $workflowStages;
return parent::renderFilter($request, $filterData);
}
示例6: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request)
{
return parent::renderFilter($request, $this->getFilterSelectionData($request));
}
示例7: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
$context = $request->getContext();
$issueDao = DAORegistry::getDAO('IssueDAO');
$issuesIterator = $issueDao->getPublishedIssues($context->getId());
$issues = $issuesIterator->toArray();
foreach ($issues as $issue) {
$issueOptions[$issue->getId()] = $issue->getIssueIdentification();
}
$issueOptions[0] = __('plugins.importexport.common.filter.issue');
ksort($issueOptions);
$statusNames = $this->_plugin->getStatusNames();
$filterColumns = $this->getFilterColumns();
$allFilterData = array_merge($filterData, array('columns' => $filterColumns, 'issues' => $issueOptions, 'status' => $statusNames, 'gridId' => $this->getId()));
return parent::renderFilter($request, $allFilterData);
}
示例8: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
$press = $request->getRouter()->getContext($request);
$filterData = array_merge($filterData, array('searchText' => $request->getUserVar('searchText'), 'featured' => $request->getUserVar('featured'), 'newReleased' => $request->getUserVar('newReleased')));
return parent::renderFilter($request, $filterData);
}
示例9: renderFilter
/**
* @copyDoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
return parent::renderFilter($request, array('columns' => $this->getFilterColumns(), 'gridId' => $this->getId()));
}
示例10: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
$submission = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION);
$stageId = $this->getAuthorizedContextObject(ASSOC_TYPE_WORKFLOW_STAGE);
$allFilterData = array_merge($filterData, array('userGroupOptions' => $this->_userGroupOptions, 'selectedUserGroupId' => reset(array_keys($this->_userGroupOptions)), 'gridId' => $this->getId(), 'submissionId' => $submission->getId(), 'stageId' => $stageId));
return parent::renderFilter($request, $allFilterData);
}
示例11: renderFilter
/**
* @copydoc GridHandler::renderFilter()
*/
function renderFilter($request, $filterData = array())
{
$statusNames = $this->_plugin->getStatusNames();
$allFilterData = array_merge($filterData, array('status' => $statusNames, 'gridId' => $this->getId()));
return parent::renderFilter($request, $allFilterData);
}