f780f42a17d109c765729ea47fdd9c206db86fb1
[GitHub/WoltLab/WCF.git] /
1 <?php
2 declare(strict_types=1);
3 namespace wcf\system\bulk\processing\user;
4 use wcf\data\user\UserEditor;
5
6 /**
7 * Bulk processing action implementation for assigning users to user groups.
8 *
9 * @author Matthias Schmidt
10 * @copyright 2001-2018 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package WoltLabSuite\Core\System\Bulk\Processing\User
13 * @since 3.0
14 */
15 class AssignToUserGroupsUserBulkProcessingAction extends AbstractUserGroupsUserBulkProcessingAction {
16 /**
17 * @inheritDoc
18 */
19 public $inputName = 'assignToUserGroupIDs';
20
21 /**
22 * @inheritDoc
23 */
24 protected function executeUserAction(UserEditor $user) {
25 $user->addToGroups($this->userGroupIDs, false, false);
26 }
27 }