23326cfcbd2e1ee9276d8c90d296fb0de9bde5d1
[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-2015 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
14 * @since 2.2
15 */
16 class AssignToUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUserBulkProcessingAction {
17 /**
18 * @see \wcf\system\bulk\processing\user\AbstractUserGroupsUserBulkProcessingAction::$inputName
19 */
20 public $inputName = 'assignToUserGroupIDs';
21
22 /**
23 * @see \wcf\system\bulk\processing\user\AbstractUserGroupsUserBulkProcessingAction::executeUserAction()
24 */
25 protected function executeUserAction(UserEditor $user) {
26 $user->addToGroups($this->userGroupIDs, false, false);
27 }
28 }