array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'soapserver.getfunctions.php', 1 => 'SoapServer::getFunctions', ), 'up' => array ( 0 => 'class.soapserver.php', 1 => 'SoapServer', ), 'prev' => array ( 0 => 'soapserver.fault.php', 1 => 'SoapServer::fault', ), 'next' => array ( 0 => 'soapserver.handle.php', 1 => 'SoapServer::handle', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/soap/soapserver/getfunctions.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
SoapServer::getFunctions — 定義されている関数の一覧を返す
SoapServer オブジェクトで定義されている関数の一覧を返します。 このメソッドは、 SoapServer::addFunction() もしくは SoapServer::setClass() で追加された全ての関数の一覧を返します。
この関数にはパラメータはありません。
定義されている関数の配列を返します。
例1 SoapServer::getFunctions() の例
<?php
$server = new SoapServer(NULL, array("uri" => "http://test-uri"));
$server->addFunction(SOAP_FUNCTIONS_ALL);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$server->handle();
} else {
echo "This SOAP server can handle following functions: ";
$functions = $server->getFunctions();
foreach($functions as $func) {
echo $func . "\n";
}
}
?>