37de6cd220c2773ae92e6b30157e6aef40935bed
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\bulk\processing\user;
3 use wcf\data\user\UserEditor;
4
5 /**
6 * Bulk processing action implementation for assigning users to user groups.
7 *
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 WoltLabSuite\Core\System\Bulk\Processing\User
12 * @since 3.0
13 */
14 class AssignToUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUserBulkProcessingAction {
15 /**
16 * @inheritDoc
17 */
18 public $inputName = 'assignToUserGroupIDs';
19
20 /**
21 * @inheritDoc
22 */
23 protected function executeUserAction(UserEditor $user) {
24 $user->addToGroups($this->userGroupIDs, false, false);
25 }
26 }