public function GroupAuthoriseServicePack() { $this->checkServicePack(); foreach ($this->origSPs as $servicePack) { fwrite($this->migrator->logfile, "Authorizing {$servicePack} to {$this->migrator->getDestGroup()}\n"); $this->migrator->send(OCISchemaGroup::GroupServiceModifyAuthorizationListRequest($this->migrator->getDestEnterprise(), $this->migrator->getDestGroup(), ['servicePackName' => $servicePack, 'authorizedQuantity' => ['unlimited' => 'true']])); $this->migrator->getResponse(); } foreach ($this->origGSs as $groupService) { fwrite($this->migrator->logfile, "Authorizing {$groupService} to {$this->migrator->getDestGroup()}\n"); $this->migrator->send(OCISchemaGroup::GroupServiceModifyAuthorizationListRequest($this->migrator->getDestEnterprise(), $this->migrator->getDestGroup(), null, ['serviceName' => $groupService, 'authorizedQuantity' => ['unlimited' => 'true']])); $this->migrator->getResponse(); } foreach ($this->origGSs as $groupService) { fwrite($this->migrator->logfile, "Assigning {$groupService} to {$this->migrator->getDestGroup()}\n"); $this->migrator->send(OCISchemaGroup::GroupServiceAssignListRequest($this->migrator->getDestEnterprise(), $this->migrator->getDestGroup(), $groupService)); $this->migrator->getResponse(); } }