Group::getSpecificMassiveActions PHP Method

getSpecificMassiveActions() public method

See also: CommonDBTM::getSpecificMassiveActions()
public getSpecificMassiveActions ( $checkitem = NULL )
    function getSpecificMassiveActions($checkitem = NULL)
    {
        $isadmin = static::canUpdate();
        $actions = parent::getSpecificMassiveActions($checkitem);
        if ($isadmin) {
            $prefix = 'Group_User' . MassiveAction::CLASS_ACTION_SEPARATOR;
            $actions[$prefix . 'add'] = _x('button', 'Add a user');
            $actions[$prefix . 'add_supervisor'] = _x('button', 'Add a manager');
            $actions[$prefix . 'add_delegatee'] = _x('button', 'Add a delegatee');
            $actions[$prefix . 'remove'] = _x('button', 'Remove a user');
        }
        if ($isadmin) {
            MassiveAction::getAddTransferList($actions);
        }
        return $actions;
    }