本文整理匯總了PHP中BxDolMenu::processMenuTrigger方法的典型用法代碼示例。如果您正苦於以下問題:PHP BxDolMenu::processMenuTrigger方法的具體用法?PHP BxDolMenu::processMenuTrigger怎麽用?PHP BxDolMenu::processMenuTrigger使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BxDolMenu
的用法示例。
在下文中一共展示了BxDolMenu::processMenuTrigger方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: enable
function enable($aParams)
{
$aResult = parent::enable($aParams);
if (!$aResult['result']) {
// proces further only in case of successful enable
return $aResult;
}
BxDolImageTranscoder::registerHandlersArray($this->_aTranscoders);
if ($this->_aMenuTriggers) {
bx_import('BxDolMenu');
foreach ($this->_aMenuTriggers as $sMenuTriggerName) {
BxDolMenu::processMenuTrigger($sMenuTriggerName);
}
}
return $aResult;
}
示例2: actionProcessMenuTriggers
/**
*
* Process the list of menu triggers provided in config array.
* It must be specified in the module which adds menu item and in modules where menu items are added, @see BxDolMenu::processMenuTrigger
* @param string $sOperation - operation type.
*/
protected function actionProcessMenuTriggers($sOperation)
{
if (empty($this->_aConfig['menu_triggers'])) {
return BX_DOL_STUDIO_INSTALLER_FAILED;
}
foreach ($this->_aConfig['menu_triggers'] as $sMenuTriggerName) {
BxDolMenu::processMenuTrigger($sMenuTriggerName);
}
return BX_DOL_STUDIO_INSTALLER_SUCCESS;
}