src/Entity/XiboUserGroup.php
public function copy($userGroupId, $group, $copyMembers = 0)
    {
        $this->groupId = $userGroupId;
        $this->copyMembers = $copyMembers;

        $this->getLogger()->info('Creating a copy of User Group ID ' . $userGroupId);
        $response = $this->doPost('/group/' . $userGroupId . '/copy', [
            'group' => $group,
            'copyMembers' => $copyMembers
        ]);

        /** @var XiboUserGroup $userGroup */
        $userGroup = $this->hydrate($response);

        return $userGroup;
    }
public function copy($userGroupId, $group, $copyMembers = 0)
    {
        $this->groupId = $userGroupId;
        $this->copyMembers = $copyMembers;

        $this->getLogger()->info('Creating a copy of User Group ID ' . $userGroupId);
        $response = $this->doPost('/group/' . $userGroupId . '/copy', [
            'group' => $group,
            'copyMembers' => $copyMembers
        ]);

        /** @var XiboUserGroup $userGroup */
        $userGroup = $this->hydrate($response);

        return $userGroup;
    }
public function copy ( $ userGroupId , $ group , $ copyMembers = 0 ) { $ this -> groupId = $ userGroupId ; $ this -> copyMembers = $ copyMembers ; $ this -> getLogger ( ) -> info ( 'Creating a copy of User Group ID ' . $ userGroupId ) ; $ response = $ this -> doPost ( '/group/' . $ userGroupId . '/copy' , [ 'group' => $ group , 'copyMembers' => $ copyMembers ] ) ; /** @var XiboUserGroup $userGroup */ $ userGroup = $ this -> hydrate ( $ response ) ; return $ userGroup ; }
Copy User Group.

@param int $userGroupId The ID of the user group
@param string $group Group Name
@param int $copyMembers Flag indicating whether to copy group members

@return XiboUserGroup
Copy User Group .