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