php-doc-en/reference/soap/functions/SoapServer-getFunctions.xml
Mehdi Achour 7c0b6b0f9f typo
# thank you Davey


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159737 c90b9560-bf6c-de11-be94-00142212c4b1
2004-05-26 19:20:23 +00:00

71 lines
1.8 KiB
XML

<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<refentry id="function.SoapServer-getFunctions">
<refnamediv>
<refname>SoapServer::getFunctions</refname>
<refpurpose>
Returns list of defined functions
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>SoapServer::getFunctions</methodname>
<void/>
</methodsynopsis>
<para>
This functions returns the list of all functions which was added by
<function>SoapServer::addFunction</function> or
<function>SoapServer::setClass</function>.
</para>
<para>
<example>
<title>Some examples</title>
<programlisting role="php">
<![CDATA[
<?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";
}
}
?>
]]>
</programlisting>
</example>
</para>
<para>
See also
<function>SoapServer::SoapServer</function>,
<function>SoapServer::addFunction</function>, and
<function>SoapServer::SetClass</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->