public function AdminCountOrgsOfUser($userId) { $this->CheckAndSetHeader(__FUNCTION__); $reg_args = array(); if ($userId > 0) { $reg_args["userId"] = $userId; } else { throw new CbgrnSoapFault("002", __FUNCTION__); } $this->encodeString($reg_args); $results = parent::AdminCountOrgsOfUser($reg_args); $this->methodClose(); return $this->decodeString($results->number_orgs); }