2 namespace wcf\system\bulk\processing\user;
3 use wcf\data\user\UserEditor;
6 * Bulk processing action implementation for assigning users to user groups.
8 * @author Matthias Schmidt
9 * @copyright 2001-2016 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package com.woltlab.wcf
12 * @subpackage system.bulk.processing.user
13 * @category Community Framework
16 class AssignToUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUserBulkProcessingAction {
18 * @see \wcf\system\bulk\processing\user\AbstractUserGroupsUserBulkProcessingAction::$inputName
20 public $inputName = 'assignToUserGroupIDs';
23 * @see \wcf\system\bulk\processing\user\AbstractUserGroupsUserBulkProcessingAction::executeUserAction()
25 protected function executeUserAction(UserEditor $user) {
26 $user->addToGroups($this->userGroupIDs, false, false);