Forum und email

SoapServer->getFunctions()

(PHP 5 >= 5.0.1)

SoapServer->getFunctions() — 定義されている関数の一覧を返す

説明

SoapServer
array getFunctions ( void )

このメソッドは、 SoapServer->addFunction() もしくは SoapServer->setClass() で追加された全ての関数の一覧を返します。

返り値

全ての関数の一覧

Example#1 いくつかの例

<?php
$server 
= new SoapServer(NULL, array("uri" => "https://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";
  }
}
?>