public function AssignServicePacks($user) { foreach ($user->getConfig()->UserServiceGetAssignmentListResponse->servicePacksAssignmentTable['row'] as $value) { if ($value['col'][1] == "true") { fwrite($this->migrator->logfile, "Assigning {$value['col'][0]} to {$user->userId}\n"); $this->migrator->send(OCISchemaUser::UserServiceAssignListRequest($user->userId, null, $value['col'][0])); $this->migrator->getResponse(); } } }