(PHP 5 >= 5.0.1)
SoapServer::getFunctions — بازگرداندن فهرست توابع تعریف شده
بازگرداندن فهرست توابع تعریف شده در شی SoapServer. این متد فهرستی از توابع اضافه شده SoapServer::addFunction() یا SoapServer::setClass() را باز میگرداند.
This function has no parameters.
array توابع تعریف شده.
Example #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";
}
}
?>