本文整理匯總了PHP中CommonDropdown::getSpecificMassiveActions方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDropdown::getSpecificMassiveActions方法的具體用法?PHP CommonDropdown::getSpecificMassiveActions怎麽用?PHP CommonDropdown::getSpecificMassiveActions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonDropdown
的用法示例。
在下文中一共展示了CommonDropdown::getSpecificMassiveActions方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'duplicate'] = _x('button', 'Duplicate');
}
return $actions;
}
示例2: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['duplicate'] = _x('button', 'Duplicate');
}
return $actions;
}
示例3: getSpecificMassiveActions
/**
* @since version 0.90
*
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin && $this->maybeRecursive() && count($_SESSION['glpiactiveentities']) > 1) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'merge'] = __('Transfer and merge');
}
return $actions;
}
示例4: getSpecificMassiveActions
/**
* @since version 0.85
*
* @see CommonDBTM::getSpecificMassiveActions()
* @param null $checkitem
* @return an
*/
function getSpecificMassiveActions($checkitem = NULL)
{
$actions = parent::getSpecificMassiveActions($checkitem);
return $actions;
}