public function AdminSetOrgsOfUser($userId, $orgIds) { // $userId : IDtype (only one ID) // $orgIds : IDtype or array $this->CheckAndSetHeader(__FUNCTION__); if ($userId == 0) { throw new CbgrnSoapFault("002", __FUNCTION__); } else { $reg_args = array(); $reg_args["userId"] = $userId; } $reg_args["orgId"] = $this->getRegularArgs($orgIds, __FUNCTION__); $this->encodeString($reg_args); $results = parent::AdminSetOrgsOfUser($reg_args); $this->methodClose(); return $this->decodeString($results); }