mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
- reference/mbstring/functions/mb-decode-numericentity.xml 1. php/doc-en@4e69a9f2b1 - reference/imap/functions/imap-headerinfo.xml 1. php/doc-en@4e69a9f2b1 - reference/ssh2/functions/ssh2-auth-pubkey-file.xml 1. php/doc-en@74ef2355c5 - reference/ssh2/functions/ssh2-connect.xml 1. php/doc-en@74ef2355c5 - reference/stream/functions/stream-filter-append.xml 1. php/doc-en@a684294e0b - reference/stream/functions/stream-filter-prepend.xml 1. php/doc-en@a684294e0b - reference/filesystem/functions/fgetcsv.xml 1. php/doc-en@e1fd0bef1d 2. php/doc-en@0a3648a718 3. `&warning.csv.escape-parameter;` の重複を削除(既訳のバグ修正) - reference/spl/splfileobject/fgetcsv.xml 1. php/doc-en@e1fd0bef1d 2. php/doc-en@3a89b55d11 3. php/doc-en@0a3648a718 - language/predefined/attributes/nodiscard.xml 1. php/doc-en@30bda33771 - reference/pdo_sqlite/pdo/sqlite/createfunction.xml 1. php/doc-en@28930349ca - reference/math/functions/fmod.xml 1. php/doc-en@54a788ca59 - reference/simplexml/simplexmlelement/addChild.xml 1. php/doc-en@dca2a8354f - reference/json/functions/json-last-error.xml 1. php/doc-en@058ea1e842 - features/commandline.xml 1. php/doc-en@96b10a9885 - appendices/migration85/incompatible.xml 1. php/doc-en@048982b729 2. php/doc-en@f81bbcf9d3 - reference/random/random/randomizer/getfloat.xml 1. php/doc-en@1ada637cc8 2. php/doc-en@423a1da63f - reference/mysqli/mysqli/multi-query.xml 1. php/doc-en@1beae37b69 - reference/image/functions/getimagesize.xml 1. php/doc-en@6bb90d24b2 - reference/curl/functions/curl-close.xml 1. php/doc-en@86c8ebd19e - reference/curl/functions/curl-share-close.xml 1. php/doc-en@29c3d13980 - reference/yaml/functions/yaml-parse-file.xml 1. php/doc-en@132d2a8d63 - reference/mysqli/mysqli/options.xml 1. php/doc-en@e309a62b16 2. MYSQLI_SERVER_PUBLIC_KEY の古い「PHP 5.5.0 以降」テキストを削除(既訳のバグ修正) - appendices/transports.xml 1. php/doc-en@ae90ecc932 - reference/soap/soapserver/addfunction.xml 1. php/doc-en@577239f64b - reference/var/functions/settype.xml 1. php/doc-en@8d49e302b4 - features/http-auth.xml 1. php/doc-en@cd4180557a
156 lines
4.5 KiB
XML
156 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: 577239f64b3959c22d348a5f381eaf32fde996ed Maintainer: takagi Status: ready -->
|
||
<!-- CREDITS: hirokawa,shimooka -->
|
||
|
||
<refentry xml:id="soapserver.addfunction" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>SoapServer::addFunction</refname>
|
||
<refpurpose>SOAP リクエストによって処理される単一もしくはいくつかの関数を追加する</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis role="SoapServer">
|
||
<modifier>public</modifier> <type>void</type><methodname>SoapServer::addFunction</methodname>
|
||
<methodparam><type class="union"><type>array</type><type>string</type><type>int</type></type><parameter>functions</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
リモートクライアント用に単一もしくは複数の関数をエクスポートします。
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>functions</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
単一の関数をエクスポートするには、
|
||
このパラメータに文字列として関数名を渡してください。
|
||
</para>
|
||
<para>
|
||
いくつかの関数をエクスポートするには、関数名の配列を渡してください。
|
||
</para>
|
||
<para>
|
||
全ての関数をエクスポートするには、関数名の配列を渡してください。
|
||
</para>
|
||
<simpara>
|
||
PHP 8.4.0 以降、<type>int</type> 値
|
||
(<constant>SOAP_FUNCTIONS_ALL</constant> を含む)を渡すことは非推奨になりました。
|
||
<function>get_defined_functions</function> を使って全ての関数を取得し、
|
||
配列として渡してください。
|
||
</simpara>
|
||
<note>
|
||
<para>
|
||
<parameter>functions</parameter> は、全ての入力引数を
|
||
WSDL ファイルで定義されている順序と同じ順序で受け取る必要があり
|
||
(これらの関数は出力パラメータを引数として受け取ることはありません)
|
||
、一つまたは複数の値を返す必要があります。
|
||
複数の値を返すには、名前付き出力パラメータの配列を返す必要があります。
|
||
</para>
|
||
</note>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
&return.void;
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="changelog">
|
||
&reftitle.changelog;
|
||
<informaltable>
|
||
<tgroup cols="2">
|
||
<thead>
|
||
<row>
|
||
<entry>&Version;</entry>
|
||
<entry>&Description;</entry>
|
||
</row>
|
||
</thead>
|
||
<tbody>
|
||
<row>
|
||
<entry>8.4.0</entry>
|
||
<entry>
|
||
<methodname>SoapServer::addFunction</methodname> に
|
||
<type>int</type> を渡すこと
|
||
(<constant>SOAP_FUNCTIONS_ALL</constant> を含む)は非推奨になりました。
|
||
</entry>
|
||
</row>
|
||
</tbody>
|
||
</tgroup>
|
||
</informaltable>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title><function>SoapServer::addFunction</function> の例</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
|
||
function echoString($inputString)
|
||
{
|
||
return $inputString;
|
||
}
|
||
|
||
$server->addFunction("echoString");
|
||
|
||
function echoTwoStrings($inputString1, $inputString2)
|
||
{
|
||
return array("outputString1" => $inputString1,
|
||
"outputString2" => $inputString2);
|
||
}
|
||
$server->addFunction(array("echoString", "echoTwoStrings"));
|
||
|
||
$functions = array_merge(...get_defined_functions());
|
||
$server->addFunction($functions);
|
||
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><methodname>SoapServer::__construct</methodname></member>
|
||
<member><methodname>SoapServer::setClass</methodname></member>
|
||
</simplelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
</refentry>
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|