本文整理匯總了PHP中CommonDBTM::getSpecificMassiveActions方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBTM::getSpecificMassiveActions方法的具體用法?PHP CommonDBTM::getSpecificMassiveActions怎麽用?PHP CommonDBTM::getSpecificMassiveActions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonDBTM
的用法示例。
在下文中一共展示了CommonDBTM::getSpecificMassiveActions方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL, $is_deleted = false)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin && !$is_deleted) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'sendmail'] = _x('button', 'Send');
}
return $actions;
}
示例2: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['delete_email'] = __('Delete emails');
$actions['import_email'] = _x('button', 'Import');
}
return $actions;
}
示例3: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$prefix = __CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR;
$actions[$prefix . 'delete_email'] = __('Delete emails');
$actions[$prefix . 'import_email'] = _x('button', 'Import');
}
return $actions;
}
示例4: getSpecificMassiveActions
/**
* @since version 0.85
*
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
return $actions;
}
示例5: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
MassiveAction::getAddTransferList($actions);
}
return $actions;
}
示例6: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['add_contact_supplier'] = _x('button', 'Add a contact');
}
if (Session::haveRight('transfer', 'r') && Session::isMultiEntitiesMode() && $isadmin) {
$actions['add_transfer_list'] = _x('button', 'Add to transfer list');
}
return $actions;
}
示例7: getSpecificMassiveActions
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
if ($isadmin) {
if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode()) {
$actions['PluginTasklistsTask' . MassiveAction::CLASS_ACTION_SEPARATOR . 'transfer'] = __('Transfer');
}
}
}
return $actions;
}
示例8: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
return CommonDBTM::getSpecificMassiveActions($checkitem);
}
示例9: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'reset'] = __('Reset last run');
}
return $actions;
}
示例10: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = __('Associate to a group');
$actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'remove'] = __('Dissociate from a group');
$actions['Profile_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = __('Associate to a profile');
$actions['Profile_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'remove'] = __('Dissociate from a profile');
$actions['Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR . 'change_group_user'] = __("Move to group");
}
if (Session::haveRight(self::$rightname, self::UPDATEAUTHENT)) {
$prefix = __CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR;
$actions[$prefix . 'change_authtype'] = _x('button', 'Change the authentication method');
$actions[$prefix . 'force_user_ldap_update'] = __('Force synchronization');
}
return $actions;
}
示例11: getSpecificMassiveActions
/**
* Get the specific massive actions
*
* @since version 0.84
* @param $checkitem link item to check right (default NULL)
*
* @return an array of massive actions
**/
public function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
if ($isadmin) {
$actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'install'] = _x('button', 'Associate');
$actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'uninstall'] = _x('button', 'Dissociate');
if (Session::haveRight('transfer', READ) && Session::isMultiEntitiesMode()) {
$actions['PluginAccountsAccount' . MassiveAction::CLASS_ACTION_SEPARATOR . 'transfer'] = __('Transfer');
}
}
}
return $actions;
}
示例12: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin && countElementsInTable("glpi_rules", "sub_type='RuleSoftwareCategory'") > 0) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'compute_software_category'] = __('Recalculate the category');
}
if (Session::haveRightsOr("rule_dictionnary_software", array(CREATE, UPDATE)) && countElementsInTable("glpi_rules", "sub_type='RuleDictionnarySoftware'") > 0) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'replay_dictionnary'] = __('Replay the dictionary rules');
}
if ($isadmin) {
MassiveAction::getAddTransferList($actions);
}
return $actions;
}
示例13: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
if ($isadmin) {
$actions['reset'] = __('Reset last run');
}
return $actions;
}
示例14: getSpecificMassiveActions
public function getSpecificMassiveActions($checkitem = NULL)
{
$actions = parent::getSpecificMassiveActions($checkitem);
return $actions;
}
示例15: getSpecificMassiveActions
/**
* @see CommonDBTM::getSpecificMassiveActions()
**/
function getSpecificMassiveActions($checkitem = NULL)
{
$isadmin = static::canUpdate();
$actions = parent::getSpecificMassiveActions($checkitem);
// Manage forbidden actions
$forbidden_actions = $this->getForbiddenStandardMassiveAction();
if ($isadmin && $this->maybeRecursive() && count($_SESSION['glpiactiveentities']) > 1 && !in_array('merge', $forbidden_actions)) {
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'merge'] = __('Transfer and merge');
}
return $actions;
}