本文整理汇总了PHP中GenericPlugin::getActions方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericPlugin::getActions方法的具体用法?PHP GenericPlugin::getActions怎么用?PHP GenericPlugin::getActions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericPlugin
的用法示例。
在下文中一共展示了GenericPlugin::getActions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getActions
/**
* @see Plugin::getActions()
*/
function getActions($request, $verb)
{
$router = $request->getRouter();
import('lib.pkp.classes.linkAction.request.AjaxModal');
return array_merge($this->getEnabled() ? array(new LinkAction('settings', new AjaxModal($router->url($request, null, null, 'manage', null, array('verb' => 'settings', 'plugin' => $this->getName(), 'category' => 'generic')), $this->getDisplayName()), __('manager.plugins.settings'), null)) : array(), parent::getActions($request, $verb));
}
示例2: getActions
/**
* @copydoc Plugin::getActions()
*/
function getActions($request, $actionArgs)
{
import('lib.pkp.classes.linkAction.request.AjaxModal');
$router = $request->getRouter();
return array_merge($this->getEnabled() ? array(new LinkAction('settings', new AjaxModal($router->url($request, null, null, 'manage', null, array('plugin' => $this->getName(), 'category' => $this->getCategory(), 'action' => 'index')), $this->getDisplayName()), __('plugins.generic.customBlockManager.manage'), null)) : array(), parent::getActions($request, $actionArgs));
}
示例3: getActions
/**
* @copydoc Plugin::getActions()
*/
function getActions($request, $actionArgs)
{
$dispatcher = $request->getDispatcher();
import('lib.pkp.classes.linkAction.request.RedirectAction');
return array_merge($this->getEnabled() ? array(new LinkAction('settings', new RedirectAction($dispatcher->url($request, ROUTE_PAGE, null, 'management', 'settings', 'website', array('uid' => uniqid()), 'staticPages')), __('plugins.generic.staticPages.editAddContent'), null)) : array(), parent::getActions($request, $actionArgs));
}
示例4: getActions
function getActions($request, $actionArgs)
{
$router = $request->getRouter();
import('lib.pkp.classes.linkAction.request.AjaxModal');
return array_merge($this->getEnabled() ? array(new LinkAction('settings', new AjaxModal($router->url($request, null, null, 'manage', null, $actionArgs), $this->getDisplayName()), __('manager.plugins.settings'), null)) : array(), parent::getActions($request, $actionArgs));
}