e07ad57cf3831ec28882c4f1ce25b7f1f58f1e23
[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-2018 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 }