本文整理汇总了PHP中GridRow::getRequestArgs方法的典型用法代码示例。如果您正苦于以下问题:PHP GridRow::getRequestArgs方法的具体用法?PHP GridRow::getRequestArgs怎么用?PHP GridRow::getRequestArgs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridRow
的用法示例。
在下文中一共展示了GridRow::getRequestArgs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
/**
* @copydoc GridRow::initialize()
*/
function initialize($request, $template = null)
{
// Do the default initialization
parent::initialize($request, $template);
$monograph = $this->getMonograph();
// Is this a new row or an existing row?
$representative = $this->_data;
if ($representative != null && is_numeric($representative->getId())) {
$router = $request->getRouter();
$actionArgs = array_merge(parent::getRequestArgs(), array('submissionId' => $monograph->getId(), 'representativeId' => $representative->getId()));
// Add row-level actions
import('lib.pkp.classes.linkAction.request.AjaxModal');
$this->addAction(new LinkAction('editRepresentative', new AjaxModal($router->url($request, null, null, 'editRepresentative', null, $actionArgs), __('grid.action.edit'), 'modal_edit'), __('grid.action.edit'), 'edit'));
import('lib.pkp.classes.linkAction.request.RemoteActionConfirmationModal');
$this->addAction(new LinkAction('deleteRepresentative', new RemoteActionConfirmationModal($request->getSession(), __('common.confirmDelete'), __('common.delete'), $router->url($request, null, null, 'deleteRepresentative', null, $actionArgs), 'modal_delete'), __('grid.action.delete'), 'delete'));
}
}