SOAP SoapServer::getFunctions
(PHP 5, PHP 7, PHP 8)
SoapServer::getFunctions — 정의된 함수 목록을 반환합니다.
설명
public SoapServer::getFunctions(): array
SoapServer 개체에 정의된 함수 목록을 반환합니다. 이 메서드는 SoapServer::addFunction() 또는 SoapServer::setClass()에 의해 추가된 모든 함수의 목록을 반환합니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
정의된 함수의 array
입니다.
Examples
예제 #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";
}
}
?>
기타
- SoapServer::__construct() - SoapServer constructor
- SoapServer::addFunction() - SOAP 요청을 처리하기 위해 하나 이상의 함수를 추가합니다.
- SoapServer::setClass() - SOAP 요청을 처리하는 클래스를 설정합니다.