SoapServer
PHP Manual

SoapServer::getFunctions

(PHP 5 >= 5.0.1)

SoapServer::getFunctionsبازگرداندن فهرست توابع تعریف شده

Description

public array SoapServer::getFunctions ( void )

بازگرداندن فهرست توابع تعریف شده در شی SoapServer. این متد فهرستی از توابع اضافه شده SoapServer::addFunction() یا SoapServer::setClass() را باز می‌گرداند.

Parameters

This function has no parameters.

Return Values

array توابع تعریف شده.

Examples

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";
  }
}
?>

See Also


SoapServer
PHP Manual