SoapServer->getFunctions()
SoapServer->getFunctions() — 定義されている関数の一覧を返す
説明
class SoapServer {array getFunctions ( void )
} このメソッドは、 SoapServer->addFunction() もしくは SoapServer->setClass() で追加された全ての関数の一覧を返します。
返り値
全ての関数の一覧例
例 2142. いくつかの例
<?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";
}
}
?>
参考
SoapServer->__construct() |
SoapServer->addFunction() |
SoapServer->setClass() |
- SoapServer->getFunctions()のページへのリンク